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

NUT package (2.8.0 and below)

UPS Tools
128
1.2k
4.0m
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.
  • D
    dennypage @abs0new
    last edited by Oct 9, 2023, 2:50 PM

    @abs0new farther back in this thread you will find dev build executables that have been shared.

    A 1 Reply Last reply Oct 12, 2023, 8:03 AM Reply Quote 1
    • Z
      zeemaffin
      last edited by Oct 11, 2023, 10:43 AM

      Hi!

      I came across this problem and I can't seem to find the answer in the thread.
      I have a PFsense 6100 MAX , its on 23.05.1-Release at the moment.

      Installed NUT services and connected my Lenovo UPS (55942KX) via USB to the firewall.
      I am using an SRS232 to USB cable.

      The summary says its failed to retrieve status.
      Logs:
      Oct 11 12:04:43 upsmon 54986 Poll UPS [Lenovo_UPS] failed - Driver not connected
      Oct 11 12:04:45 upsd 56388 Can't connect to UPS [Lenovo_UPS] (usbhid-ups-Lenovo_UPS): No such file or directory
      Oct 11 12:04:53 upsmon 54986 Poll UPS [Lenovo_UPS] failed - Driver not connected
      Oct 11 12:04:58 upsmon 54986 Poll UPS [Lenovo_UPS] failed - Driver not connected
      Oct 11 12:05:03 upsmon 54986 Poll UPS [Lenovo_UPS] failed - Driver not connected
      Oct 11 12:05:08 upsmon 54986 Poll UPS [Lenovo_UPS] failed - Driver not connected
      Oct 11 12:05:08 upsmon 54986 UPS Lenovo_UPS is unavailable

      I have tried with all of the drivers from the drop-down menu without success.
      I am sure I am missing something from the configuration, but I am technically stuck at this point. Maybe I am just dumb to even try to use the USB option, but unfortunatly I don't have other solutions for this UPS.

      Can you guys show me a path where should I start poking around?
      Kind regards,
      Zee Muffin man,

      M D 2 Replies Last reply Oct 11, 2023, 3:35 PM Reply Quote 0
      • M
        Maltz @zeemaffin
        last edited by Oct 11, 2023, 3:35 PM

        @zeemaffin

        That should probably be using a serial driver, not USB. The serial port is connected via USB, but the UPS is connected via serial. I.e., the UPS isn't going to show up as a USB device for the USB driver to communicate with.

        1 Reply Last reply Reply Quote 0
        • D
          dennypage @zeemaffin
          last edited by Oct 11, 2023, 3:42 PM

          @zeemaffin said in NUT package:

          Installed NUT services and connected my Lenovo UPS (55942KX) via USB to the firewall.
          I am using an SRS232 to USB cable.

          Does the UPS have a direct USB interface? If so, you absolutely should use that interface instead of a USB to serial cable.

          Now, assuming that it does not have a native USB interface and that you have no choice other than to use a USB serial emulator cable...

          If the emulator chip in the cable is supported by FreeBSD, the device will show up as a serial port in /dev when you connect the USB cable to the pfSense system. If it doesn't, you're out of luck.

          To use a serial port emulator, in the NUT configuration you would select "Local Serial" as the UPS Type, and then select the correct port in the Serial port drop-down list (Hint: on the 6100, it's not cuau0 or cuau1).

          Now comes the hard part. You will have to select the correct driver, and it's a long list to choose from. Without knowing who actually made the UPS that Lenovo rebranded, you have to guess and test. My best guess would be mge-shut, but that is only a guess.

          Z 1 Reply Last reply Oct 12, 2023, 10:12 AM Reply Quote 0
          • J
            JonathanLee
            last edited by Oct 11, 2023, 3:50 PM

            Did the USB Cyber Power connection drop issue ever get resolved? I noticed they closed that redline....

            Make sure to upvote

            D I 2 Replies Last reply Oct 11, 2023, 3:55 PM Reply Quote 0
            • D
              dennypage @JonathanLee
              last edited by Oct 11, 2023, 3:55 PM

              @JonathanLee The new NUT version is still pending. I'm switching from nut (8.0) to nut-devel (pre 8.1), which unfortunately has required some fixes in the upstream BSD Port. The fixes are completed, but now have to flow down to pfSense. I don't know how long that will take.

              1 Reply Last reply Reply Quote 1
              • A
                abs0new Rebel Alliance @dennypage
                last edited by Oct 12, 2023, 8:03 AM

                @dennypage Thank you for your suggestion.

                Do i need to search through 1212 posts to find the executable ?

                G D 2 Replies Last reply Oct 12, 2023, 8:19 AM Reply Quote 1
                • G
                  Gertjan @abs0new
                  last edited by Oct 12, 2023, 8:19 AM

                  @abs0new

                  When its ready, you see it here, signaled as "an update has arrived" :

                  login-to-view

                  There will be a yellow sign after the "i".

                  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
                  • Z
                    zeemaffin @dennypage
                    last edited by Oct 12, 2023, 10:12 AM

                    @dennypage Hi!

                    Thank you for the tips, I am going through the serial drivers.
                    In the UPS settings page the serial port is a drop down menu and /dev/cuau0 and /dev/cuau1 is the 2 option, theres nothing else.
                    SO this case can't understand your hint regarding the 6100.

                    Sofar I had no luck... Would you suggest and USB-B to USB-A cable? ( the UPS has the usb port similiar to printers do)

                    Kind regards,

                    D 1 Reply Last reply Oct 12, 2023, 2:55 PM Reply Quote 0
                    • D
                      dennypage @zeemaffin
                      last edited by Oct 12, 2023, 2:55 PM

                      @zeemaffin said in NUT package:

                      In the UPS settings page the serial port is a drop down menu and /dev/cuau0 and /dev/cuau1 is the 2 option, theres nothing else.
                      SO this case can't understand your hint regarding the 6100.

                      The 6100 has two hidden/unconnected serial ports on the motherboard. These will show up as cuau0 and cuau1. That there is not another option strongly implies that the serial emulator chip is not supported by FreeBSD.

                      Sofar I had no luck... Would you suggest and USB-B to USB-A cable? ( the UPS has the usb port similiar to printers do)

                      Absolutely. If the UPS has a native USB interface, it would always be preferred over a serial emulator cable.

                      Z 1 Reply Last reply Oct 16, 2023, 9:33 AM Reply Quote 0
                      • D
                        dennypage @abs0new
                        last edited by Oct 12, 2023, 3:00 PM

                        @abs0new said in NUT package:

                        Do i need to search through 1212 posts to find the executable ?

                        LOL.

                        It's from earlier this year.

                        1 Reply Last reply Reply Quote 1
                        • Z
                          zeemaffin @dennypage
                          last edited by Oct 16, 2023, 9:33 AM

                          @dennypage

                          HI Denny!

                          News!

                          With the USB cable I see the UPS via the command usbconfig, however its not showing up in the graphical interface dropdown menu.
                          I mean the cuau 0-1 shows up only, but the usbus0 wont.

                          Would you suggest a restart of the firewall, or is there another package I need to be able to use the usbbus for this purpose?
                          Sorry for the dummy questions.

                          Kind Regards,
                          Maffin

                          D 1 Reply Last reply Oct 16, 2023, 6:10 PM Reply Quote 0
                          • D
                            dennypage @zeemaffin
                            last edited by Oct 16, 2023, 6:10 PM

                            @zeemaffin said in NUT package:

                            With the USB cable I see the UPS via the command usbconfig, however its not showing up in the graphical interface dropdown menu.
                            I mean the cuau 0-1 shows up only, but the usbus0 wont.

                            With a regular USB connection, there isn't a pulldown to select the port. I expect that you still have "Local Serial" set as the UPS Type.

                            Change the UPS Type to be "Local USB". The Driver field then has a list of usb drivers that are available. Always try "usbhid" before trying anything else.

                            Z 1 Reply Last reply Oct 17, 2023, 7:50 AM Reply Quote 0
                            • Z
                              zeemaffin @dennypage
                              last edited by Oct 17, 2023, 7:50 AM

                              @dennypage Jesus I feel so dumb right now :D

                              Thank you for your help!!!

                              I wont sturggle next time for sure.... now I have to make the timeouts and the other stuff :D

                              D 1 Reply Last reply Oct 17, 2023, 2:00 PM Reply Quote 0
                              • D
                                dennypage @zeemaffin
                                last edited by Oct 17, 2023, 2:00 PM

                                @zeemaffin Timeouts? Do you mean for NUT? If so, I recommend that you don't configure any times unless you are trying to address a specific problem.

                                K 1 Reply Last reply Oct 31, 2023, 10:52 PM Reply Quote 1
                                • K
                                  KarB1NE @dennypage
                                  last edited by Oct 31, 2023, 10:52 PM

                                  @dennypage Happy Halloween! NUT 2.8.1 is out, when will we see it in pfSense?

                                  D 1 Reply Last reply Oct 31, 2023, 11:21 PM Reply Quote 1
                                  • D
                                    dennypage @KarB1NE
                                    last edited by Oct 31, 2023, 11:21 PM

                                    I gave up waiting for a NUT 8.1 release a while back. The new NUT package is based on nut-devel (git) rather than the nut-2.8.1 release version. At the moment, they are effectively the same thing, but I'm currently thinking to stay with nut-devel until I see how stable the 2.8.1 release actually is.

                                    If you like detail, you can read Redmine issue #14795, and pull requests #1295, #1296, #1310.

                                    The new pfSense NUT package should start with 23.09.

                                    V 1 Reply Last reply Nov 6, 2023, 10:31 PM Reply Quote 2
                                    • V
                                      vizi0n @dennypage
                                      last edited by vizi0n Nov 6, 2023, 10:32 PM Nov 6, 2023, 10:31 PM

                                      @dennypage so if the current nut-2.8.0_23 package from pfSense still loses connectivity with my CyberPower CP1500AVRLCD3, the 2.8.1 release won't be better ?

                                      D 1 Reply Last reply Nov 7, 2023, 12:17 AM Reply Quote 0
                                      • D
                                        dennypage @vizi0n
                                        last edited by Nov 7, 2023, 12:17 AM

                                        @vizi0n The current version of the pfSense NUT package is 2.8.0_2, and depends upon NUT 2.8.0. The next version of the package will be 2.8.1, and depends upon the current Git version of NUT, which is the same as NUT 2.8.1.

                                        For clarity, the issue in NUT 2.8.0 isn't that USB connectivity is lost, which is common with the CyberPowers, but that the USB driver crashes when it attempts a USB.

                                        And yes, the USB issues introduced in NUT 2.8.0 are addressed in NUT 2.8.1.

                                        I expect staff has been very busy with 23.09, but now that it has been released I expect the NUT package will be released soon.

                                        M 1 Reply Last reply Nov 8, 2023, 12:57 AM Reply Quote 0
                                        • M
                                          Maxburn @dennypage
                                          last edited by Nov 8, 2023, 12:57 AM

                                          Yikes, I just stumbled on this thread and sure hope we see that update soon.

                                          Reading earlier in the thread I'm not clear, is the "user=root" to ups.conf AND "interruptonly" to driver arguments going to help the USB Cyberpower situation? Or if I want it fixed now I need to dig up the developer version someone mentioned earlier? I haven't actually found that post yet, still looking.

                                          For me my USB cyberpower was mostly reliable under 2.6.0, I thought I had my packages up to date but maybe not. Upgraded to 2.7.0 and NUT fell apart, disconnect alerts from pfsense, AND all the devices that were listening to NUT over the LAN. I was contemplating rolling the whole pfsense install back to 2.6.0 but now I can see that isn't going to help.

                                          D 1 Reply Last reply Nov 8, 2023, 2:28 AM Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.