Bug: ntpq mrv traceback
Classic:
ntpq> mrv &1 &9999
associd=51796 status=963a conf, reach, sel_sys.peer, 3 events, sys_peer,
srcadr=usnyc3-ntp-002.aaplimg.com, srcport=123, dstadr=192.168.0.4,
dstport=123, leap=00, stratum=1, precision=-20, rootdelay=0.000,
rootdisp=1.099, refid=GPSs,
reftime=dbed63f0.762e53c2 Sat, Dec 3 2016 10:32:00.461,
rec=dbed63f8.0af4cffa Sat, Dec 3 2016 10:32:08.042, reach=377,
unreach=0, hmode=3, pmode=4, hpoll=6, ppoll=6, headway=51, flash=00 ok,
keyid=0, offset=9.996, delay=22.413, dispersion=2.300, jitter=22.665,
xleave=0.013,
filtdelay= 23.96 28.55 23.34 22.41 35.32 32.79 98.87 124.71,
filtoffset= 13.46 17.24 10.17 10.00 13.27 14.48 45.52 -37.32,
filtdisp= 0.00 0.99 1.95 2.93 3.92 4.88 5.85 6.83
ntpsec:
ntpq> mrv &1 &9999
No such index.
No such index.
Traceback (most recent call last):
File "./ntpq/ntpq", line 1656, in <module>
interpreter.cmdloop()
File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/cmd.py", line 138, in cmdloop
stop = self.onecmd(line)
File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/cmd.py", line 217, in onecmd
return func(arg)
File "./ntpq/ntpq", line 1103, in do_mrv
self.do_mreadvar(line)
File "./ntpq/ntpq", line 1089, in do_mreadvar
if not self.__dolist(varlist, associd, ntp.ntp_control.CTL_OP_READVAR, ntp.ntpc.TYPE_PEER):
File "./ntpq/ntpq", line 519, in __dolist
variables = self.session.readvar(associd, varlist, op)
File "/usr/local/lib/python3.5/site-packages/ntp/packet.py", line 1160, in readvar
self.doquery(opcode, associd=associd, qdata=qdata)
File "/usr/local/lib/python3.5/site-packages/ntp/packet.py", line 1087, in doquery
self.sendrequest(opcode, associd, qdata, auth)
File "/usr/local/lib/python3.5/site-packages/ntp/packet.py", line 876, in sendrequest
return pkt.send()
File "/usr/local/lib/python3.5/site-packages/ntp/packet.py", line 594, in send
self.session.sendpkt(self.flatten())
File "/usr/local/lib/python3.5/site-packages/ntp/packet.py", line 590, in flatten
self.count)
struct.error: argument out of range