From owner-freebsd-questions Sun Oct 11 06:26:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA25600 for freebsd-questions-outgoing; Sun, 11 Oct 1998 06:26:18 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from emu.sourcee.com (emu.sourcee.com [199.201.159.173]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA25595 for ; Sun, 11 Oct 1998 06:26:16 -0700 (PDT) (envelope-from nrice@emu.sourcee.com) Received: (from nrice@localhost) by emu.sourcee.com (8.8.8/8.8.3) id JAA15055; Sun, 11 Oct 1998 09:25:49 -0400 (EDT) Message-ID: <19981011092548.A14433@emu.sourcee.com> Date: Sun, 11 Oct 1998 09:25:48 -0400 From: Norman C Rice To: David Kelly Cc: questions@FreeBSD.ORG, Jim Cassata Subject: Re: xntpd References: <199810102302.SAA29513@nospam.hiwaay.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199810102302.SAA29513@nospam.hiwaay.net>; from David Kelly on Sat, Oct 10, 1998 at 06:02:10PM -0500 X-Mutt-References: <199810102302.SAA29513@nospam.hiwaay.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Oct 10, 1998 at 06:02:10PM -0500, David Kelly wrote: > (moved to -questions) > > Jim Cassata writes: > > > > Is anyone using this or a better way to keep server clocks in sync? > > It doesn't seem to do anything, 4 servers all running xntpd with a > > /etc/ntp.conf (as per the man pages) as follows: > > > > server 128.173.14.71 > > driftfile /etc/ntp.drift > > > > and there is a writable driftfile that never gets written to. According to ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ If you created the drift file, delete it and restart xntpd so it can create the drift file when it's ready too -- have patience. Apparently, xntpd expects the drift file to contain valid data if it exists. Sorry, I missed the original post. -- Regards, Norman C. Rice, Jr. > > the complete FreeBSD book, the driftfile's presence in the conf file tells > > xntpd to get the time from the server, and it's absence tells it to get > > the time from listening to ntp broadcasts. > > That's essentially what I have in my /etc/ntp.conf. The big difference > is that I list servers by name, not IP address as their actual IP > addresses tend to change. Also I list 4 servers. > > If you are on a part time dialup link you should not start xntpd from > /etc/rc.conf, but manually (as root) during your first dialup. > > What does "ntpq -c peers" say? > n4hhe: {681} ntpq -c peers > remote refid st t when poll reach delay offset disp > ============================================================================== > 130.199.128.184 130.199.112.138 3 - 39m 64 0 247.39 -1686.6 16000.0 > fly.hiwaay.net 192.5.41.40 16 - 107m 64 0 164.61 -1691.2 16000.0 > 128.249.2.2 134.131.68.73 3 - 46m 64 0 229.23 -1680.7 16000.0 > 128.194.103.35 128.194.177.1 3 - 41m 64 0 238.59 -1701.1 16000.0 > n4hhe: {682} ls -l /etc/ntp* > -rw-r--r-- 1 root wheel 701 Mar 22 1998 /etc/ntp.conf > -rw-rw-r-- 1 root wheel 9 Oct 10 17:09 /etc/ntp.drift > n4hhe: {683} > > I'm not connected right now so DNS isn't mapping numbers to names. Don't > know why my ntp.drift changed at 17:09 as xntpd was not connected to the > net in the past 18 hours. Altho it was connected at 17:15. > > > -- > David Kelly N4HHE, dkelly@nospam.hiwaay.net > ===================================================================== > The human mind ordinarily operates at only ten percent of its > capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message