en software libre

Ping: Ver estadísticas sin cortar la ejecución

Vía systemadmin.es me encuentro con que hay una manera de ver las estadísticas del ping sin cortar la ejecución del mismo.

Mientras se ejecuta un ping, hay que enviar la señal SIGQUIT (Se logra con CTRL+’\’).

La salida del ping usando esto luce mas o menos de esta manera:

$ ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.059 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.059 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.058 ms
64 bytes from localhost (127.0.0.1): icmp_seq=4 ttl=64 time=0.064 ms
4/4 packets, 0% loss, min/avg/ewma/max = 0.058/0.060/0.059/0.064 ms
64 bytes from localhost (127.0.0.1): icmp_seq=5 ttl=64 time=0.061 ms
64 bytes from localhost (127.0.0.1): icmp_seq=6 ttl=64 time=0.057 ms
6/6 packets, 0% loss, min/avg/ewma/max = 0.057/0.059/0.059/0.064 ms
6/6 packets, 0% loss, min/avg/ewma/max = 0.057/0.059/0.059/0.064 ms
64 bytes from localhost (127.0.0.1): icmp_seq=7 ttl=64 time=0.057 ms
7/7 packets, 0% loss, min/avg/ewma/max = 0.057/0.059/0.059/0.064 ms
7/7 packets, 0% loss, min/avg/ewma/max = 0.057/0.059/0.059/0.064 ms
64 bytes from localhost (127.0.0.1): icmp_seq=8 ttl=64 time=0.065 ms
64 bytes from localhost (127.0.0.1): icmp_seq=9 ttl=64 time=0.059 ms
64 bytes from localhost (127.0.0.1): icmp_seq=10 ttl=64 time=0.059 ms
10/10 packets, 0% loss, min/avg/ewma/max = 0.057/0.059/0.059/0.065 ms
64 bytes from localhost (127.0.0.1): icmp_seq=11 ttl=64 time=0.063 ms
64 bytes from localhost (127.0.0.1): icmp_seq=12 ttl=64 time=0.064 ms
64 bytes from localhost (127.0.0.1): icmp_seq=13 ttl=64 time=0.065 ms
^C
--- localhost ping statistics ---
13 packets transmitted, 13 received, 0% packet loss, time 11993ms
rtt min/avg/max/mdev = 0.057/0.060/0.065/0.010 ms

Si observan bien, verán un resumen de las estadísticas entre lineas, que son las veces que lance la señal SIGQUIT.

La moraleja de todo esto es que hay que leer el man de los comandos mas seguido :p

Source: http://systemadmin.es/2015/01/estadisticas-de-ping

Loading Facebook Comments ...

¿Algo para decir?

Comentario

Loading Disqus Comments ...