perfsonar / perl-shared

Shared libraries used by perl packages and referenced as a submodule in many git repos
Apache License 2.0
7 stars 3 forks source link

Parse output of ntpq instead of ntpdc (deprecated) #39

Closed vvidic closed 7 years ago

vvidic commented 7 years ago

Example output:

$ /usr/sbin/ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
-ntp1.nl.uu.net  .PPS.            1 u   42   64    1   27.393   -0.183   0.395
+ntp1.oma.be     .MRS.            1 u   41   64    1   30.960   -0.448   0.114
+ntp2.inrim.it   .CTD.            1 u   40   64    1   22.735   -0.513   0.117
*ntp3.rrze.uni-e .PZF.            1 u   12   64    3   23.907   -0.293   0.139
-romulus.belnet. 193.190.198.43   2 u    8   64    1   30.303   -0.255   0.082