Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On Mac OS X (such as 10.8 thru 10.11) is there a bundled command-line tool to ask a specific remote NTP time server for the current date-time?

I found ntpdc but this queries the ntpd utility which I assume means going through my already-defined NTP servers. I want to make a call outside of my pre-defined NTP servers.

Like this imaginary line where -s means server-address:

ntpclient -s time.euro.apple.com current
share|improve this question

You can use sntp as standard query tool for either NTP or SNTP servers. You may get, set or adjust the time on your host with it.

E.g.

sntp time.euro.apple.com

shows the time

sntp -d time.euro.apple.com

shows a more verbose response including the current time.

Check man sntp for more options.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.