266
1.877.877.2269
BLACKBOX.COM
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.877.2269
To add a managed UPS with the following values:
TABLE 15-7. MANAGED UPSES
SETTING
VALUE
Connected via
Port 1
UPS name
My UPS
Description
Room 5 UPS
Username to connect to UPS
user2
Password to connect to UPS
A-secret-for-2.
shutdown order
2 (0 shuts down first)
Driver
genericups
Driver option
option
Driver argument
argument
Logging
Enabled
Log interval
2 minutes
Run script when power is critical
Enabled
Run the following commands:
# config -s config.ups.monitors.monitor1.port=/dev/port01
# config -s "config.ups.monitors.monitor1.name=My UPS"
# config -s "config.ups.monitors.monitor1.description=Room 5 UPS"
# config -s config.ups.monitors.monitor1.username=user2
# config -s config.ups.monitors.monitor1.password=A-secret-for-2.
# config -s config.ups.monitors.monitor1.sdorder=2
# config -s config.ups.monitors.monitor1.driver=genericups
# config -s \
config.ups.monitors.monitor1.options.option1.opt=option
# config -s \
config.ups.monitors.monitor1.options.option1.arg=argument
# config -s config.ups.monitors.monitor1.options.total=1
# config -s config.ups.monitors.monitor1.log.enabled=on
# config -s config.ups.monitors.monitor1.log.interval=2
# config -s config.ups.monitors.monitor1.script.enabled=on
With regards the first command above, if the port number is higher than 9 (eg port 13) enter the command as follows:
# config -s config.ups.monitors.monitor1.port=/dev/port13
Also, make sure to increment the total monitors:
# config -s config.ups.monitors.total=1
CHAPTER 15: CONFIGURATION FROM THE COMMAND LINE