cancel
Showing results for 
Search instead for 
Did you mean: 

time syncronization linux w2k

 
Highlighted
Occasional Contributor

time syncronization linux w2k

Hi all,
I try to syncronize the clock of a win2k server sp3 (is a domain controller) and a linux RedHat 7.3. The win2k take the tme from an external source and distributed it in the local network.On linux side the ntpd daemon is running and it recognize the w2k server but it won't set its time. with ethereal I saw that the two machines exchange the ntp packet buttime on linux side is not changed to the correct time.

can help me somebody?

Kind regards Karoly
10 REPLIES 10
Highlighted
Honored Contributor

Re: time syncronization linux w2k

what is your settings for ntp on linux and Windows sides?

Vitaly.
Highlighted

Re: time syncronization linux w2k

hi,

are there any error messages on the logs?

perhaps your time on the linux system is very diffrent from the time on the windows machine

the time deamon can only fix times that are around some seconds diffrent else it wont work

greetz
Peter
Wer meint gut zu sein hat es verpasst besser zu werden!
Highlighted
Honored Contributor

Re: time syncronization linux w2k

as usual,
any errors / messages in the logs.
-b-
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Highlighted
Exalted Contributor

Re: time syncronization linux w2k

HP-UX has a command.

ntpq -p

There may be a Linux equivalent to test time sources.

Windows 2000 do not have proper Unix compliant time servers. In some cases time will update, in others it will not. The way to resolve the problem is to download and install Dr. David Mills(The inventor of ntp) NT/W2K time server package on the Windows 2000 server.

I could not convince my own PCS department of this wisdom. I have to check my servers at least once a week to see if they are still keeping good time. The ntpq command produces an error. You can achieve good time keeping with one of two approaches:

Install this software on the W2K time server:
http://www.eecis.udel.edu/~mills/ntp/html/hints/winnt.html
Read carefully its not obvious.


Use a real Unix/Linux workstation as a time server.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Highlighted
Esteemed Contributor

Re: time syncronization linux w2k

Hello!

What the time difrence that you have?
Could be that the difrence is the difrence of
linux TZ time a Win time?

Caesar
Highlighted
Frequent Advisor

Re: time syncronization linux w2k

When I had a similar issue I found setting up the NTP daemon to be slightly more complicated than I cared for, so I simply wrote a little script for cron to run once every morning...

$cat /etc/cron.daily/setdate

#!/bin/sh
# setdate - script to synchronize the date/time on this server with
# the corporate file server.
# executed daily by cron (see cron.daily directory)

# Main Windows file server (in Seattle)
server=SVR-ROOT-DC1
logfile=/var/log/${0##*/}

echo "====================================" >> $logfile
echo "Before: `date` " >> $logfile
/usr/sbin/ntpdate $server >> $logfile
echo " After: `date` " >> $logfile

-Jared
Highlighted
Occasional Contributor

Re: time syncronization linux w2k

Here are the concatenated log and conf file for ntpd. As you can see sometimes ntpd can syncronize with w32 service but after it's a message for lost syncronization and after is a bad packet sent to the time server.

The result of the ntpq-p is at the and of ntp.log

Maybe this can help

Thank you
Highlighted
Honored Contributor

Re: time syncronization linux w2k

hmmm.. bad. i am unable to open the log. i get a 404. will report to Dan. by the way is it only me or everyone who gets this problem.

can u try reposting the log.
thanks
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Highlighted
Occasional Contributor

Re: time syncronization linux w2k