Time Synchronization Software
|
After starting to read Faster by James Gleick, an interesting book on how virtually everything we do nowadays has been accelerated, primarily due to the acceleration of new technology, I thought it was about time to try to setup something to automatically adjust the clocks on my computers, so that they are all synchronized with a time server on the Internet. |
For years and years, this used to be really easy on my Solaris box at work. I just had to run (as root):
# rdate datehostThe datehost machine seems to have now gone away.
So I started with a goggle for "time synchronization software" and saw that there was basically two good places to start: the ntp.org website or the NIST website. I decided to go with the latter.
I was able to download a simple Windows executable that allowed me to easily sync the time on my computer over the Internet with an NIST server:
I now needed a solution for my Solaris boxes at work. NIST also has an ftp site with various source code. I downloaded a read.me file, a Makefile, two source files ( sw.c and tcp_time_client.c).
Running:
% make nistime
made the executable (after I'd fixed up the Makefile to include the missing libraries that are now needed to build simple network software such as this). When I tried to run it (as root), the connection was refused. We have a firewall here, so I simply ran it in conjunction with a script that would let me tunnel it through a SOCKS proxy. I then set it up with a cron job, so that this synchronization will automatically occur each night.
I should be able to compile and run the same program on my Mac and do something similar there.
But why is this so involved? Aren't we at an age now where all major OS software should have this time synchronisation software automatically installed and readily available?
Perhaps I'm just missing something obvious...
( Nov 29 2005, 07:17:52 AM PST ) [Listen] Permalink Comments [12]
Comments are closed for this entry.













Posted by Sean on November 29, 2005 at 07:38 AM PST #
Posted by Ashley Hooper on November 29, 2005 at 07:54 AM PST #
Posted by Bart on November 29, 2005 at 08:31 AM PST #
Posted by Carlos on November 29, 2005 at 08:35 AM PST #
I actually did a "man -k ntp" on Solaris and that turned up nothing. Guess I should have done "man xntpd".
Posted by Rich Burridge on November 29, 2005 at 09:02 AM PST #
Posted by ajax on November 29, 2005 at 09:39 AM PST #
`rdate -s time.mit.edu`
I'm not sure if there are differences between rdate on solaris, however.
Posted by Chris Irwin on November 29, 2005 at 09:41 AM PST #
If I try them from behind the firewall (and try to tunnel through with the SOCKS proxy), I get:
What we really need is a time synchonisation server inside the firewall.
Posted by Rich Burridge on November 29, 2005 at 10:13 AM PST #
To enable this service, I need to (as root):
Then to actually run the date/time synchronisation, I need to (as root):
Somewhere on this side of the firewall, is an NTP server that's responding to my request.
Sure would be nice if there was something as simple at the Mac OS X Preferences -> Date & Time -> "Set date and time automatically" checkbox.
Posted by Rich Burridge on November 29, 2005 at 10:55 AM PST #
Posted by Constantin Gonzalez on November 30, 2005 at 04:13 AM PST #
Posted by TK on November 30, 2005 at 06:42 AM PST #
Posted by Serge on December 12, 2005 at 12:53 PM PST #