Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2002 11:31:56 +1100
From:      "MurrayTaylor" <mjtlx@ozemail.com.au>
To:        "MurrayTaylor" <mjtlx@ozemail.com.au>, "Chris Dillon" <cdillon@wolves.k12.mo.us>, "Joe & Fhe Barbish" <barbish@a1poweruser.com>
Cc:        "FBSD Questions" <questions@FreeBSD.ORG>
Subject:   Re: ntpd as time server?
Message-ID:  <000501c19d5c$0a4dafa0$022aa8c0@homenet.xxx>
References:  <Pine.BSF.4.32.0201131142350.69183-100000@mail.wolves.k12.mo.us> <010401c19cdf$e8db22c0$022aa8c0@homenet.xxx>

next in thread | previous in thread | raw e-mail | index | archive | help
Akk.. and the one other bit of magic that makes it work
Xntpd and ntpdate want to use the same port 123, which gets them knotted..
So the entry in crontab is NOT just

ntpdate aaa.bbb.ccc.ddd

but instead is

/root/bin/ntpcron

which is a script as follows

#!/bin/sh
kill `cat /var/run/xntpd.pid`
sleep 1
ntpdate aaa.bbb.ccc.ddd
sleep 1
xntpd -p /var/ruun/xntpd.oid


Ie drop off the xntdp daemon while we tweek the systems clock

cheers again
mjt

----- Original Message -----
From: "MurrayTaylor" <mjtlx@ozemail.com.au>
To: "Chris Dillon" <cdillon@wolves.k12.mo.us>; "Joe & Fhe Barbish"
<barbish@a1poweruser.com>
Cc: "FBSD Questions" <questions@FreeBSD.ORG>
Sent: Monday, January 14, 2002 8:43 PM
Subject: Re: ntpd as time server?


> Hi all - a quick top post with a working solution ...
>
> Behemoth (Fbsd dialup)    uses ntpdate on initial boot (due to ancient non
> Y2K bios)
>                                          uses ntpdate once every 24 hours
> (crontab call)
>                                          runs xntpd with the following
> /etc/ntp.conf file
> Win 95 etc networked laptop/desktops
>                                          use NetTime from sourceforge
>
> The Windoze machines are within milliseconds of the Fbsd box at all times
>
> --------- start of /etc/ntp.conf  --------------
> #
> # Behemoth as a ntp timeserver
> #    that gets itself set by ntpdate
> #    actions on boot and crontab
> #
>
> # do NOT define a server to listen to
> ## server NONE
>
> driftfile    /etc/ntp.drift
>
> # stop xntpd from tweeking the clock as ntpdate
> #    does that
>
> disable pll
>
> ------- end of /etc/ntp.conf ---------
>
> NetTime URL
> sourceforge.net/project/showfiles.php?group_id=10109
>
> cheers
> mjt
>
> ----- Original Message -----
> From: "Chris Dillon" <cdillon@wolves.k12.mo.us>
> To: "Joe & Fhe Barbish" <barbish@a1poweruser.com>
> Cc: "FBSD Questions" <questions@FreeBSD.ORG>
> Sent: Monday, January 14, 2002 5:00 AM
> Subject: Re: ntpd as time server?
>
>
> > On Sun, 13 Jan 2002, Joe & Fhe Barbish wrote:
> >
> > > The final option is ntpd. This function does get the time from a
> > > internet ntp server to update the requesting FBSD box, and keeps
> > > the clock accurate by making very small adjustment over long
> > > periods of time. It can be configurated to broadcast time packets
> > > to all machines on the private net it is connected to. It is not a
> > > ntp time server with a unique IP address.
> >
> > That last sentence is incorrect.  Incidentally, I haven't seen a
> > single post in reply to your original question that actually answered
> > your question.  YES, the ntpd included with FreeBSD IS an ntp time
> > server and can act as a time source for all 700 or so of your current
> > ntp clients.  As long as ntpd is running, it Just Works.  After first
> > starting the server, it can take some time before ntpd feels that it
> > is a valid time source and will begin allowing clients to synchronize
> > with it.  I've noticed this usually only takes a couple of minutes,
> > but it can be confusing when you immediately start the ntp server and
> > then attempt to test it with a client and it fails.
> >
> > > Only FBSD boxes on the private net with ntpd clients can hear the
> > > broadcasted time packets and adjust there clocks. The only way for
> > > a Winbox to use this function is to have Samba running on the FBSD
> > > to fake out the Winboxs into thinking it's a NT or Win2k server.
> >
> > That is one option, and is the only way to synchronize time on Win9X
> > clients without installing additional software.  Only Windows 2000 and
> > Windows XP have built-in ntp clients.
> >
> > --
> >  Chris Dillon - cdillon@wolves.k12.mo.us - cdillon@inter-linc.net
> >  FreeBSD: The fastest and most stable server OS on the planet
> >  - Available for IA32 (Intel x86) and Alpha architectures
> >  - IA64, PowerPC, UltraSPARC, and ARM architectures under development
> >  - http://www.freebsd.org
> >
> >
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000501c19d5c$0a4dafa0$022aa8c0>