<div dir="ltr"><div dir="ltr">On Wed, Mar 10, 2021 at 2:16 PM Hal Murray <<a href="mailto:hmurray@megapathdsl.net">hmurray@megapathdsl.net</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
>> The server side of ntpq supports writing and reading things of the form<br>
>> "foo=bar". ><br>
>> I'm slightly surprised Eric hasn't riped that out by now. ><br>
>> Does anybody use it?  How/why?  ,,,<br>
<br>
> No, I don't. I had this foolish notion though (or it might've been Achim) not<br>
> long after (during?) the rainbow control debacle about prepending a modifier<br>
> character (say @ or such) to a variable which is a list of variables and it<br>
> would return all of the variables in that list. <br>
<br>
The current code has some slots marked DEF (default).   I think it is only <br>
used by ntpq sysinfo.  The implementation is "rv 0" or just "rv" with an empty <br>
list of names that it wants to retrieve.<br></blockquote><div><br></div><div><div> DEF is also implemented for 'cv #' and 'rv #', IIRC.</div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
My plan was to add more flags.  I'm happy with your @ suggestion.<br>
<br>
Please start collecting a list of things you would like to retrieve this way.  <br>
The 2 that I use often are the NTS statistics and the MRU statistics: ntsinfo <br>
and monstats.<br></blockquote><div> </div>That does not seem to be how sysinfo works. There probably should<br>be a request for peoples' lists on the users, devel, and maybe<br>announce lists. The hopefully complete list (from ntpq) is as follows.<br><br>l_sysinfo="peeradr,peermode,leap,stratum,precision,rootdelay,rootdisp,rootdist,refid,reftime,sys_jitter,clk_jitter,clk_wander,authdelay"<br><br>l_kerninfo="koffset,kfreq,kmaxerr,kesterr,kstflags,ktimeconst,kprecis,kfreqtol,kppsfreq,kppsstab,kppsjitter,kppscalibdur,kppscalibs,kppsjitexc,kppsstbexc,kppscaliberrs"<br><br>l_sysstats="ss_uptime,ss_numctlreq"<br><br>l_sysstats2="ss_reset_r,ss_received_r,ss_thisver_r,ss_oldver_r,ss_badformat_r,ss_badauth_r,ss_declined_r,ss_restricted_r,ss_limited_r,ss_kodsent_r,ss_processed_r,ss_reset,ss_received,ss_thisver,ss_oldver,ss_badformat,ss_badauth,ss_declined,ss_restricted,ss_limited,ss_kodsent,ss_processed"<br><br>l_monstats="mru_enabled,mru_hashslots,mru_depth,mru_deepest,mru_maxdepth,mru_mindepth,mru_maxage,mru_minage,mru_mem,mru_maxmem,mru_exists,mru_new,mru_recycleold,mru_recyclefull,mru_none,mru_oldest_age"<br><br>l_authinfo="authreset,authkeys,authfreek,authklookups,authknotfound,authencrypts,authdigestencrypts,authcmacencrypts,authdecrypts,authdigestdecrypts,authdigestfails,authcmacdecrypts,authcmacfails,authkuncached,authexpired"<br><br>l_ntsinfo="nts_client_send,nts_client_recv_good,nts_client_recv_bad,nts_server_recv_good,nts_server_recv_bad,nts_server_send,nts_cookie_make,nts_cookie_decode,nts_cookie_decode_old,nts_cookie_decode_too_old,nts_cookie_decode_error,nts_ke_probes_good,nts_ke_probes_bad,nts_ke_serves_good,nts_ke_serves_bad"<br><br>l_iostats="iostats_reset,total_rbuf,free_rbuf,used_rbuf,rbuf_lowater,io_dropped,io_ignored,io_received,io_sent,io_sendfailed,io_wakeups,io_goodwakeups,<br><br>l_timerstats="timerstats_reset,timer_overruns,timer_xmts"<br><br>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 columns. <br><br>More likely I could add another merge request to get ignored<br>for the duration. Also the list id for a recent git version.<br>1.2.0 lacks the *_r variables from sysstats.</div></div>