[ntp:questions] ntpd "Leapsmear" tests - smear offset does not vary

Brian Inglis Brian.Inglis at SystematicSw.ab.ca
Sun Nov 1 18:14:49 UTC 2015


You have to set up some systems to fake a leap second and perform a leap smear test - Google is your friend.
-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada


On 2015-11-01 01:02, Sowmya Manapragada wrote:
> Hello All,
> Referred the details given in
> http://bugs.ntp.org/show_bug.cgi?id=2855  &
> http://lists.ntp.org/pipermail/bk-ntp-stable-send/2015-June/000690.html
>   for the ntpd implementation with "leapsmear" patch  ( for non public
> servers)
>
>
> I have configured two  centos-7 machines one as ntp-server and one as
> ntp-client:
> Precisely followed the steps given in the above link:
> got the latest dev source 4.3.72 (dev version) and used ./configure with
> --enable-leap-smear as described for the server machine, but could not test
> the  leap smear behavior :
>
> problem: "leapsmearoffset" never changes (always 0) , even though
> smearinterval is large enough anything wrong with configuration
>
> this is my "server" centos-machine ntp.conf:
> ------------------------------------------------------------------
> server lrk0090  # take time from a non-smearing server
> leapsmearinterval 14400 #4 hrs ( but give a smearing time to ur clients)
> logfile /var/log/ntp.log
> server 127.127.1.0 # fallback
> fudge 127.127.1.0 startum 12
> **********************************************************
>   client ntp.conf has regular configuration(nothing special w.r.to smear)
>    and takes the only server as server above ( client anyway is unaware of
> any leap smearing)
>
> server centos 7:> ntpq -c rv
>
> ntpq> rv 0
>
> associd=0 status=0618 leap_none, sync_ntp, 1 event, no_sys_peer,
>
> version="ntpd 4.3.72 at 1.2483 Mon Oct 26 09:01:41 UTC 2015 (1)",
>
> processor="x86_64", system="Linux/3.10.0-123.el7.x86_64", leap=00,
>
> stratum=5, precision=-24, rootdelay=190.562, rootdisp=209.622,
>
> refid=132.168.221.17,
>
> reftime=d9da05bb.7d286a7a Tue, Oct 27 2015 19:46:27.488,
>
> clock=d9da0aa1.82381432 Tue, Oct 27 2015 20:07:21.508, peer=42697, tc=9,
>
> mintc=3, offset=-12.969487, frequency=4.020, sys_jitter=12.595202,
>
> clk_jitter=10.040, clk_wander=1.133, leapsmearinterval=14400,
>
> leapsmearoffset=0.000
>   the leapflag is 00 ( and no leap second added ?)
>
> please let me know if anything wrong with my configuration



More information about the questions mailing list