4.13.8 Send ICMP echo request message
Function
Sends an ICMP echo request to a specified IP address on a specified Windows or UNIX server and returns a value indicating whether there was a response.
This plugin assumes the following servers:
• Execution target server
This server executes the plugin and sends an ICMP echo request
• Transmission destination server
This is the server to which the ICMP echo request is sent.
Execute this plugin with the IP address or host name of the transmission target server specified in the common.icmpSendAddress property.
If multiple IP addresses (host names) are specified, the plugin sends the ICMP echo request to all the specified IP addresses (host names).
If there is a response from at least one of the IP addresses (host names), the plugin returns 0.
If there is no response from any of the IP addresses (host names), the plugin returns a nonzero value.
The value of CommandExitCode: output by this plugin is as follows:
In Windows: the value of StatusCode (result of the ICMP echo request) of Win32_PingStatus class (MSDN)
In UNIX: Return value of the ping command
Use situation
After you have started a virtual server, you use this plugin to send an ICMP echo request to verify that communication with that transmission destination server is available.
Prerequisites
For the latest support information about [Required product in the System]/[Required products on the execution target server]/[OS running in the execution target server], see the release notes.
[Required product in the System]
JP1/Automatic Operation 11-00 or later
[Required products on the execution target server]
None.
[OS running in the execution target server]
(1) Windows Server 2008 R2 Standard/Enterprise/Datacenter
(2) Windows Server 2012 Standard/Datacenter, Windows Server 2012 R2 Standard/Datacenter
(3) Windows Server 2016 Standard/Datacenter
(4) Windows Server 2019 Standard/Datacenter
(5) Red Hat Enterprise Linux Server 6 (32-bit x86), Red Hat Enterprise Linux Server 6 (64-bit x86_64)
(6) Red Hat Enterprise Linux Server 7 (64-bit x86_64)
(7) Red Hat Enterprise Linux Server 8 (64-bit x86_64)
(8) CentOS 6 (64-bit x86_64)
(9) CentOS 7 (64-bit x86_64)
(10) CentOS 8 (64-bit x86_64)
(11) Oracle Linux 8 (64-bit x86_64)
[Usage conditions for required products on the execution target server]
None.
Cautions
(1) Adjust the ICMP echo timeout value (common.icmpEchoTimeout property) according to the environment in use.
(2) If the OS of the transmission destination server is Windows, the transmission destination server's firewall must permit ICMP(ECHO) responses.
(3) Do not use a limited broadcast address (255.255.255.255) for this plugin.
(4) If the execution target server is Windows and the user ID set in the authentication information of Connection Destination definitions setting is not the built-in Administrator, one of the following conditions must be satisfied.
- The UAC feature in Windows is completely disabled.
- An RDP session has been established for the user ID set in the authentication information of the Connection Destination definitions setting on the target of connection destinations.
Execution privilege
Administrators permissions
Version
02.00.00
Plug-in tags
Control OS,Windows,Linux
Plug-in name displayed in the task log
osSendIcmp
Return code
0: Normal
12: Error (user error) Invalid property
25: Error (invalid environment) Communication error
27: Error (check task logs for the nature of error)
41: Error (error detected in plugin) Missing property (error detected in plugin script)
Property list
The following table lists the properties:
Property key |
Property name |
Description |
Default value |
I/O type |
Required |
---|---|---|---|---|---|
plugin.destinationHost |
Host name of the execution target server |
Specify the host name or IP address of the server on which this plugin will be executed. IPv6 addresses are not supported. |
-- |
Input |
R |
common.icmpSendAddress |
ICMP echo destination |
Specify a comma-separated list of IP addresses or host names to which an ICMP echo request will be sent. |
-- |
Input |
R |
common.icmpEchoTimeout |
Timeout value for response to an ICMP echo request |
Specify (in ms) the timeout value for a response to an ICMP echo request. |
4000 |
Input |
R |
common.returnValue |
Return value for the plugin |
The return value of this plugin stored. |
-- |
Output |
O |