Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

time syncronization linux w2k

mathe karoly
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
Vitaly Karasik_1
Honored Contributor

Re: time syncronization linux w2k

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

Vitaly.

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!
Balaji N
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.
Steven E. Protter
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
Caesar_3
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
Jared Middleton
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
mathe karoly
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
Balaji N
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.
mathe karoly
Occasional Contributor

Re: time syncronization linux w2k

 
Bob_Vance
Esteemed Contributor

Re: time syncronization linux w2k

BTW, I find it a lot more convenient to put all the active (uncommented) statements in the "ntp.conf" file at the *beginning*, so that you can see at a glance what you've got, rather than dispersing them throughout the comments. You can always scroll down to the comments if you forget exactly what the statements are doing ;>)

It looks to me that you've got 2 guys running, or trying to run:
xntpd
and ntpd
.
Did you download and compile your own latest version of the code? When you do this, the 'make' build produces 'ntpd'. Also, it looks like the latest rpm uses 'ntpd'.

I'm not sure of the origin of "xntpd", but I also run the ntp daemon as 'xntpd', mainly because that's the way HP did it for HP-UX, so when I was building for HP-UX, I kept the "xntpd" name. This means, of course, that after the build, I have to do my own manual install and change it from 'ntpd' (actually, I simply do symbolic links).

bv


"The lyf so short, the craft so long to lerne." - Chaucer