![background image](/i/tripp-lite/128520/tripp-lite-b094-008-2e-m-f-b096-048-b096-016-b094-008-2e-v-b096-032/h/tripp-lite-b094-008-2e-m-f-b096-048-b096-016-b094-008-2e-v-b096-032-199.png)
199
Chapter 14: Command Line Configuration
Remote UPSes
To add a remote UPS with the following details (assuming this is our first remote UPS):
UPS
name
oldUPS
Description
UPS in room 2
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=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.
However FYI before adding an RPC the Management Console GUI code makes sure that at least 1 port has been configured to
run in 'device mode', and that the device is set to 'rpc'.
To add an RPC with the following values:
RPC type
APC 7900
Connected via
Port 2
UPS
name
MyRPC
Description
RPC in room 5
Login name for device
rpclogin
Login password for device
secret
SNMP community
v1 or v2c
Logging
Enabled
Log interval
600 second
Number of power outlets
4 (depends on the type/model of the RPC)
# 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
The following five commands are used by the Management Console to add the RPC to 'Managed Devices':
# 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