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
Aug 6th Matt H Very quick resolution, thanks.
Jul 31st peterga... Got objective advice & price comparisons with recommendations for courses if action. All swift & courteous - building trust. Very good service
Jul 28th Simon K brilliant excution - as ever
Jul 24th SCMS F Issue resolved in a very efficient and effective manner
Jul 16th Ros W Quick and spot on!
Jul 8th Roger F Thanks Joe really helpful today , need to do a bit more self help but at least I have a bit of direction Roger
Jul 3rd Sally & Quick and efficient resolution - Thank you Lochie
Jul 2nd Lindsay P Thanks - all you need in one phone call. Reassurance you're not an idiot, quick fixing of glitches and totally professional service....
Jul 2nd Emily C Quick and efficient service as always, thank you
Jun 18th Alexandra N As always, the team at Purple are knowledgeable, efficient and a pleasure to work with.