Below you'll find one or more lines starting with 'exec:' followed by an
absolute path to the driver binary and some command line option. This is
what the driver starts and you need to copy and paste that line and
append the debug flags to that line (less the 'exec:' prefix).
0.007145 Shutdown UPS: serverups
0.007618 exec: /lib/nut/usbhid-ups -a serverups -k
On Sun, 30 Oct 2016, Raymond Day wrote:
I did just copy and paste on the command line like this:
root@odroid-u2:/etc/nut# Shutdown UPS: serverups
-bash: Shutdown: command not found
Don't know why it says "-bash: Shutdown: command not found"
There is no command Shutdown with an upper case "S".
In any case, you only needed to copy the lines preceeded by "exec".
root@odroid-u2:/etc/nut# /lib/nut/usbhid-ups -a serverups -k
Network UPS Tools - Generic HID driver 0.37 (2.6.4)
USB communication driver 0.31
Using subdriver: CyberPower HID 0.3
Initiating UPS shutdown
root@odroid-u2:/etc/nut#
But the next command "/lib/nut/usbhid-ups -a serverups -k" sounds like
it turn off the UPS for a sec. then back on. So not sure if it did a
poweroff command before that.
For more detail, try adding the -DD debug flags as suggested previously.
Roger
_______________________________________________
Nut-upsdev mailing list
Nut-upsdev@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev