Configuration files into /etc/nut/ directory:
MODE=standalone
[apc-bx2200]
driver = usbhid-ups
port = auto
#serial = "9B2611A02967"
desc = "APC Back-UPS BX2200MI"
ignorelb
pollonly
LISTEN 127.0.0.1 3493 LISTEN 192.168.0.46 3493
[admin]
password = MySecret1
actions = SET
instcmds = ALL
[monuser]
password = MySecret2
upsmon master
MONITOR apc-bx2200@localhost 1 monuser MySecret2 master
List the UPS configured with nut:
upsc -l apc-bx2200
Display the status of the named UPS:
upsc apc-bx2200
Display the value of one variable only.
upsc apc-bx2200 ups.status upsc apc-bx2200 battery.charge upsc apc-bx2200 battery.runtime upsc apc-bx2200 ups.alarm upsc apc-bx2200 ups.load
Show the list of supported instant commands on that UPS.
upscmd -l apc-bx2200
Inizia un test rapido della batteria (richiede autenticazione):
upscmd apc-bx2200 test.battery.start.quick
upscmd apc-bx2200 beeper.mute upscmd apc-bx2200 beeper.disable upscmd apc-bx2200 beeper.enable
upsc apc-bx2200 ups.beeper.status