doc:appunti:hardware:ups_apc_nut
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| doc:appunti:hardware:ups_apc_nut [2026/10/02 12:02] – created niccolo | doc:appunti:hardware:ups_apc_nut [2026/10/02 16:44] (current) – [Configuration] niccolo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Using an APC UPS with the Nut software ====== | ====== Using an APC UPS with the Nut software ====== | ||
| + | |||
| + | ===== Configuration ===== | ||
| + | |||
| + | Configuration files into **/ | ||
| + | |||
| + | * **nut.conf** | ||
| + | * **ups.conf** | ||
| + | * **upsd.conf** | ||
| + | * **upsd.users** | ||
| + | * **upsmon.conf** | ||
| + | |||
| + | === / | ||
| + | |||
| + | < | ||
| + | MODE=standalone | ||
| + | </ | ||
| + | |||
| + | === / | ||
| + | |||
| + | < | ||
| + | [apc-bx2200] | ||
| + | driver = usbhid-ups | ||
| + | port = auto | ||
| + | #serial = " | ||
| + | desc = "APC Back-UPS BX2200MI" | ||
| + | ignorelb | ||
| + | pollonly | ||
| + | </ | ||
| + | |||
| + | === / | ||
| + | |||
| + | < | ||
| + | LISTEN 127.0.0.1 3493 | ||
| + | LISTEN 192.168.0.46 3493 | ||
| + | </ | ||
| + | |||
| + | === /etc/nut/ === | ||
| + | |||
| + | < | ||
| + | [admin] | ||
| + | password = MySecret1 | ||
| + | actions = SET | ||
| + | instcmds = ALL | ||
| + | |||
| + | [monuser] | ||
| + | password = MySecret2 | ||
| + | upsmon master | ||
| + | </ | ||
| + | |||
| + | === / | ||
| + | |||
| + | < | ||
| + | MONITOR apc-bx2200@localhost 1 monuser MySecret2 master | ||
| + | </ | ||
| + | |||
| + | ===== Usage ===== | ||
| + | |||
| + | 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 | ||
| + | </ | ||
| + | |||
doc/appunti/hardware/ups_apc_nut.1790935327.txt.gz · Last modified: by niccolo
