Python ntpq
Eric S. Raymond
esr at thyrsus.com
Sun Nov 27 12:52:47 UTC 2016
Achim Gratz <Stromeko at nexgo.de>:
> > That is correct. It was like that in C ntpq.
>
> No, in the C version it worked:
>
> pi at raspberrypi:~ $ ntpq -c 'cv &1'
> associd=46064 status=00f0 15 events, clk_unspec,
> device="RAW DCF77 CODE (Conrad DCF77 receiver module)",
> name="RAWDCF_CONRAD",
> timecode="----#--###---#----M-S-24-12-p12--1-P124--21241---1-24-1---p",
> poll=36084, noreply=0, badformat=29, baddata=0, fudgetime1=880.500,
> fudgetime2=27.350, stratum=0, refid=PCFk, flags=0,
> refclock_time="dbe551e4.00000000 2016-11-27T12:36:52.000Z",
> refclock_status="TIME CODE; (LEAP INDICATION; CALLBIT)",
> refclock_format="RAW DCF77 Timecode"
>
> If you don't have a refclock then no associations exist that you might
> be able to use, but I have two of them on each box.
Oh, that explains it. I could never get & references to
work before doing a peer listing, but that was on a client-
only system with no refclocks.
I guess I could trigger an associaton fetch when te command parser
sees "&".
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
More information about the devel
mailing list