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

    How do I connect the UPS to pfsense? If it is possible ?

    Scheduled Pinned Locked Moved UPS Tools
    23 Posts 6 Posters 3.1k 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.
    • dennypageD
      dennypage @firefox
      last edited by

      @firefox Can you do an snmpwalk of the device?

      F 1 Reply Last reply Reply Quote 0
      • F
        firefox @dennypage
        last edited by

        @dennypage
        how do i do that ?

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

          @firefox Here are man pages for snmpwalk and snmpcmd.

          Examples:

          snmpwalk -v 1 -c public IPADDR
          snmpwalk -v 2c -c public IPADDR
          snmpwalk -v 3 AUTH/PRIV IPADDR
          

          See the man page for appropriate AUTH/PRIV options.

          F 1 Reply Last reply Reply Quote 0
          • F
            firefox @dennypage
            last edited by firefox

            @dennypage

            [2.7.2-RELEASE][admin@pfSense.home]/root: snmpwalk -v 1 -c public IPADDR
            snmpwalk: Unknown host (IPADDR) (No such file or directory)
                                                                                           
            Broadcast Message from root@pfSense.home                                       
                    (no tty) at 5:01 -02...                                                
                                                                                           
            UPS aon1500-2 is unavailable                                                   
                                                                                           
            
            [2.7.2-RELEASE][admin@pfSense.home]/root: snmpwalk -v 2c -c public IPADDR
            snmpwalk: Unknown host (IPADDR) (No such file or directory)
            
            
            [2.7.2-RELEASE][admin@pfSense.home]/root: snmpwalk -v 3 AUTH/PRIV IPADDR
            snmpwalk: Unknown host (AUTH/PRIV) (No such file or directory)
            
            
            
            
            

            I copied and pasted the commands into the shell.
            Still not working

            GertjanG dennypageD 2 Replies Last reply Reply Quote 0
            • GertjanG
              Gertjan @firefox
              last edited by

              @firefox said in How do I connect the UPS to pfsense? If it is possible ?:

              IPADDR

              Change that for the real IP address the UPS uses.
              Like example : 192.168.10.10

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              F 1 Reply Last reply Reply Quote 0
              • F
                firefox @Gertjan
                last edited by

                @Gertjan
                This is the first thing I did
                I got this answer
                So I thought maybe I was wrong and should write it like it is

                [2.7.2-RELEASE][admin@pfSense.home]/root: snmpwalk -v 1 -c public 192.168.1.61
                Timeout: No Response from 192.168.1.61
                [2.7.2-RELEASE][admin@pfSense.home]/root: snmpwalk -v 2c -c public 192.168.1.61
                Timeout: No Response from 192.168.1.61
                [2.7.2-RELEASE][admin@pfSense.home]/root: snmpwalk -v 3 AUTH/PRIV 192.168.1.61
                snmpwalk: Unknown host (AUTH/PRIV) (No such file or directory)
                
                1 Reply Last reply Reply Quote 0
                • GertjanG
                  Gertjan @firefox
                  last edited by

                  @firefox said in How do I connect the UPS to pfsense? If it is possible ?:

                  i have this ups AON1500-2 ups

                  Ok, time to show the technical doc. The commercial one won't help us here.

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

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

                    @firefox said in How do I connect the UPS to pfsense? If it is possible ?:

                    I copied and pasted the commands into the shell.
                    Still not working

                    You're not going to get by without reading the documentation. The commands I posted were examples, not the literal commands you need to use.

                    Specifically:

                    • IPADDR was intended as the IP address of the device. You are expected to change this to the real value.
                    • public was an example security group for version 1/2c protocols. public is a commonly used default, but the first recommendation of everyone is to change it. You need to know the actual group in use on the device. Some devices even generate a random value for the group installation. If you have the wrong group, the device simply will not respond at all.
                    • AUTH/PRIV was intended to be replaced with the appropriate authentication and privacy options if the device when using version 3 protocol. There is no generic guidance for this. You have to read the device manual to know and/or set the actual options the device expects. If you have the wrong options, the device will not respond.

                    If you want to use SNMP, you are going go need to know a good deal more about it, and the device itself. Read the UPS and SNMP card documentation, and then read the SNMP man pages I referenced. This will take time. If you don't want to invest that time, you'll have to try USB.

                    F 1 Reply Last reply Reply Quote 0
                    • F
                      firefox @dennypage
                      last edited by firefox

                      @dennypage

                      I went into the graphical interface of the UPS and changed something there according to what you said.
                      Now the result is different.

                      I can't post the result here, it's too long. {The system thinks it's spam}
                      ups.png

                      I added the pfsense IP in the first column
                      and changed the permissions to read write

                      dennypageD 1 Reply Last reply Reply Quote 0
                      • E
                        elvisimprsntr @elvisimprsntr
                        last edited by elvisimprsntr

                        @elvisimprsntr said in How do I connect the UPS to pfsense? If it is possible ?:

                        @firefox

                        Use USB connection method then.

                        Save your sanity. Use USB connection.
                        Then send the SNMP card back to recoup some of your coins.

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

                          @firefox I assume that you are aware that you should not have a community named public write enabled. 😱

                          F 1 Reply Last reply Reply Quote 0
                          • F
                            firefox @dennypage
                            last edited by

                            @dennypage
                            This is a home network
                            How critical is this?

                            Unless it gives access to people outside the network ??

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

                              @firefox said in How do I connect the UPS to pfsense? If it is possible ?:

                              This is a home network

                              Does it matter?

                              It's trivial to correct. The public community should always be read-only. Use a randomly generated string for the write community.

                              F 1 Reply Last reply Reply Quote 0
                              • F
                                firefox @dennypage
                                last edited by

                                @dennypage

                                Update
                                I did a factory reset to the snmp card
                                When I received the snmp card
                                it still had the settings from the previous location
                                After the reset it works
                                And I see the status of the UPS in pfsense

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

                                  @firefox Glad you got it working

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