[ntp:questions] Getting precise variables?

David Taylor david-taylor at blueyonder.co.uk.invalid
Thu Nov 1 17:20:00 UTC 2012


On 01/11/2012 14:00, Mike S wrote:
> Is there any way to poll ntp for full precision variables?
>
> If you do an ntpq query for offset, you get 1 us precision:
>
>> locke:~# ntpq -c "rv 0 offset" locke
>> offset=-0.001
>
> But loopstats records offset with 1 ns precision:
>
>> locke:~# tail -n 1 /var/log/ntpstats/loopstats.20121101
>> 56232 50257.989 -0.000001426 0.039 0.000000000 0.000774 4

Yes, I agree with that request, and the kind folks Markus Schöpflin, 
Harlan Stenn,  Martin Burnicki, and Dave Hart responded to the bug I 
reported:

   http://bugs.ntp.org/show_bug.cgi?id=2164

You may like to update to a more recent version (ntp4.2.7p304 or later) 
and get nanosecond precision from ntpq -c rv:

C:\Users\David>ntpq -c rv 192.168.0.14
associd=0 status=011d leap_none, sync_pps, 1 event, kern,
version="ntpd 4.2.7p314 at 1.2483 Mon Oct 29 15:30:42 UTC 2012 (3)",
processor="armv6l", system="Linux/3.2.27-pps-g965b922-dirty", leap=00,
stratum=1, precision=-19, rootdelay=0.000, rootdisp=1.180, refid=PPS,
reftime=d43d2c0f.12a81e6b  Thu, Nov  1 2012 17:12:47.072,
clock=d43d2c1b.31e62411  Thu, Nov  1 2012 17:12:59.194, peer=7335, tc=4,
mintc=3, offset=-0.000546, frequency=-44.649, sys_jitter=0.001907,
clk_jitter=0.000, clk_wander=0.000
-- 
Cheers,
David
Web: http://www.satsignal.eu



More information about the questions mailing list