In order to issue UPS commands it is necessary to have enabled a user with administrative privileges as above first.
+
+
In the examples below, it is assumed your UPS name is '''UPS''', that it is local, that the administrative user is '''admin''' and password '''admin'''. You can verify your UPS name via:
+
upsc -l
+
+
To view a complete list of available commands for your UPS:
+
upscmd -l UPS
+
+
You can now issue a command to the UPS with similar to the following:
+
upscmd -u admin -p admin UPS test.battery.start
+
+
Where the command test.battery.start is a valid command for your UPS as previously determined by '''upscmd -l UPS'''. Depending upon the command issued you may get broadcast messages and emails relating to and confirming what the UPS is doing.
+
+
After you are done, clean up by disabling the '''upsd''' administrative user '''admin''':
+
+
{{Warning box|Before issuing any commands verify what they do for your particular UPS via the relevant documentation and ensure that the command meets your intended behavioural requirement!
+
+
Issuing commands could shutdown your server unexpectedly!}}