[ntp:questions] Spurious positive leap second announcement?

David J Taylor david-taylor at blueyonder.co.not-this-bit.nor-this-part.uk
Tue Mar 6 15:08:08 UTC 2007


Steve Kostecke wrote:
> On 2007-03-06, David J Taylor wrote:
>
>> Noted this in my even log:
>>
>> Detected positive leap second announcement for 2007-04-01 00:00:00
>> UTC
>
> If you wish to see the leap variable for each of those servers:
>
> 1. 'ntpq -cas your_time_server' to get the list of association numbers
>
> 2. 'ntpq -c"rv Assn# leap" your_time_server' for each association
> number
>
> I used this "one-liner" (in bash) to check all of the ntpds on my LAN:
>
> for H in space_delimited_list_of_hostnames ; do for P in `ntpq -cas
> $H | \ awk 'OK==1 { print $2} /=/ { OK = 1 }'`; do echo -n "$H - $P:
> "; \
> ntpq -c"rv $P leap" $H | tail -n 1; done; done
>
> BTW: The USNO "When Does Daylight Time Begin and End?" is at
> http://aa.usno.navy.mil/faq/docs/daylight_time.html

Thanks, Steve.  I used a simpler script (fixed association numbers) and 
got this:

-------------------------------------------------------------
C:\Tests>for /L %S IN (53081 1 53085) DO (ntpq -c"rv %S leap" )

C:\Tests>(ntpq -c"rv 53081 leap" )
assID=53081 status=9624 reach, conf, sel_sys.peer, 2 events, event_reach,
leap=00

C:\Tests>(ntpq -c"rv 53082 leap" )
assID=53082 status=9424 reach, conf, sel_candidat, 2 events, event_reach,
leap=00

C:\Tests>(ntpq -c"rv 53083 leap" )
assID=53083 status=9424 reach, conf, sel_candidat, 2 events, event_reach,
leap=00

C:\Tests>(ntpq -c"rv 53084 leap" )
assID=53084 status=9424 reach, conf, sel_candidat, 2 events, event_reach,
leap=00

C:\Tests>(ntpq -c"rv 53085 leap" )
assID=53085 status=9324 reach, conf, sel_outlyer, 2 events, event_reach,
leap=00

C:\Tests>
-------------------------------------------------------------

As these all show leap=00, does this mean that the errant server has now 
been corrected?  How can I find out if my own ntp client will try to 
insert a leap second or not?


-------------------------------------------------------------
C:\Tests>ntpq -c rv
assID=0 status=0664 leap_none, sync_ntp, 6 events, event_peer/strat_chg,
version="ntpd 4.2.0b at 1.1436-mbg-o Dec 22 12:23:10 (UTC+01:00) 2005  (1)",
processor="unknown", system="WINDOWS/NT", leap=00, stratum=2,
precision=-23, rootdelay=1.335, rootdispersion=36.490, peer=53081,
refid=192.168.0.3,
reftime=c997fc41.b1374d63  Tue, Mar  6 2007 14:42:09.692, poll=8,
clock=c998021e.08b0448a  Tue, Mar  6 2007 15:07:10.033, state=4,
offset=4.463, frequency=12.740, jitter=0.467, noise=1.086,
stability=0.035, tai=0
-------------------------------------------------------------

Does leap_none look good?

Thanks,
David 





More information about the questions mailing list