From owner-freebsd-questions Fri Sep 20 10: 7:54 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE0C237B404 for ; Fri, 20 Sep 2002 10:07:52 -0700 (PDT) Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id F217E43E6A for ; Fri, 20 Sep 2002 10:07:51 -0700 (PDT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [IPv6:::1]) by lurza.secnetix.de (8.12.5/8.12.5) with ESMTP id g8KH7omC036107 for ; Fri, 20 Sep 2002 19:07:50 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.12.5/8.12.5/Submit) id g8KH7o9v036106; Fri, 20 Sep 2002 19:07:50 +0200 (CEST) Date: Fri, 20 Sep 2002 19:07:50 +0200 (CEST) Message-Id: <200209201707.g8KH7o9v036106@lurza.secnetix.de> From: Oliver Fromme To: freebsd-questions@FreeBSD.ORG Reply-To: freebsd-questions@FreeBSD.ORG Subject: Re: ntpd running, clock still drifting In-Reply-To: <200209201506.g8KF6O94002329@crag.niss.com> X-Newsgroups: list.freebsd-questions User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.6-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Scott Bolte wrote: > I recently switched from running ntpdate via cron to ntpd. > While ntpd starts and runs, the clock drifts badly (over 6 > seconds) in just a few hours. It looks to me like ntpd is > not doing anything. Two hints: First, add this line "restrict 127.0.0.1" to your ntp.conf. It is required so that ntpd can access its own clock on the local machine. Second, when the ntpd process has run for a few minutes, type "ntpq -p". The output is very useful to diagnose problems. It contains compact information about all known servers, including connectivity, stratum and delay. Another command that I use sometimes to debug NTP problems is "ntpdc -c monlist". Regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "All that we see or seem is just a dream within a dream" (E. A. Poe) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message