The following command will synchronize the live system with the new configuration:
# config -r serialconfig
14.8 Cascaded Ports
To add a new slave device with the following settings:
IP address/DNS name
Description
Label
Number of ports
The following commands must be issued:
# config -s config.cascade.slaves.slave1.address=192.168.0.153
# config -s "config.cascade.slaves.slave1.description=CM in office 42"
# config -s config.cascade.slaves.slave1.label=les1102-2
# config -s config.cascade.slaves.slave1.ports=2
The total number of slaves must also be incremented. If this is the first slave you're adding, type:
# config -s config.cascade.slaves.total=1
Increment this value when adding more slaves.
NOTE:
If a slave is added using the CLI, then the master SSH public key will need to be manually copied to every slave device before cascaded
ports will work (refer to Chapter 6).
The following command will synchronize the live system with the new configuration:
# config -r cascade
14.9 UPS Connections
Managed UPSes
Before adding a managed UPS, make sure that at least 1 port has been configured to run in 'device mode', and that the device is set to 'ups'.
To add a managed UPS with the following values:
Connected via
UPS name
Description
Username to connect to UPS
Password to connect to UPS
shutdown order
Driver
Driver option - option
Driver option - argument
Logging
Log interval
Run script when power is critical
# config -s config.ups.monitors.monitor1.port=/dev/port01
If the port number is higher than 9, for example, port 13, enter:
# config -s config.ups.monitors.monitor1.port=/dev/port13
# config -s "config.ups.monitors.monitor1.name=My UPS"
# config -s "config.ups.monitors.monitor1.description=UPS in room 5"
# config -s config.ups.monitors.monitor1.username=User2
# config -s config.ups.monitors.monitor1.password=secret
# config -s config.ups.monitors.monitor1.sdorder=2
# config -s config.ups.monitors.monitor1.driver=genericups
Chapter 14: Configuration from the Command Line
192.168.0.153
Console in office 42
les1102-2
2
Port 1
My UPS
UPS in room 5
User2
secret
2 (0 shuts down first)
genericups
option
argument
Enabled
2 minutes
Enabled
724-746-5500 | blackbox.com
127