Date: Fri, 16 Aug 2002 09:46:38 +1000 From: Rob B <rbyrnes@ozemail.com.au> To: "MET" <met@uberstats.com> Cc: <freebsd-questions@freebsd.org> Subject: RE: Setting the Time || Public Time Servers Message-ID: <5.1.0.14.2.20020816094045.03de3050@pop.ozemail.com.au> In-Reply-To: <000e01c24472$71480120$6901a8c0@SURVIVAL> References: <20020815080545.GA389@freepuppy.bellavista.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
At 11:43 15/08/2002 -0400, MET sent this up the stick:
>And I'm guessing that (xntpd_enable="YES") or (ntpdate_enable="YES")
>should be declaired in /etc/rc.conf ?
Yup ... and specify the servers you want to check against in /etc/ntp.conf
rather than /etc/rc.conf
>And the machine doesn't shut down very much at all, but running every 64
>- 1024 seconds seems obsurd. Perhaps I'm wrong ?
Not really, this is how it keeps your system clock accurate.
From the man page of ntp:
When started, whether for the
first or subsequent times, the program requires several exchanges from
the majority of these servers so the signal processing and mitigation
algorithms can accumulate and groom the data and set the clock. In order
to protect the network from bursts, the initial poll interval for each
server is delayed an interval randomized over 0-16s. At the default ini
tial poll interval of 64s, several minutes can elapse before the clock is
set. The initial delay to set the clock can be reduced using the iburst
keyword with the server configuration command, as described in
ntp.conf(5).
So as ntp sorts out your particular system's drift rate, the ntp updates
become less frequent. My system seems to update only once or twice a day
now, and it has been up for a couple of weeks.
Cheers,
Rob
>-----Original Message-----
>From: Roman Neuhauser [mailto:neuhauser@bellavista.cz]
>Sent: Thursday, August 15, 2002 4:06 AM
>To: MET
>Cc: freebsd-questions@freebsd.org
>Subject: Re: Setting the Time || Public Time Servers
>
>
> > From: "MET" <met@uberstats.com>
> > To: <freebsd-questions@freebsd.org>
> > Subject: Setting the Time || Public Time Servers
> > Date: Wed, 14 Aug 2002 19:35:33 -0400
> >
> > How would I make my BSD machine get its time from something like a
> > public time server so that reports the correct time?
>
> If you boot your machine often, you may want to use ntpdate. It
> synces on startup only.
>
> ntpdate_enable="YES"
> ntpdate_flags="-b -t10 -u ntp1.example.com ntp2.example.com"
>
> If your machine stays up for extended periods of time, you would
> prefer ntpd, which synces every 64 - 1024 seconds.
>
> xntpd_enable="YES"
> xntpd_flags="-g -p /var/run/ntpd.pid"
>
> /etc/ntp.conf:
> server ntp1.example.com
> server ntp2.example.com
> server ntp3.example.com
>
>
>--
>FreeBSD 4.6-STABLE
>9:57AM up 5 days, 21:52, 17 users, load averages: 0.00, 0.00, 0.00
>
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>with "unsubscribe freebsd-questions" in the body of the message
--
Shift to the left! Shift to the right! Pop up, push down! Byte, byte, byte!
This is random quote 932 of a collection of 1254
[15200.8 km (8207.8 mi), 262.8 deg](Apparent) Rennerian
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?5.1.0.14.2.20020816094045.03de3050>
