 |
The Question is:
On UCX 4.2 when I Used the PING command I received a short answer from TCP
(%UCX-I-LOOPACT, 200.23.215.126 is alive) I use this command in batch process
to validate.
Now in TCPIP V5 the PING command send me a long answer and do not stop until I
press Ctrl-c, how can I obtain a short answer in Version 5 like in version 4?
The Answer is :
Please make sure you use TCP/IP Services V5.0A.
The /NUMBER_PACKETS qualifier controls how many packets are sent before
the PING command terminates:
$ TCPIP PING 200.23.215.126 /NUMBER_PACKETS=1
PING 200.23.215.126 (200.23.215.126): 56 data bytes
64 bytes from 200.23.215.126: icmp_seq=0 ttl=64 time=0 ms
----200.23.215.126 PING Statistics----
1 packets transmitted, 1 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0 ms
In batch mode use $STATUS after the command has completed to determine if
the node is reachable. For example:
$ TCPIP PING 200.23.215.126 /NUMBER_PACKETS=1
PING 200.23.215.126 (200.23.215.126): 56 data bytes
----200.23.215.126 PING Statistics----
1 packets transmitted, 0 packets received, 100% packet loss
%SYSTEM-F-TIMEOUT, device timeout
$ show sym %status
$STATUS == "%X1000022C"
|