Python ntpq

Achim Gratz Stromeko at nexgo.de
Sun Nov 27 12:38:48 UTC 2016


Eric S. Raymond writes:
> Possibly this is a Python-3-specific issue?  Not that that doesn't mean
> we should fix it.

I'm currently using /usr/bin/python, which is pointing to
/usr/bin/python2.7, so I don't think that's the reason.

>> Also, it seems that association indices can't be used if you do not
>> print any peer list:
>> 
>> pi at raspberrypi2:~/ntpsec $ ntpq/ntpq -c "cv &1" -c "cv &2"
>> No such index.
>> No such index.
>> 
>> I havent tracked when it was broken, but I assume this is a missing
>> initialization and was always there.
>
> 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.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra



More information about the devel mailing list