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

    Running NUT drivers with debugging

    UPS Tools
    1
    1
    398
    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
      last edited by

      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
      • dennypageD dennypage pinned this topic on
      • dennypageD dennypage referenced this topic on
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.