Closed
Description
The ntpq
output in show ntp detail
truncates long IPv6 addresses and hostnames. This makes debugging difficult.
ntpq -w
(--wide
) allows the full address/hostname to be displayed. If it extends into the next column, the data is wrapped to preserve tabular alignment.
e.g.
remote refid st t when poll reach delay offset jitter
==============================================================================
2.us.pool.ntp.o .POOL. 16 p - 64 0 0.000 0.000 0.002
1.us.pool.ntp.o .POOL. 16 p - 64 0 0.000 0.000 0.002
3.us.pool.ntp.o .POOL. 16 p - 64 0 0.000 0.000 0.002
192.168.148.255 .XFAC. 16 B - 64 0 0.000 0.000 0.002
ff05::101 .XFAC. 16 M - 64 0 0.000 0.000 0.002
*2620:149:a10:30 .SHM. 1 u 316 1024 1 13.933 -1.412 3.140
+2604:4300:f35:1 10.0.0.29 2 u 193 1024 7 49.271 -1.423 11.670
+2600:3c01::f03c 80.72.67.48 3 u 192 1024 7 74.679 -1.689 5.523
+198.137.202.32 23.131.160.13 2 u 195 1024 7 68.377 -1.461 2.448
+2600:3c03::f03c 97.183.206.88 2 u 319 1024 1 12.929 -0.714 2.249
+65.100.46.164 .PPS. 1 u 189 64 34 79.346 1.268 1.553
+108.59.2.24 130.133.1.10 2 u 189 1024 7 19.370 2.374 1.537
+204.2.134.163 22.42.17.250 3 u 192 1024 7 70.051 -0.147 2.642
with -w
becomes:
remote refid st t when poll reach delay offset jitter
==============================================================================
2.us.pool.ntp.org
.POOL. 16 p - 64 0 0.000 0.000 0.002
1.us.pool.ntp.org
.POOL. 16 p - 64 0 0.000 0.000 0.002
3.us.pool.ntp.org
.POOL. 16 p - 64 0 0.000 0.000 0.002
192.168.148.255 .XFAC. 16 B - 64 0 0.000 0.000 0.002
ff05::101 .XFAC. 16 M - 64 0 0.000 0.000 0.002
*2620:149:a10:3000::1f2
.SHM. 1 u 321 1024 1 13.933 -1.412 3.140
+2604:4300:f35:16::3
10.0.0.29 2 u 198 1024 7 49.271 -1.423 11.670
+2600:3c01::f03c:92ff:fe8c:f7c9
80.72.67.48 3 u 197 1024 7 74.679 -1.689 5.523
+198.137.202.32 23.131.160.13 2 u 200 1024 7 68.377 -1.461 2.448
+2600:3c03::f03c:91ff:fe3e:c3bb
97.183.206.88 2 u 324 1024 1 12.929 -0.714 2.249
+65.100.46.164 .PPS. 1 u 194 64 34 79.346 1.268 1.553
+108.59.2.24 130.133.1.10 2 u 194 1024 7 19.370 2.374 1.537
+204.2.134.163 22.42.17.250 3 u 197 1024 7 70.051 -0.147 2.642
Since you appear to be simply capturing ntpq
output, adding the -w
should not be difficult...