From owner-freebsd-questions@FreeBSD.ORG Wed Oct 14 07:02:37 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A198106566C for ; Wed, 14 Oct 2009 07:02:37 +0000 (UTC) (envelope-from j.mckeown@ru.ac.za) Received: from c.mail.ru.ac.za (c.mail.ru.ac.za [IPv6:2001:4200:1010::25:3]) by mx1.freebsd.org (Postfix) with ESMTP id 76F328FC17 for ; Wed, 14 Oct 2009 07:02:36 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=ru-msa; d=ru.ac.za; h=Received:From:Organization:To:Subject:Date:User-Agent:References:In-Reply-To:X-Face:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id:X-Virus-Scanned:X-Authenticated-User; b=fAJP4PLwdDkeUS5cqPxUGhDI5VC8l7jue5wd9FKbtJLRcJ34ryMTh0nV1Ser0SS2l/U0eNXBTQXy+j6y2zLDZNGNfYN3dmWIG/aG73P5HyP4e/4MNenAq4Hr9+YFQstd; Received: from vorkosigan.ru.ac.za ([2001:4200:1010:1058:219:d1ff:fe9f:a932]:64005) by c.mail.ru.ac.za with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1MxxsS-0006Ln-0W for freebsd-questions@freebsd.org; Wed, 14 Oct 2009 09:02:28 +0200 From: Jonathan McKeown Organization: Rhodes University To: freebsd-questions@freebsd.org Date: Wed, 14 Oct 2009 09:02:27 +0200 User-Agent: KMail/1.9.10 References: <2345d18f0910130813j6a2bbde0sec59647f44d43585@mail.gmail.com> <2345d18f0910130921g17b8d9fdy8fdb99bd5a0e8cf4@mail.gmail.com> <4AD4AE89.6010802@radel.com> In-Reply-To: <4AD4AE89.6010802@radel.com> X-Face: $@VrUx^RHy/}yu]jKf/<4T%/d|F+$j-Ol2"2J$q+%OK1]&/G_S9(=?utf-8?q?HkaQ*=60!=3FYOK=3FY!=27M=60C=0A=09aP=5C9nVPF8Q=7DCilHH8l=3B=7E!4?= =?utf-8?q?2HK6=273lg4J=7Daz?=@1Dqqh:J]M^"YPn*2IWrZON$1+G?oX3@ =?utf-8?q?k=230=0A=0954XDRg=3DYn=5FF-etwot4U=24b?=dTS{i X-Virus-Scanned: c.mail.ru.ac.za (2001:4200:1010::25:3) X-Authenticated-User: s0900137 from vorkosigan.ru.ac.za (2001:4200:1010:1058:219:d1ff:fe9f:a932) using auth_plaintext Subject: Re: NTP Client synchronization with a Windows 2003/2008 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Oct 2009 07:02:37 -0000 On Tuesday 13 October 2009 18:44:57 Jon Radel wrote: > Jacques Henry wrote: > > I commented the commands involved and nothing changed... (with only 10 > > minutes of time difference) > > The 19 minutes between when I sent my suggestions and you responded is > hardly enough time to see if ntpd was slewing the time. Slewing 587 > seconds takes days. > > > I even tried to "force" the sync: > > > > U450XA0A0800650>nstop ntp > > U450XA0A0800650>ntpd -x -n -q -c /var/ntp.conf > > U450XA0A0800650>nstart ntp > > Are you sure that -x in there, telling ntpd to not step unless the > offset is over 600 sec, doesn't override what you're trying to do with > the -q? How about you try simple: > > ntpdate the_windows_server > > and see what that does? After that look in /var/log/messages. > > > In fact I am still quite convinced that the MS implementation isn't > > totally compliant with the client... > > Could be, but ntpq was showing that your ntpd was accepting time data > from the Windows server at least on some level. Alternatively, from the commandline try ntpd -g -q -c /etc/ntp.conf The -g flag allows ntpd to set the clock once regardless of the offset and the -q causes it to quit after setting the time. In /etc/rc.conf, all you should need is ntpd_enable="YES" ntpd_sync_on_start="YES" The second option adds -g to the ntpd flags, allowing it to set the clock at startup and continue running. Jonathan