De-Beep the NUT-UPS

This is a pretty simple thing to set up. The NUT-UPS service is provided by Rockstor. When power goes out, the UPS starts beeping. I don’t care if the power is out. If I’m home, I’ll know it. If I don’t know it, I’m most likely asleep. If I’m not home, the beeping will annoy my family or no one will be here to hear it.

I have a Cyber Power CP1350AVRLCD UPS. This should work on quite a few more than just mine. If you have NUT UPS working, you can see if your UPS can be de-beeped with the following command:

upscmd -l ups

You should get a list of supported commands. Here’s what I received:

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)
load.on - Turn on the load immediately
load.on.delay - Turn on the load with a delay (seconds)
shutdown.return - Turn off the load and return when power is back
shutdown.stayoff - Turn off the load and remain off
shutdown.stop - Stop a shutdown in progress
test.battery.start.deep - Start a deep battery test
test.battery.start.quick - Start a quick battery test
test.battery.stop - Stop the battery test

Note the first command that was listed as supported is beeper.disable. This suggests that you should be able to turn the beeper off.

You’ll need to enable the ability to issues commands though…

  1. sudo nano /etc/ups/upsd.users
  2. Scroll to the very bottom of the file.
  3. You should see a warning to not edit below the line, and a section titled [monuser] assuming you used the default username when setting up the NUT-UPS service.
  4. Add the following lines to end of the file:
    actions = SET
    instcmds = beeper.disable
  5. Press <Ctrl>+<O> then to save the file
  6. Press <Ctrl>+<X> to Exit nano
  7. Reload the UPS NUT tools with sudo upsd -c reload
  8. Disable the beeper with upscmd ups beeper.disable
  9. You’ll be asked for a username and password. Enter the username and the password you entered when you set up the NUT-UPS service. Default username is monuser
  10. Check the status of the beeper with either upsc ups or upsc ups ups.beeper.status

In step 4, you can set instcmds = ALL to be able to send more than just the beeper disable command.

Edit: This is also working on an APC Back-UPS ES 750.

2 Likes