Six Colors
Six Colors

This Week's Sponsor

Magic Lasso Adblock: YouTube ad blocker for Safari


By Dan Moren

Quick Tip: Timestamp a ping

Note: This story has not been updated since 2021.

If you’ve spent any amount of time troubleshooting network connections, you’ve probably used good old ping. But as I discovered recently, sometimes you need a little more information out of it. For example, ping by default does not tell you when the packets you receive come in, which can sometimes be helpful—especially if you need to reconcile information from different servers.

Fortunately, ping on macOS lets you easily add a timestamp with a single additional option. Just enter ping --apple-time <IP address> to see the time a packet was received, right down to the microsecond.

Ping

Of course, ping is replete with other options too, including setting intervals between packets, using specific IPs, and even playing an alert sound when packets are dropped or, indeed, when any packet is received.

And if your network troubleshooting needs are more in-depth, you can always check out a GUI tool like PingPlotter.

[Dan Moren is the East Coast Bureau Chief of Six Colors. You can find him on Mastodon at @dmoren@zeppelin.flights or reach him by email at dan@sixcolors.com. His latest novel, the supernatural detective story All Souls Lost, is out now.]

If you appreciate articles like this one, support us by becoming a Six Colors subscriber. Subscribers get access to an exclusive podcast, members-only stories, and a special community.


Search Six Colors