6. Command Reference of RPCM CLI
The return is:
set automation device-name DEVICE-NAME test ping
Parameters:
--enabled yes|no - enables Ping test
--ip-address - IP Address of the remote device
--connect-timeout-seconds - connect timeout in seconds
--upper-limit-milliseconds - limit in milliseconds after which echo reply
is considered lost
--alarm-packet-loss-percentage - alarm packet loss percentage
--restart-packet-loss-percentage - restart packet loss percentage
--alarm-seconds - time in seconds to trigger the alarm after
reaching the alarm-packet-loss-percentage
--restart-seconds - time in seconds to trigger the restart after
reaching the restart-packet-loss-percentage
--default - set default values for all parameters
Example:
set automation device-name testName test ping --enabled yes --ip-address 127.0.0.1 --
default
set automation device-name testName test ping --enabled yes --ip-address 127.0.0.1 --
connect-timeout-seconds 3 --upper-limit-milliseconds 100 --alarm-packet-loss-percentage 50
--restart-packet-loss-percentage 80 --alarm-seconds 10 --restart-seconds 60
set automation device-name testName test ping --connect-timeout-seconds 4
set automation device-name testName test ping --enabled no
Type 'help' to get suggestions
Example:
Set for a device with the name
"nonexistent_claymore"
, delay before replying in 3 sec-
onds, packet loss percentage for notification 50, packet loss limit for reboot 80, delay before noti-
fication in 10 seconds, delay before reboot to 60 seconds, change IP to 10.210.1.243.
The command is:
set automation device name nonexistent_claymore test ping enabled yes --ip-address
10.210.1.243 --connect-timeout-seconds 3 --upper-limit-milliseconds 100 --alarm-packet-
loss-percentage 50 --restart-packet-loss-percentage 80 --alarm-seconds 10 --restart-sec-
onds 60
The return is:
Automation Device ID: 5, Name: 'nonexistent_claymore' has been updated
Ping Connect Timeout changed from '5' to '3'
Ping Upper Limit Milliseconds changed from '3000' to '100'
Ping Alarm Packet Loss Percentage changed from '5' to '50'
Ping Alarm Seconds changed from '60' to '10'
Ping Restart Packet Loss Percentage changed from '10' to '80'
Ping Restart Seconds changed from '120' to '60'
Ping Enabled already 'ON'
Ping Ip Address already '10.210.1.243'
316