prevent ping output from showing (truncated)
instead of time=##.# ms
The problem of undesired output format is clearly due to the test I'm running: determining packet loss threshold by packet size. My question is, how can I view the time (instead of "truncated") anyways?
Desired output format:
user@desktop:~$ ping -c 10 -s 1372 -v hostname.com PING hostname.com (X.X.X.X) 1372(1400) bytes of data. 1380 bytes from hostname.com (X.X.X.X): icmp_req=1 ttl=242 time=82.8 ms 1380 bytes from hostname.com (X.X.X.X): icmp_req=2 ttl=242 time=82.7 ms --- hostname.com ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 82.826/83.038/83.250/0.212 ms
Undesired output format:
user@desktop:~$ ping -c 10 -s 1373 -v hostname.com PING hostname.com (X.X.X.X) 1373(1401) bytes of data. 1376 bytes from hostname.com (X.X.X.X): icmp_req=1 ttl=242 (truncated) 1376 bytes from hostname.com (X.X.X.X): icmp_req=2 ttl=242 (truncated) --- hostname.com ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 82.997/83.010/83.023/0.013 ms
In the interest of completeness, also showing an intermittent error.
user@desktop:~$ ping -c 2 -s 1373 -v hostname.com PING hostname.com (X.X.X.X) 1373(1401) bytes of data. From hostname2.com (Y.Y.Y.Y) icmp_seq=1 Frag needed and DF set (mtu = 1400) 1376 bytes from hostname.com (X.X.X.X): icmp_req=2 ttl=242 (truncated) --- hostname.com ping statistics --- 2 packets transmitted, 1 received, +1 errors, 50% packet loss, time 999ms rtt min/avg/max/mdev = 82.937/82.937/82.937/0.000 ms
(truncated)
output.