NUT and UPS Calibration
I have replaced some batteries for my APC Smart-UPS 1500. I have this unit running my firewall, switch, and a few miscellaneous networking items. What I am looking to do is run a calibration on the unit (now that it has charged for 24 hrs).
I have nut installed on the pfSense unit and am connected to the UPS via USB, but I am unfamiliar with how to run the command to calibrate.
I have been trying to still do this via command line, but am still unable to get it to work. What am I supposed to be using for the username and password if I am using this as a local USB attached UPS?
$ upscmd -h Network UPS Tools upscmd 2.6.5 usage: upscmd [-h] upscmd [-l <ups>] upscmd [-u <username>] [-p <password>] <ups> <command></command> [<value>] Administration program to initiate instant commands on UPS hardware. -h display this help text -l <ups> show available commands on UPS <ups> -u <username> set username for command authentication -p <password> set password for command authentication <ups> UPS identifier - <upsname>[@<hostname>[:<port>]] <command></command> Valid instant command - test.panel.start, etc. [<value>] Additional data for command - number of seconds, etc.</value></port></hostname></upsname></ups></password></username></ups></ups></value></ups></password></username></ups>
$ upscmd -l Smart1500 Instant commands supported on UPS [Smart1500]: 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.reboot - Shut down the load briefly while rebooting the UPS 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 test.panel.start - Start testing the UPS panel test.panel.stop - Stop a UPS panel test
This was never answered, so I just wanted to add to it in case anyone else has this problem.
This info is correct for 2.4.3 p1, it may be correct for previous versions also, but I didn't test it.
The password for the nut admin account can be found in the /usr/local/etc/nut/upsd.users file. It is a random password that changes with every reboot.
You can use that password for the various nut commands, upscmd and upsrw are the main ones.