Main Menu

Search

LINUX: Ping Command To Get Average Response Time for Total Number of Pings? (How To Doc)

Below Ping Command can be used to get average response time for total number of pings.
ping -c <total number of pings> -q <hostname>

For e.g. if you need average response time for 5 pings to testhost, your command looks as follows:

ping -c 5 -q testhost

Below is example snippet for above command.

PING 10.10.10.10 (10.10.10.30) 56(84) bytes of data.

--- 10.10.10.10 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 0.087/0.095/0.112/0.012 ms

Products to which Article Applies

All Linux Operating Systems.


Additional References


https://linux.die.net/man/8/ping




tarun boyella

No comments:

Post a Comment