Ping statistics without stopping ping

5

1

Is there a way to see a running-total ping statistic, without needing to stop and restart ping?

When running, I see this:

64 bytes from 8.8.8.8: icmp_seq=3758 ttl=52 time=32.387 ms
64 bytes from 8.8.8.8: icmp_seq=3759 ttl=52 time=30.771 ms
64 bytes from 8.8.8.8: icmp_seq=3760 ttl=52 time=37.255 ms

I want to know how many timeouts I've had so far. When I stop the ping, I get this information:

^C
--- 8.8.8.8 ping statistics ---
3807 packets transmitted, 3190 packets received, 16.2% packet loss
round-trip min/avg/max/stddev = 30.078/34.463/358.893/8.354 ms

How can I show the ping statistics without stopping ping? Is there another tool that's better suited to this?

I'm running OS X 10.8.2, currently using BSD ping.

simont

Posted 2013-04-25T02:49:31.407

Reputation: 1 113

Answers

12

Pressing Ctrl+T during execution will show you the statistics without stopping ping.

Renan

Posted 2013-04-25T02:49:31.407

Reputation: 551

1Ctrl+T also works for FreeBSD. – KeyszerS – 2015-05-31T14:50:38.253

Perhaps you might want to put that in an answer...? – Nevin Williams – 2013-04-25T04:04:53.420

5I found this helpful, but I'm not using OSX, so I want to add that under Linux you have to use Ctrl+\ (to send SIGQUIT). – Stefan Seidel – 2013-04-25T07:15:21.507

1

Download, install and use MTR - this provides a combined ping and traceroute, and is available for most OS's (including OSX). It shows everything above, for every hop between you and your destination host and updates every ping.

davidgo

Posted 2013-04-25T02:49:31.407

Reputation: 49 152