Skip to main content
Question

Network Time Servers and macOS Mojave

  • November 19, 2018
  • 4 replies
  • 70 views

Forum|alt.badge.img+10

With the release of macOS Mojave the command I was using to set the system clocks of our Mac lab systems stopped working. Here is the old command:

ntpdate -bvs time-a.nist.gov

And here are three examples of the new command:

Apple's time server

sudo sntp -sS time.apple.com

Government server in the USA

sudo sntp -sSt 10 time-b.nist.gov

Government server in Canada

sudo sntp -sSt 4 time.nrc.ca

Perhaps it is not a surprise that of the three servers listed above, the Canadian time server is the fastest and therefore the most accurate, but then again I am in Canada. Apple, of course, configures Mac systems out-of-the box to talk to its own server, time.apple.com. The NIST server sometimes times out frequently, even with a 10 second timeout. Perhaps someone here can suggest a better time server.

For reference, here is a link to the NRC’s NTP page which includes information about a subscription service to an authenticated time server:

https://www.nrc-cnrc.gc.ca/eng/services/time/network_time.html

I'm sure there are similar servers in the USA and elsewhere.

4 replies

Forum|alt.badge.img+5
  • New Contributor
  • November 19, 2018

try using just time.nist.gov and see if the response time is any better.


Forum|alt.badge.img+15
  • Esteemed Contributor
  • November 19, 2018

I'm pretty sure systemsetup still works for setting the time server.

systemsetup -setusingnetworktime on -setnetworktimeserver time-a.nist.gov

Forum|alt.badge.img+17
  • Contributor
  • November 19, 2018

Yeah, we use systemsetup, I'm pretty certain that's the way Apple recommends to do it.


Forum|alt.badge.img
  • New Contributor
  • May 3, 2019

Thank you. sudo sntp is just what I needed for testing new ntp server installations.