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

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

UPS Tools
6
23
974
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.
  • E
    elvisimprsntr @firefox
    last edited by elvisimprsntr Dec 7, 2024, 4:05 PM Dec 7, 2024, 3:47 PM

    @firefox

    1. Install NUT via package manager
    2. Connect USB comm cable between UPS and pfSense
      login-to-view
    3. Run the following via SSH CLI
    nut-scanner
    

    Example output

    Scanning USB bus.
    No start IP, skipping SNMP
    Scanning XML/HTTP bus.
    No start IP, skipping NUT bus (old connect method)
    Scanning NUT simulation devices.
    Scanning NUT bus (avahi method).
    Error sending Eaton <SCAN_REQUEST/> to <broadcast>, #1/3
    Failed to create Avahi client: Daemon not running
    Error sending Eaton <SCAN_REQUEST/> to <broadcast>, #2/3
    Error sending Eaton <SCAN_REQUEST/> to <broadcast>, #3/3
    [nutdev1]
    	driver = "usbhid-ups"
    	port = "auto"
    	vendorid = "051D"
    	productid = "0002"
    	product = "Back-UPS XS 1500M FW:947.d11 .D USB FW:d11"
    	serial = "3B2125X60993"
    	vendor = "American Power Conversion"
    	bus = "000"
    	device = "003"
    	busport = "001"
    	###NOTMATCHED-YET###bcdDevice = "0090"
    

    Log into pfSense GUI and head to Services->UPS->Settings.

    Example config

    UPS Type: Local USB
    UPS Name: upsmon
    Enable notifications: Y
    Driver: usbhid
    
    Additional configuration lines for upsd.users
    [upsmon]
     password = upsmon
     upsmon slave
    
    

    Other clients (TrueNAS, etc.) plugged into the same UPS can install NUT and connect to pfSense as a UPS slave.

    F 1 Reply Last reply Dec 7, 2024, 4:20 PM Reply Quote 0
    • F
      firefox @elvisimprsntr
      last edited by Dec 7, 2024, 4:20 PM

      @elvisimprsntr

      i installed snmp card model dt801 netagent minigo
      the ups is connected to the network and has ip

      can i use this ? or only with usb ?

      C E 2 Replies Last reply Dec 7, 2024, 5:08 PM Reply Quote 0
      • J
        JonathanLee @firefox
        last edited by Dec 7, 2024, 4:53 PM

        @firefox yes I agree use the nut package it is really good

        Make sure to upvote

        1 Reply Last reply Reply Quote 0
        • C
          chpalmer @firefox
          last edited by Dec 7, 2024, 5:08 PM

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

          @elvisimprsntr

          i installed snmp card model dt801 netagent minigo
          the ups is connected to the network and has ip

          can i use this ? or only with usb ?

          I do not recall Nut having the ability to interface via IP but agree this would be a great option..

          APCUSBD might have some ability to do what you want but someone else would have to chime in..

          https://sourceforge.net/projects/apcupsd/

          Triggering snowflakes one by one..
          Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

          1 Reply Last reply Reply Quote 0
          • E
            elvisimprsntr @firefox
            last edited by elvisimprsntr Dec 7, 2024, 5:20 PM Dec 7, 2024, 5:09 PM

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

            i installed snmp card model dt801 netagent minigo
            the ups is connected to the network and has ip
            can i use this ? or only with usb ?

            Yes, I think. You can try

            UPS Type: Remote SNMP
            Remote IP address or hostname: {IP address}
            

            You can check using the following command to see what it thinks the best driver is

            nut-scanner -s {IP address]
            
            F 1 Reply Last reply Dec 7, 2024, 5:31 PM Reply Quote 1
            • F
              firefox @elvisimprsntr
              last edited by Dec 7, 2024, 5:31 PM

              @elvisimprsntr
              it is not work

              nut-scanner -s 192.168.1.61
              

              give this

              Scanning USB bus.
              Scanning SNMP bus.
              Scanning XML/HTTP bus.
              Scanning NUT bus (old connect method).
              Scanning NUT simulation devices.
              Scanning NUT bus (avahi method).
              Failed to create Avahi client: Daemon not running
                                                                                             
              Broadcast Message from root@pfSense.home                                       
                      (no tty) at 15:27 -02...                                               
                                                                                             
              UPS aon1500-2 is unavailable
              
              E 1 Reply Last reply Dec 7, 2024, 5:39 PM Reply Quote 0
              • E
                elvisimprsntr @firefox
                last edited by Dec 7, 2024, 5:39 PM

                @firefox

                Use USB connection method then.

                E 1 Reply Last reply Dec 9, 2024, 8:48 PM Reply Quote 0
                • D
                  dennypage @firefox
                  last edited by Dec 7, 2024, 6:37 PM

                  @firefox Can you do an snmpwalk of the device?

                  F 1 Reply Last reply Dec 7, 2024, 7:41 PM Reply Quote 0
                  • F
                    firefox @dennypage
                    last edited by Dec 7, 2024, 7:41 PM

                    @dennypage
                    how do i do that ?

                    D 1 Reply Last reply Dec 7, 2024, 8:18 PM Reply Quote 0
                    • D
                      dennypage @firefox
                      last edited by Dec 7, 2024, 8:18 PM

                      @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 Dec 9, 2024, 7:04 AM Reply Quote 0
                      • F
                        firefox @dennypage
                        last edited by firefox Dec 9, 2024, 7:08 AM Dec 9, 2024, 7:04 AM

                        @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

                        G D 2 Replies Last reply Dec 9, 2024, 8:09 AM Reply Quote 0
                        • G
                          Gertjan @firefox
                          last edited by Dec 9, 2024, 8:09 AM

                          @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 Dec 9, 2024, 9:35 AM Reply Quote 0
                          • F
                            firefox @Gertjan
                            last edited by Dec 9, 2024, 9:35 AM

                            @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
                            • G
                              Gertjan @firefox
                              last edited by Dec 9, 2024, 10:16 AM

                              @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
                              • D
                                dennypage @firefox
                                last edited by Dec 9, 2024, 4:28 PM

                                @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 Dec 9, 2024, 7:30 PM Reply Quote 0
                                • F
                                  firefox @dennypage
                                  last edited by firefox Dec 9, 2024, 7:32 PM Dec 9, 2024, 7:30 PM

                                  @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}
                                  login-to-view

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

                                  D 1 Reply Last reply Dec 9, 2024, 9:01 PM Reply Quote 0
                                  • E
                                    elvisimprsntr @elvisimprsntr
                                    last edited by elvisimprsntr Dec 9, 2024, 8:51 PM Dec 9, 2024, 8:48 PM

                                    @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
                                    • D
                                      dennypage @firefox
                                      last edited by Dec 9, 2024, 9:01 PM

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

                                      F 1 Reply Last reply Dec 10, 2024, 5:11 AM Reply Quote 0
                                      • F
                                        firefox @dennypage
                                        last edited by Dec 10, 2024, 5:11 AM

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

                                        Unless it gives access to people outside the network ??

                                        D 1 Reply Last reply Dec 10, 2024, 6:14 AM Reply Quote 0
                                        • D
                                          dennypage @firefox
                                          last edited by Dec 10, 2024, 6:14 AM

                                          @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 Dec 12, 2024, 1:04 PM Reply Quote 0
                                          11 out of 23
                                          • First post
                                            11/23
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.