Time Client for Linux?

Time Client for Linux?

Post by Wim Borger » Tue, 24 Mar 1998 04:00:00



Hello!

Where can I find a client for Linux which connects to one of the large
timeservers on the Internet and resets the time of my Linux box.  (Mine is
running ahead 40 minutes after 2 days...)

Thanks a lot!

Best Regards

Wim

------------------------------------------------------------------------------
Wim Borgers                                     Please reply to address below!
------------------------------------------------------------------------------
Member & Co-System Administrator of LISA
(Limburg Internet Student Association)


KotNet address: http://tvd-10-64-16-19.kotnet.kuleuven.ac.be

                (KotNet addresses only accessible from within the domain
                kuleuven.ac.be)
Homepage:       http://lisa.luc.ac.be/wibo
______________________________________________________________________________

 
 
 

Time Client for Linux?

Post by James Youngma » Tue, 24 Mar 1998 04:00:00


  Wim> Where can I find a client for Linux which connects to one of
  Wim> the large timeservers on the Internet and resets the time of my
  Wim> Linux box.  (Mine is running ahead 40 minutes after 2 days...)

xntpd.

 
 
 

Time Client for Linux?

Post by David Fo » Tue, 24 Mar 1998 04:00:00





>  Wim> Where can I find a client for Linux which connects to one of
>  Wim> the large timeservers on the Internet and resets the time of my
>  Wim> Linux box.  (Mine is running ahead 40 minutes after 2 days...)

>xntpd.

Or nist or netdate and theres lots more. I used nist to start with and it
worked well but then I changed over to netdate because it uses more that one
reference source and averages the time out. You just call it from
/etc/ppp/ip-up.

Sorry I can't remember where I got them from. Try your local unix mirror
under ~/networks/time.

Dave

P.S. nist is probably more accurate as it uses the atomic clock at
the Naval Observatory in the U.S.

--
D. J. Ford

Hatfield, Herts                          Phone:   +44 (0)1 707 886 095
AL10 0PF, U.K.                           Fax:     +44 (0)1 707 261 836

 
 
 

Time Client for Linux?

Post by Sarma Seetamraj » Thu, 26 Mar 1998 04:00:00


http://tycho.usno.navy.mil/time.html
http://www.eecis.udel.edu/~ntp/index.html
http://www.eecis.udel.edu/~ntp/database/html_xntp3.5f/index.html
http://www.eecis.udel.edu/~ntp/database/html_xntp3.5f/ntpdate.html





> >  Wim> Where can I find a client for Linux which connects to one of
> >  Wim> the large timeservers on the Internet and resets the time of my
> >  Wim> Linux box.  (Mine is running ahead 40 minutes after 2 days...)

> >xntpd.

> Or nist or netdate and theres lots more. I used nist to start with and it
> worked well but then I changed over to netdate because it uses more that one
> reference source and averages the time out. You just call it from
> /etc/ppp/ip-up.

> Sorry I can't remember where I got them from. Try your local unix mirror
> under ~/networks/time.

> Dave

> P.S. nist is probably more accurate as it uses the atomic clock at
> the Naval Observatory in the U.S.

> --
> D. J. Ford

> Hatfield, Herts                          Phone:   +44 (0)1 707 886 095
> AL10 0PF, U.K.                           Fax:     +44 (0)1 707 261 836

 
 
 

Time Client for Linux?

Post by Andy Carls » Sat, 28 Mar 1998 04:00:00




Quote:

> Where can I find a client for Linux which connects to one of the large
> timeservers on the Internet and resets the time of my Linux box.  (Mine is
> running ahead 40 minutes after 2 days...)

My Slackware system has netdate, which is in /usr/sbin.  I use it like
this:

/usr/sbin/netdate tcp 132.163.135.130

Unfortunately, I don't know if it is available in other dist's.

--
Andy Carlson                             |\      _,,,---,,_

BJC Health System                       |,4-  ) )-,_. ,\ (  `'-'
St. Louis, Missouri                    '---''(_/--'  `-'\_)
Cat Pics: http://www.anet-stl.com/~andyc/animal.html

 
 
 

Time Client for Linux?

Post by Martin J. Man » Sat, 28 Mar 1998 04:00:00




> > Where can I find a client for Linux which connects to one of the large
> > timeservers on the Internet and resets the time of my Linux box.  (Mine is
> > running ahead 40 minutes after 2 days...)
> My Slackware system has netdate, which is in /usr/sbin.  I use it like
> this:
> /usr/sbin/netdate tcp 132.163.135.130
> Unfortunately, I don't know if it is available in other dist's.

I can reassure you up to a point: Debian 1.3, at least, has netdate.

And to the original question, let me add that such unruly clocks can
often be tamed though the services of the adjtimex program (not to be
confused with the adjtimex() system call).  The server box here has a
typical cheap system clock that caused the Linux RTC to gain (or lose,
I forget now) a minute or two a day.  After a while I got tired of
resetting it (using netdate - much easier that way) and measured the
drift over a period of several days and installed a correction by way
of adjtimex.  I've done a bit of fine-tuning since then, and the drift
is now well under 1 second/week (11 days uptime, and I believe I
re-synced to a reliable outside clock right after the last boot:
netdate is reporting an error of 0.4 seconds right now).  The chief
drawback to adjtimex is the need to translate a calculated drift in,
say, seconds/day, into the multi-valued correction factors.

Now the chief timekeeping error seems to be the drift between the
point in shutdown where I set the CMOS clock from the system time
until the system clock reloads from the CMOS clock at boot time.  For
the server, this is a short enough interval, and occurs infrequently
enough, that I just check it from time to time.  I don't think I've
reset the system time since the last time we had a long power outage:
the uncorrected CMOS clock drifted more than five or ten seconds while
the machine was shutdown that evening.

The traditional approach - mentioned in some HOWTO or another, I think
- is to run xntpd or some such for a while and then freeze the
"adjtimex" values it has settled on.  I imagine this works, but I
thought it would be more trouble to get that working than to measure
the drift and setup the correction myself.  I may have been wrong - it
depends on how close the xntpd-determined correction would have set
the clock to correct.  :-)

Luck!