The –s parameter specifies the data size in bytes (default is 56 bytes).
The –S parameter specifies the source IP address for the outgoing packets. If the source IP address is not of appliance sending the packets, then an error message appears and nothing is sent.The –c parameter specifies the number of ping packets to be sent.
Run the following command to send continuous ping packets with data size of 50 bytes for each packet:
root@ns# ping -s 50 10.251.30.105
PING 10.251.30.105 (10.251.30.105): 50 data bytes 63 bytes from 10.251.30.105: icmp_seq=0 ttl=255 time=0.100 ms 63 bytes from 10.251.30.105: icmp_seq=1 ttl=255 time=0.063 ms 63 bytes from 10.251.30.105: icmp_seq=2 ttl=255 time=0.067 ms *** truncated *** 63 bytes from 10.251.30.105: icmp_seq=12 ttl=255 time=0.078 ms 63 bytes from 10.251.30.105: icmp_seq=13 ttl=255 time=0.062 ms ^C --- 10.251.30.105 ping statistics --- 14 packets transmitted, 14 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.053/0.069/0.100/0.011 ms root@ns#
Run the following command to send five ping packets with data size of 120 bytes for each packet:
root@ns# ping -c 5 -s 120 10.251.30.105
PING 10.251.30.105 (10.251.30.105): 120 data bytes 128 bytes from 10.251.30.105: icmp_seq=0 ttl=255 time=0.101 ms 128 bytes from 10.251.30.105: icmp_seq=1 ttl=255 time=0.048 ms 128 bytes from 10.251.30.105: icmp_seq=2 ttl=255 time=0.075 ms 128 bytes from 10.251.30.105: icmp_seq=3 ttl=255 time=0.065 ms 128 bytes from 10.251.30.105: icmp_seq=4 ttl=255 time=0.079 ms
Run the following command to send 10 ping packets with data size of 20 bytes for each packet and from the source IP address is 10.251.30.58, which is the NetScaler IP (NSIP) address:root@ns
# ping -c 10 -s 20 -S 10.251.30.58 10.251.30.105
PING 10.251.30.105 (10.251.30.105) from 10.251.30.58: 20 data bytes 28 bytes from 10.251.30.105: icmp_seq=0 ttl=255 time=0.193 ms 28 bytes from 10.251.30.105: icmp_seq=1 ttl=255 time=0.062 ms 28 bytes from 10.251.30.105: icmp_seq=2 ttl=255 time=0.065 ms 28 bytes from 10.251.30.105: icmp_seq=3 ttl=255 time=0.063 ms 28 bytes from 10.251.30.105: icmp_seq=4 ttl=255 time=0.091 ms 28 bytes from 10.251.30.105: icmp_seq=5 ttl=255 time=0.073 ms 28 bytes from 10.251.30.105: icmp_seq=6 ttl=255 time=0.066 ms 28 bytes from 10.251.30.105: icmp_seq=7 ttl=255 time=0.060 ms 28 bytes from 10.251.30.105: icmp_seq=8 ttl=255 time=0.069 ms 28 bytes from 10.251.30.105: icmp_seq=9 ttl=255 time=0.066 ms --- 10.251.30.105 ping statistics --- 10 packets transmitted, 10 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.060/0.081/0.193/0.038 ms root@ns#
Run the following command to send continuous ping packets with the default data size from a source IP address 10.251.03.59, which is a Subnet IP (SNIP) address of the NetScaler appliance:
root@ns# ping -S 10.251.30.59 10.251.30.105
PING 10.251.30.105 (10.251.30.105) from 10.251.30.59: 56 data bytes 64 bytes from 10.251.30.105: icmp_seq=0 ttl=255 time=0.181 ms 64 bytes from 10.251.30.105: icmp_seq=1 ttl=255 time=0.065 ms 64 bytes from 10.251.30.105: icmp_seq=2 ttl=255 time=0.083 ms *** truncated *** 64 bytes from 10.251.30.105: icmp_seq=9 ttl=255 time=0.079 ms 64 bytes from 10.251.30.105: icmp_seq=10 ttl=255 time=0.064 ms ^C --- 10.251.30.105 ping statistics --- 11 packets transmitted, 11 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.062/0.079/0.181/0.033 ms root@ns