189
Chapter 14: Command Line Configuration
Remote UPSes
ToaddaremoteUPSwiththefollowingdetails(assumingthisisourrstremoteUPS):
UPSname oldUPS
Description UPSinroom2
Address 192.168.50.50
Logstatus Disabled
Lograte 240seconds
Run shutdown script Enabled
# config -s config.ups.remotes.remote1.name=oldUPS
# config -s "config.ups.remotes.remote1.description=UPS in room 2"
# 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
14.1.9 RPC Connections
You can add an RPC connection from the command line but it is not recommended that you do so because of dependency
issues.
HoweverFYIbeforeaddinganRPCtheManagementConsoleGUIcodemakessurethatatleast1porthasbeenconguredto
runin'devicemode',andthatthedeviceissetto'rpc'.
To add an RPC with the following values:
RPC type APC 7900
Connected via Port 2
UPSname MyRPC
Description RPCinroom5
Login name for device rpclogin
Login password for device secret
SNMPcommunity v1orv2c
Logging Enabled
Log interval 600 second
Numberofpoweroutlets 4(dependsonthetype/modeloftheRPC)
# config -s config.ports.port2.power.type=APC 7900
# config -s config.ports.port2.power.name=MyRPC
# config -s "config.ports.port2.power.description=RPC in room 5"
# config -s config.ports.port2.power.username=rpclogin
# config -s config.ports.port2.power.password=secret
# config -s config.ports.port2.power.snmp.community=v1
# config -s config.ports.port2.power.log.enabled=on
# config -s config.ports.port2.power.log.interval=600
# config -s config.ports.port2.power.outlets=4
ThefollowingvecommandsareusedbytheManagementConsoletoaddtheRPCto'ManagedDevices':
# config -s config.devices.device3.connections.connection1.name=myRPC
# config -s "config.devices.device3.connections.connection1.type=RPC Unit"
# config -s config.devices.device3.name=myRPC
# config -s "config.devices.device3.description=RPC in room 5"
# config -s config.devices.total=3
The following command will synchronize the live system with the new configuration:
# config -a