David Lord wrote:
Steve Kostecke wrote:
On 2013-10-29, David Lord wrote:
My systems are running netbsd-6 i386. Stock ntpd is ntp-4.2.6p5,
pkgsrc version of ntpd is 4.2.4.
My pc with gps/pps has ntp-4.2.7p377 and from that I get
"***Command 'mrulist' unknown"
"mrulist" was added in 4.2.7p22; see
http://archive.ntp.org/ntp4/ChangeLog-dev
or search the ntp-dev source code repository at bk.ntp.org
ntpq prior to 4.2.7p22 does not support "mrulist" ...
so 4.2.7p377 I've used since August is broken?
or do I need to add some options to enable that command?
| associd=0 status=011d leap_none, sync_pps, 1 event, kern,
| version="ntpd 4.2.7p377@1.2483-o Tue Jul 30 18:01:47 UTC 2013 (1)",
| processor="i386", system="NetBSD/6.1_STABLE", leap=00, stratum=1,
| precision=-18, rootdelay=0.000, rootdisp=400.195, refid=PPSb,
| reftime=d61ade0d.50cec958 Wed, Oct 30 2013 1:23:25.315,
| clock=d61ade1a.c7c4f3bc Wed, Oct 30 2013 1:23:38.780, peer=41951, tc=4,
| mintc=3, offset=-0.002, frequency=-36.004, sys_jitter=0.003815,
| clk_jitter=0.002, clk_wander=0.002, tai=35, leapsec=20120701,
| expire=20131201
built from source downloaded from www.ntp.org
I've now downloaded ntp-dev-4.2.7p393 but in middle of upgrades
so might be a week or more before it's built/installed.
David
Here's ntpq from the current stable release:
me@home:/tmp$ ./ntpq -n -cmrulist
***Command `mrulist' unknown
me@home:/tmp$ ./ntpq -v ./ntpq: illegal option -- v
ntpq - standard NTP query program - Ver. 4.2.6p5
USAGE: ntpq [ - [] | --[{=| }] ]... [ host ...]
Here's ntpq from the current ntp-dev snapshot:
me@home:/tmp$ which ntpq
/usr/bin/ntpq
me@home:/tmp$ ntpq -n -cmrulist
Ctrl-C will stop MRU retrieval and display partial results.
Retrieved 9 unique MRU entries and 0 updates.
lstint avgint rstr r m v count rport remote address
==
142 10430 . 4 4 1095 123 69.64.58.101
158 10070 . 4 4 1134 123 38.229.71.1
745 10330 . 4 4 1105 123 199.102.46.73
840 10390 . 4 4 1098 123 66.225.61.66
873 10400 . 4 4 1097 123 192.155.88.169
887 10030 . 4 4 1138 123 166.70.136.35
947 10050 . 4 4 1136 123 108.61.73.243
964 10180 . 4 4 1121 123 67.212.118.60
1023 10260 . 4 4 1112 123 74.120.8.2
You have new mail in /var/mail/me
me@home:/tmp$ ntpq -v /usr/bin/ntpq: illegal option -- v
ntpq - standard NTP query program - Ver. 4.2.7p393
Usage: ntpq [ - [] | --[{=| }] ]... [ host ...]
Try 'ntpq --help' for more information.
exit 1
me@home:/tmp$
I've now built ntp-4.2.7p393 and had same problem with
"ntpq -c mrulist". My system has ntp-4.2.6p5 installed in base
and ntpq is that from 4.2.6p5. When I use command
"/usr/local/bin/ntpq -c mrulist" I get the expected result:
bash-4.2$ /usr/local/bin/ntpq -c mrulist
Ctrl-C will stop MRU retrieval and display partial results.
Retrieved 9 unique MRU entries and 0 updates.
lstint avgint rstr r m v count rport remote address
==
0 480 . 4 4 24 123 ns1.lordynet.org
7 480 . 4 4 24 123 ns2.lordynet.org.uk
14 500 . 4 4 23 123 ns0.lordynet.org.uk
35 620 . 3 4 18 123 me6000g.home.lordynet.org
56 620 . 3 4 17 123 d525mw03.home.lordynet.org
64 470 . 4 4 23 123 ns3.lordynet.org
715260 . 3 4 2 123 p4x2666.home.lordynet.org
83107 190 . 4 4 10 123 ntp1.aa.net.uk
339 00 . 3 3 1 1095 p2x733.home.lordynet.org
bash-4.2$ /usr/local/bin/ntpq -crv -p
associd=0 status=011d leap_none, sync_pps, 1 event, kern,
version="ntpd 4.2.7p393@1.2483-o Wed Oct 30 09:50:29 UTC 2013 (1)",
processor="i386", system="NetBSD/6.1_STABLE", leap=00, stratum=1,
precision=-17, rootdelay=0.000, rootdisp=400.165, refid=PPSb,
reftime=d61b609b.2201a6a7 Wed, Oct 30 2013 10:40:27.132,
clock=d61b60a7.0e39b8dd Wed, Oct 30 2013 10:40:39.055, peer=55992, tc=4,
mintc=3, offset=-0.002671, frequency=-35.828, sys_jitter=0.007629,
clk_jitter=0.001, clk_wander=0.007, tai=35, leapsec=20120701,
expire=20131201
remote refid st t when poll reach delay offset jitter
=
-GPS_NMEA(2) .GPSb. 7 l 40 64 377 0.000 -25.685 12.241
oPPS(2) .PPSb. 0 l 12 16 377 0.000 -0.003 0.008
+ns0.lordynet.or 195.173.57.232 3 u 55 64 377 1.783 -0.705 0.649
ns2.lordynet.or 192.168.59.61 2 u 48 64 377 0.869 0.601 0.412
+ns1.lordynet.or 129.215.42.240 3 u 41 64 377 0.609 1.420 0.689
+ns3.lordynet.or 90.155.53.933 u 39 64 377 0.738 1.574 0.675
*ntp1.aa.net.uk 195.66.241.32 u 124 256 37 22.322 3.974 2.723
David
___
quest