Use Terminal to Ping With Timestamp - Purple Computing

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 |¬†while read pong; do echo “$(date): $pong”; done

The above command will ping the IP address (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
Jun 30th Clare M Responsive & helpful as always.
Jun 23rd Catharina W Very fast and super efficient, thanks!
Jun 23rd Clint C Once again Purple are outstanding with the support they provide. James figured out the issue and had us up and running again in no time.
Jun 21st Mark H Prompt and efficient support
Jun 20th Mark K James was very efficient and considerate. Thanks very much!
Jun 7th Hannah C Michael was super helpful :)
May 31st David R As always great support from the Purple team. Dean, Lochie and James sorted our servers transition to our new office professionally and were very helpful through out the process. Thank you! Pedro.
May 24th Nigel B Great speedy response and in the end a simple solution, but one I would not have found myself.
May 18th Hilary N Happy. Lochie confirmed WebScraper was nearly set up correctly on my Mac.
May 17th Dominic E Lochie was quick and efficient.