But it will take about 3-5 minutes to make all the setup under Linux properly. We need to run a
upscmd at last, but there are a few steps before that.
- First of all, install
$ sudo apt install nut
- Append following lines to
/etc/nut/ups.confaccording to your ups device (descparameter not important, you don’t need to give correct brand name either but the given section name will be used later to identify configured ups device, we’re using eaton as config section name here):
[eaton] driver = usbhid-ups port = auto desc = "Eaton 5E"
- Now start the upsdriver with
$ sudo upsdrvctl start Network UPS Tools - UPS driver controller 2.7.4 Network UPS Tools - Generic HID driver 0.41 (2.7.4) USB communication driver 0.33
- Run upsc command the get beeper status:
$ upsc eaton ups.beeper.status enabled
- We’re so close, now append following lines to
/etc/nut/upsd.users, change the username admin or password as you want:
[admin] password = "test1234" actions = SET instcmds = ALL
- Reload upsd with the new users config:
$ sudo upsd -c reload
- You can query the list of the commands which will be supported by your ups device with the upscmd:
$ upscmd -l eaton Instant commands supported on UPS [eaton]: beeper.disable - Disable the UPS beeper beeper.enable - Enable the UPS beeper beeper.mute - Temporarily mute the UPS beeper beeper.off - Obsolete (use beeper.disable or beeper.mute) beeper.on - Obsolete (use beeper.enable) load.off - Turn off the load immediately load.off.delay - Turn off the load with a delay (seconds) shutdown.stop - Stop a shutdown in progress
- As you can see, there is a command named beeper.disable and we’ll be execute this command (give the username and password which we configured just before):
$ upscmd eaton beeper.disable Username (root): admin Password: OK
- Now check the beeper status again:
$ upsc eaton ups.beeper.status disabled
That’s it. It takes some time but your ears will be happy.