Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    SNMP UPS question

    Scheduled Pinned Locked Moved UPS Tools
    12 Posts 3 Posters 1.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • LaxarusL
      Laxarus @stephenw10
      last edited by

      @stephenw10
      But the problem in the case of "snmp ups" setup in pfsense is, the ups does not know the MAC address of the pfsense, the pfsense box just polls over ip with SNMP.

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Right but that only works when it's booted. To wake the firewall (or any host) after it's shutdown you have to use WoL. Or possibly wake on USB etc.

        What does your UPS support? Or whatever the locally connected UPS management supports?

        LaxarusL 1 Reply Last reply Reply Quote 0
        • LaxarusL
          Laxarus @stephenw10
          last edited by

          @stephenw10
          My UPS is APC SRT5KXLI with builtin NMC3 card. It supports APC PowerChute software, SNMP, and USB. I set it up with SNMP UPS which works for my case, at least for the shutdown. But, it failed to power up after a proper shutdown.

          dennypageD 1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            You are using the apcupsd package in pfSense?

            Maybe I'm missing something here but how is the UPS configured to wake pfSense? I wouldn't expect it to start.

            LaxarusL 1 Reply Last reply Reply Quote 0
            • dennypageD
              dennypage @Laxarus
              last edited by

              @Laxarus The SNMP user has to have write permission to the UPS for it to actually shut down. Assuming that you are using NUT, you can test access with the following command:

              upscmd -u admin -p password upsname test.battery.start
              

              (you can find the password in /usr/local/etc/nut/upsd.users.)

              If it works, you have write access. If it doesn't work, you will have to redo your access.

              1 Reply Last reply Reply Quote 0
              • LaxarusL
                Laxarus @stephenw10
                last edited by

                @stephenw10 Yep, that is the problem. UPS doesn't have a native way to wake up the pfsense. APC recommends to enable "Turn on always" option in BIOS.
                https://www.apc.com/us/en/faqs/FA159550/
                I use nut package.
                @dennypage I don't have a problem with shutdown. The problem is to how to turn on the pfsense after power restore.

                dennypageD 1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  If it's powered through the UPS then it will power back up when power is restored. Assuming the BIOS is set to do that.

                  LaxarusL 1 Reply Last reply Reply Quote 0
                  • dennypageD
                    dennypage @Laxarus
                    last edited by

                    @Laxarus said in SNMP UPS question:

                    I use nut package.
                    @dennypage I don't have a problem with shutdown. The problem is to how to turn on the pfsense after power restore.

                    I think you misunderstand. The problem is not that pfSense isn’t shutting down, but that the UPS is not (successfully) being commanded to shutdown (cut power). You need the UPS to actually cut power, and you need SNMP write permission to do that.

                    When the UPS cuts power, and then restores power following mains being restored, pfSense should boot automatically.

                    1 Reply Last reply Reply Quote 1
                    • stephenw10S stephenw10 moved this topic from General pfSense Questions on
                    • LaxarusL
                      Laxarus @stephenw10
                      last edited by

                      @stephenw10 I will set to the BIOS to "turn on always" to achieve that. I was always assuming, as long as I configure NUT package properly, it will magically take care of everything.
                      Thanks for clearing this up Stephen.

                      @dennypage said in SNMP UPS question:

                      I think you misunderstand. The problem is not that pfSense isn’t shutting down, but that the UPS is not (successfully) being commanded to shutdown (cut power). You need the UPS to actually cut power, and you need SNMP write permission to do that.

                      When the UPS cuts power, and then restores power following mains being restored, pfSense should boot automatically.

                      My NUT clients are not configured to send commands to UPS to shut it down. I configure the UPS shutdown sequence in the UPS config itself and it is shutting its outputs and at last itself in the correct order.

                      I am curious though, why would you want to send a shutdown command to UPS itself from the clients? Does it not have a proper configuration to manage that?

                      dennypageD 1 Reply Last reply Reply Quote 0
                      • dennypageD
                        dennypage @Laxarus
                        last edited by

                        @Laxarus said in SNMP UPS question:

                        My NUT clients are not configured to send commands to UPS to shut it down. I configure the UPS shutdown sequence in the UPS config itself and it is shutting its outputs and at last itself in the correct order.

                        I am curious though, why would you want to send a shutdown command to UPS itself from the clients? Does it not have a proper configuration to manage that?

                        "Client" is ambiguous. Did you mean NUT client, or UPS (SNMP) client? Only one SNMP entity should be configured to instruct the UPS to shut down. The other hosts would be set up as NUT clients of the main NUT server.

                        As to why you would want to send a shutdown command, this is because most UPSs do not actually shut down on their own, and NUT is dependent upon the power actually being cut.

                        I haven't tested NMC3 behavior in that regard, so I cannot make a dfinitive statement.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.