networkupstools / nut

The Network UPS Tools repository. UPS management protocol Informational RFC 9271 published by IETF at https://www.rfc-editor.org/info/rfc9271 Please star NUT on GitHub, this helps with sponsorships!
https://networkupstools.org/
Other
1.92k stars 344 forks source link

Tripp Lite AVRX550U using wrong protocol. Issuing restart command to UPS after shutdown? #799

Open objecttothis opened 4 years ago

objecttothis commented 4 years ago

Second, it's unclear if NUT is issuing the command for the UPS to power back on after powering off, but it should not be issuing that command. I've attached the protocol documentation that Tripp Lite sent me. You probably already have it, but just in case it's helpful, here it is.

Communication Protocol 2012 for customer.pdf

Here is the upsmon.conf file:

MONITOR ups@localhost:3493 1 upsmon [REDACTED] MASTER
NOTIFYCMD "/usr/local/sbin/upssched"
NOTIFYFLAG ONBATT SYSLOG+EXEC
NOTIFYFLAG LOWBATT SYSLOG+EXEC
NOTIFYFLAG ONLINE SYSLOG+EXEC
NOTIFYFLAG COMMBAD SYSLOG+EXEC
NOTIFYFLAG COMMOK SYSLOG+EXEC
NOTIFYFLAG REPLBATT SYSLOG+EXEC
NOTIFYFLAG NOCOMM SYSLOG+EXEC
NOTIFYFLAG REPLBATT SYSLOG+EXEC
NOTIFYFLAG NOCOMM SYSLOG+EXEC
NOTIFYFLAG FSD SYSLOG+EXEC
NOTIFYFLAG SHUTDOWN SYSLOG+EXEC
SHUTDOWNCMD "/sbin/shutdown -p now"
POWERDOWNFLAG /etc/killpower
HOSTSYNC 15

ups.conf

[ups]
        driver = usbhid-ups
        port = /dev/uhid0
        desc =

upssched.conf

CMDSCRIPT   "/usr/local/bin/sudo /usr/local/bin/custom-upssched-cmd"
PIPEFN      /var/db/nut/upssched.pipe
LOCKFN      /var/db/nut/upssched.lock

AT NOCOMM   * EXECUTE NOTIFY-NOCOMM
AT COMMBAD  * START-TIMER NOTIFY-COMMBAD 10
AT COMMOK   * CANCEL-TIMER NOTIFY-COMMBAD COMMOK
AT FSD      * EXECUTE NOTIFY-FSD
AT LOWBATT  * EXECUTE NOTIFY-LOWBATT
AT ONBATT   * EXECUTE NOTIFY-ONBATT
AT ONLINE   * EXECUTE NOTIFY-ONLINE
AT REPLBATT   * EXECUTE NOTIFY-REPLBATT
AT SHUTDOWN   * EXECUTE NOTIFY-SHUTDOWN
AT ONBATT    * START-TIMER SHUTDOWN 5
AT ONLINE   * CANCEL-TIMER SHUTDOWN
objecttothis commented 4 years ago

Does anyone read these Issues?

jimklimov commented 2 years ago

Was wrongly linked from a PR, so got auto-closed - reopening