6. Command Reference of RPCM CLI
6.10.2.4. Command
set
automation device
test
tcp-port-availability
Used to specify the settings for monitoring by accessibility of the selected TCP port.
Available options:
enabled
— answer "yes" or "no" to enable (enable) this control method;
ip-address
— IP Address for port access to the device;
port
— TCP port for accessing the device;
connect-timeout-seconds
— an acceptable timeout when the monitored device does not
have time to respond;
alarm-seconds
— the delay time in seconds before the notification (sending a warning);
restart-seconds
— delay time in seconds before rebooting the device;
default
— set all parameters to the default value.
Help ask:
set automation device-name DEVICE-2 test tcp-port-availability ?
The return is:
set automation device-name DEVICE-NAME test tcp-port-availability
Parameters:
--enabled yes|no - enables TCP Port Availability test
--ip-address - IP Address of the remote device
--port - port of the remote device
--connect-timeout-seconds - connect timeout in seconds
--alarm-seconds - time in seconds to trigger the alarm after reaching
the connect-timeout-seconds
--restart-seconds - time in seconds to trigger the restart after reaching
the connect-timeout-seconds
--default - set default values for all parameters
Example:
set automation device-name testName test tcp-port-availability --enabled yes --default
set automation device-name testName test tcp-port-availability --enabled yes --ip-ad-
dress 127.0.0.1 --port 80 --connect-timeout-seconds 3 --alarm-seconds 10 --restart-seconds
60
set automation device-name testName test tcp-port-availability --ip-address 127.0.0.2
set automation device-name testName test tcp-port-availability --enabled no
Type 'help' to get suggestions
Example 1.
Set for the device with the name
"nonexistent_claymore"
, TPC port 80, timeout at
connection in 3 seconds, delay before notification in 10 seconds, delay before reboot in 60 sec-
onds, change IP to 10.210.1.243.
The command is:
set automation device-name DEVICE-2 test tcp-port-availability --enabled yes --ip-address
10.210.1.243 port 80 --connect-timeout-seconds 3 --alarm-seconds 10 --restart-seconds 60
317