the NTP socket is in use
I'm trying to get my Mac OS X to automatically sync time with NTP. However, I keep getting an error message. Here is the command and the output:
$ sudo ntpdate pool.ntp.org
Anyone has an idea what is happening here? I use the same command on my Ubuntu computers and it works fine.
OS X has built-in NTP synchronization, I guess it is conflicting with your command.
Go to System Preferences > Date and Time and there you can set up NTP.
Why do you have to set it up this way? I thought if you have configured it in System Preferences, it should automatically sync up with whatever NTP server that you have specified?
I guess you can try the ntptimeset command.
The ntptimeset command reads your ntp.conf file to determine which NTP server to sync up with.
I believe this is how you run it:
-s sets the system clock
Thanks. Didn't realize "Set date & time automatically" in System Preferences is the same as NTP. I guess that answers why NTP client couldn't bind the socket.
I guess I've been using the UNIX shell too long . . . I still use "Terminal" 90% of the time on Mac OS X.
I couldn't find ntptimeset. I am using Mac OS X 10.5.4. Is that an utility on newer or order version of Mac OS X?
I have 10.5.6. Apple must have removed it in Leopard.
u'r using ntp so u can't run ntpdate, kill ntpd and retry ^^
OS X uses ntpd instead of ntpdate. You can learn how OS X sets/adjusts time by looking at these Apple Developer pages:
In short, you can specify multiple NTP time-servers in your /etc/ntp.conf like this:
On my Mac, the /var/lib/ntp/ntp.drift file didn't exist, so I created the "ntp" folder and then the file
A reading of the above-listed Apple dev pages will give a bit of insight into my settings.
Did your message disappear? Read the Forums FAQ.
Spam Control | * indicates required field
No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.
Messages, files, and images copyright by respective owners.
2717 Users Online
Copyright © 2004 - 2017. All Rights Reserved.