[ntp:questions] empty refid in ntpq output
stenn at ntp.org
Thu May 9 06:31:53 UTC 2019
Daniel Nelson writes:
> I'm working on a project that attempts to parse the output of `ntpq -p`, and
> have heard a report that sometimes the refid is empty. Here is the output I'
> seeing, the indention was mangled by the logging system, so I've attempted to
> realign things below:
> remote refid st t when poll reach delay offset jitter
> 0.ubuntu.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.000
> +184.108.40.206 16 u 1048 1024 376 15.384 -0.538 0.943
> My question is, what does an empty refid indicate and are there any tips for
> machine parsing the output correctly given that the lines may have a differin
> number of columns.
At stratum 16 the target is unsync'd, and will therefore have no refid.
Harlan Stenn <stenn at ntp.org>
http://networktimefoundation.org - be a member!
More information about the questions