Job Management Partner 1/Base User's Guide
Function
The jp1ping command converts the host name specified in the argument into an IP address by using the network functionality (gethostbyname) managed by the OS, and then executes the ping command on the acquired IP address.
Use this command to check the validity of network settings for a host that has multiple network interfaces (a host assigned multiple IP addresses for a single host name).
Format
jp1ping [-h logical-host-name] host-name
Required execution permission
In Windows: None.
In UNIX: None.
Command directory
- In Windows:
- installation-folder\bin\
- In UNIX:
- /opt/jp1base/bin/
Arguments
-h logical-host-name
When using JP1/Base in a cluster system, specify the logical host for which you want to execute the jp1ping command. If you omit this option, the host name set in the environment variable JP1_HOSTNAME is assumed. If the environment variable JP1_HOSTNAME is not set, the physical host name is assumed.
host-name
Specify the name of a host on the network.
Return values
0 Normal end Other than 0 Abnormal end (but the command ends normally if the command usage is displayed after command execution without any arguments specified)
Example
The following shows a result (output example) of executing the jp1ping command to check what IP address server1 is using:
C:\>jp1ping server1 LogicalHostnameKey : no define. use JP1_DEFAULT jp1hosts : no entry. extract hostlist is disabled. Search jp1hosts : server1 is not found. Resolved Host List : server1 -> server1.hitachi.co.jp(172.16.0.10, 172.16.0.20), Check with ping command --- Pinging 172.16.0.10 with 32bytes of data: Reply from 172.16.0.10: bytes=32 time<10ms TTL=128 Reply from 172.16.0.10: bytes=32 time<10ms TTL=128 Reply from 172.16.0.10: bytes=32 time<10ms TTL=128 Reply from 172.16.0.10: bytes=32 time<10ms TTL=128 Pinging 172.16.0.20 with 32bytes of data: Reply from 172.16.0.20: bytes=32 time<10ms TTL=128 Reply from 172.16.0.20: bytes=32 time<10ms TTL=128 Reply from 172.16.0.20: bytes=32 time<10ms TTL=128 Reply from 172.16.0.20: bytes=32 time<10ms TTL=128 C:\>From the output, you can tell that the host name server1 resolved to the two IP addresses 172.16.0.10 and 172.16.0.20, and that the pinging to the NIC is actually enabled.
All Rights Reserved. Copyright (C) 2009, Hitachi, Ltd.