[ntp:questions] doing an ntpq -c clockvar on a specific reference clock

Ronan Flood usenet at umbral.org.uk
Wed Jan 9 16:52:19 UTC 2008

folkert at vanheusden.com (Folkert van Heusden) wrote:

> One of my systems has 2 reference clocks; a gps and a hbg radio clock.
> I would like to graph some clockvar variables of the hbg radio clock
> one. Now ntpq -c clockvar only returns the values of the first clock,
> the gps. How can I get the output of the hbg clock? clockvar can have a
> variable which is the association but this seems to be an other value
> each time ntpd is started.

Try something like "ntpq -np '-ccv &1'", using &n to select the clock at
line n of the peers display, assuming that's always in the same order.
You'll have to skip over the peer list output.

Ronan Flood <usenet at umbral.org.uk>

More information about the questions mailing list