Welcome to WebmasterWorld Guest from 3.209.80.87

Forum Moderators: bakedjake

Message Too Old, No Replies

Syncing Clock

     
10:34 pm on Mar 31, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 4, 2001
posts:997
votes: 0


My servers' clocks get out of whack fast. By maybe 5 minutes a week depending on the machine. Is there any easy way to sync the computer clock on a unix machine with some standard online clock somewhere?
10:37 pm on Mar 31, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 1, 2002
posts:1427
votes: 2


I think nasa offers free time service.
I got the same situation. All boxes are out of synch by a lot.
Always was too lazy to configure it.
10:40 pm on Mar 31, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 9, 2002
posts:64
votes: 0


Might look into the Network Time Protocol. See the link below:

[ccd.bnl.gov ]

11:15 pm on Mar 31, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 22, 2002
posts:1782
votes: 0


A simple
ntpdate -s -t 20 -u ntp1.t-online.de ptbtime1.ptb.de ptbtime2.ptb.de
as a cron job run hourly will keep everthing n´sync.

call net time \\server /set /yes
will syncronize your windows boxes with a Linux [kernel.org] box.

Andreas

11:16 pm on Mar 31, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:May 14, 2002
posts:1192
votes: 0


From the bottom of the xntp file:

Last Modified: October 23, 1995 :(

NTP has been around for a long time, aims at keeping your clock within a few tens of milliseconds of true time. Probably overkill for a single box, so SNTP (Simple Network Time Protocol) was developed.

Lots of references in Google Directory [directory.google.com...]

I am currently still using a Win2K setup so I am not clear as to what is available on real computers, there are multiple SNTP clients for Win and there must be many for linux.

<added>NTP is (as I should have guessed) part of the redhat distribution, see [redhat.com...] </added>

12:08 am on Apr 1, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:Oct 26, 2000
posts:414
votes: 0


Thanks Mohamed_E

I have been to lazy to figure out how to sync my clock. My Daughter keeps telling me to remember that no one else is on RedHat time :)

6:06 am on Apr 1, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 4, 2001
posts:997
votes: 0


Andreas,
I knew there had to be something fairly easy like that. I was getting ready to write a script to parse an HTML file I found online with a time from an atomic clock. This is far easier. Thanks.