[ntp:questions] Best ways to get the reference times from ntp
E-Mail Sent to this address will be added to the BlackLists
Null at BlackList.Anitech-Systems.invalid
Wed Apr 30 23:44:44 UTC 2014
Maximilian Brehm wrote:
> for my application (external to ntpd) I would like to extract
> the reference times of the peers ntpd synchronizes with.
ntpq -c "rv 0 reftime" ?
e.g.
ntpq -clas
ind assid status conf reach auth condition last_event cnt
===========================================================
1 62143 c811 yes none yes reject mobilize 1
2 62144 f41a yes yes ok candidate sys_peer 1
3 62145 f66a yes yes ok sys.peer sys_peer 6
4 62146 941a yes yes none candidate sys_peer 1
5 62147 931a yes yes none outlyer sys_peer 1
ntpq -c "rv 0 reftime"
reftime=d70c0236.2a52c6a8 Wed, Apr 30 2014 16:13:58.165
ntpq -c "rv &1 reftime"
reftime=00000000.00000000 Wed, Feb 6 2036 22:28:16.000
ntpq -c "rv &2 reftime"
reftime=d70bfcab.6b76f1ac Wed, Apr 30 2014 15:50:19.419
ntpq -c "rv &3 reftime"
reftime=d70bfcab.6b76f1ac Wed, Apr 30 2014 15:50:19.419
ntpq -c "rv &4 reftime"
reftime=d70c04d7.2b3b528d Wed, Apr 30 2014 16:25:11.168
ntpq -c "rv &5 reftime"
reftime=d70c03e1.fb136918 Wed, Apr 30 2014 16:21:05.980
ntpq -n -clpe
remote refid st t when poll reach delay offset jitter
=============================================================
224.0.1.1 .ACST. 16 a - 64 0 0.000 0.000 0.000
+... 7 ... 5 2 u 810 1024 45 0.911 -2.091 6.405
*...214 ... 5 2 u 298 1024 3 1.419 -1.329 0.452
+...224 ...103 2 u 488 1024 377 81.351 0.470 8.720
-...206 ... 5 2 u 459 1024 377 46.229 1.581 7.899
--
E-Mail Sent to this address <BlackList at Anitech-Systems.com>
will be added to the BlackLists.
More information about the questions
mailing list