[ntp:questions] Spurious positive leap second announcement?

Steve Kostecke kostecke at ntp.isc.org
Tue Mar 6 14:04:40 UTC 2007


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

-- 
Steve Kostecke <kostecke at ntp.isc.org>
NTP Public Services Project - http://ntp.isc.org/




More information about the questions mailing list