ntpq: user variables, anybody use them?

James Browning jamesb.fe80 at gmail.com
Thu Mar 11 21:00:00 UTC 2021

On Wed, Mar 10, 2021 at 2:16 PM Hal Murray <hmurray at megapathdsl.net> wrote:

> >> The server side of ntpq supports writing and reading things of the form
> >> "foo=bar". >
> >> I'm slightly surprised Eric hasn't riped that out by now. >
> >> Does anybody use it?  How/why?  ,,,
> > No, I don't. I had this foolish notion though (or it might've been
> Achim) not
> > long after (during?) the rainbow control debacle about prepending a
> modifier
> > character (say @ or such) to a variable which is a list of variables and
> it
> > would return all of the variables in that list.
> The current code has some slots marked DEF (default).   I think it is only
> used by ntpq sysinfo.  The implementation is "rv 0" or just "rv" with an
> empty
> list of names that it wants to retrieve.

 DEF is also implemented for 'cv #' and 'rv #', IIRC.

> My plan was to add more flags.  I'm happy with your @ suggestion.
> Please start collecting a list of things you would like to retrieve this
> way.
> The 2 that I use often are the NTS statistics and the MRU statistics:
> ntsinfo
> and monstats.

That does not seem to be how sysinfo works. There probably should
be a request for peoples' lists on the users, devel, and maybe
announce lists. The hopefully complete list (from ntpq) is as follows.










I have two separate lists for sysstats atm because I have them processed
through different handlers. which would get worse if I did packets/s

More likely I could add another merge request to get ignored
for the duration. Also the list id for a recent git version.
1.2.0 lacks the *_r variables from sysstats.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20210311/d7397afd/attachment.htm>

More information about the devel mailing list