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

Running NUT drivers with debugging

Scheduled Pinned Locked Moved UPS Tools
1 Posts 1 Posters 520 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.
  • D
    dennypage
    last edited by May 3, 2024, 4:31 PM

    To run the NUT driver in debug mode, follow these steps:

    • Start the service in the GUI. This is done automatically when you press Save in Services / UPS / Settings.

    • Log into the system via ssh or on the console and determine the name of the UPS and the name of the driver. You can find both in /usr/local/etc/nut/ups.conf. Example:

      [myups]
      driver=usbhid-ups
      
    • Kill the UPS driver. You can find If you are using the usbhid-ups driver, the command would look like this:

      killall usbhid-ups
      
    • Now, run the driver with debug. As an example, if you are using the usbhid-ups driver, and your UPS name is myups, the command would look like this:

      /usr/local/libexec/nut/usbhid-ups -DDD -a myups
      

    There driver will output information in the shell as it runs. See what error it shows. If it doesn't show enough you can add more 'D's until it does up to "-DDDDDD".

    1 Reply Last reply Reply Quote 1
    • D dennypage pinned this topic on May 3, 2024, 4:31 PM
    • D dennypage referenced this topic on May 13, 2024, 3:54 PM
    1 out of 1
    • First post
      1/1
      Last post
    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
      This community forum collects and processes your personal information.
      consent.not_received