Use Terminal to Ping With Timestamp - Purple Computing
network

How To: Use Terminal to Ping With Timestamp (For Network Troubleshooting)


On macOS, this is a useful Terminal command to ping a network device repeatedly at a set internal, and log the timestamp with the ping reply.

This technique is good to evaluate the availability of a network device over a period time, if for example you suspect that a device or server is dropping off the network randomly (or not responding) at certain times of day.

You can use the -i flag to set a longer interval in seconds, which makes the ping output log easier to look through over an extended period. By default, ping will run every second, which can make it rather tedious when looking back through your ping results to find any significant dropouts.

ping -i 10 8.8.8.8 |¬†while read pong; do echo “$(date): $pong”; done

The above command will ping the IP address 8.8.8.8 (Google DNS) every 10 seconds (-i 10) and will timestamp the corresponding pongs.

Real-Time Feedback

When we solve a support ticket, clients are given the choice of leaving good or bad feedback along with an optional comment. We post the 10 most recent comments here automatically and in real-time. You can view even more on our page.

Date Name Comments
Jul 18th Steve M The lady who answered the phone for my initial enquiry was very friendly & helpful. My request was turned around quickly & Lochie sent me over exactly what I needed. Very happy customer!
Jun 27th Carmen H Excellent thanks!
Jun 25th Jack T Lochie is a legend! Always helpful and resolves issues quickly!
Jun 12th Simon D Great service - got the programme working A+
Jun 10th Helen W Alex was great - sorted all the issues and got me back up and running
Jun 6th Darlene F The support received from Jack today was above and beyond my satisfaction. Great work! Thank you! Have a lovely rest of this day. We appreciate YOU! :-)
Jun 6th Niamh O Thanks for the speedy response/ help
Jun 2nd Bill S I was totally locked out and out of my depth with office 365 and outlook. I tried everything. Dean fixed it, got me up and running, (and on a weekend no less) and I am supremely grateful. Your Toronto staff rules!
May 30th Andy W Awesome, super fast response as it was an urgent requirement, thank you guys
May 29th Mark H As ever a quick response and problem sorted ... thanks Lochie!