267
1.877.877.2269
BLACKBOX.COM
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.877.2269
Assuming there are already 2 managed devices configured, the 5 commands below will add the UPS to Managed Devices.
# config -s \
"config.devices.device3.connections.connection1.name=My UPS"
# config -s \
"config.devices.device3.connections.connection1.type=UPS Unit"
# config -s "config.devices.device3.name=My UPS"
# config -s "config.devices.device3.description=Room 5 UPS"
# config -s config.devices.total=3
To delete this managed UPS:
# config -d config.ups.monitors.monitor1
NOTE: Decrement monitors.total when deleting a managed UPS.
REMOTE UPSES
To add a remote UPS with the following details (assuming this is our first remote UPS):
TABLE 15-8. REMOTE UPSES
SETTING
VALUE
UPS name
oldUPS
Description
Room 2 UPS
Address
192.168.50.50
Log status
Disabled
Log rate
240 seconds
Run shutdown script
Enabled
# config -s config.ups.remotes.remote1.name=oldUPS
# config -s "config.ups.remotes.remote1.description=Room 2 UPS"
# config -s config.ups.remotes.remote1.address=192.168.50.50
# config -d config.ups.remotes.remote1.log.enabled
# config -s config.ups.remotes.remote1.log.interval=240
# config -s config.ups.remotes.remote1.script.enabled=on
# config -s config.ups.remotes.total=1
The following command will synchronize the live system with the new configuration:
# config -a
CHAPTER 15: CONFIGURATION FROM THE COMMAND LINE