[Bug 325111] Re: ntpq output truncates IPv6 addresses

Bug Watch Updater 325111 at bugs.launchpad.net
Wed Aug 8 13:22:07 UTC 2012


Launchpad has imported 5 comments from the remote bug at
https://support.ntp.org/bugs/show_bug.cgi?id=1128.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2009-02-04T01:24:32+00:00 Daniel T Chen wrote:

Forwarded from Ubuntu bug report #325111:

'Running ntpq with the -n (numeric) flag causes ntpq to print raw IP addresses
rather than perform DNS lookups. When an IPv6 peer is present, the IPv6 address
is truncated, hiding the right-most digits.

Proper operation would be to show the entire IPv6 address.

Example output:

# ntpq -n
ntpq> peers
     remote refid st t when poll reach delay offset jitter
==============================================================================
+2001:1111:111:2 69.10.36.6 3 u 15 64 377 0.304 0.668 1.072
+91.189.94.4 193.79.237.14 2 u 23 128 377 108.365 -1.872 2.214

The first peer (actual address changed somewhat but formatting unaltered) has
been truncated after ":2".'

Reply at: https://bugs.launchpad.net/ntp/+bug/325111/comments/1

------------------------------------------------------------------------
On 2009-02-04T01:27:48+00:00 Daniel T Chen wrote:

For ease of reference, I'm including a URL to the Web-viewable patches applied
to the version of ntp (1:4.2.4p4+dfsg-7ubuntu3) in Ubuntu 9.04 ("jaunty"):
http://package-import.ubuntu.com/n/ntp/jaunty/files/head%3A/debian/patches/

Reply at: https://bugs.launchpad.net/ntp/+bug/325111/comments/2

------------------------------------------------------------------------
On 2009-02-04T04:49:45+00:00 Mayer-r wrote:

Please attach the suggested patch to this bug report.

This is a known issue in ntp with IPv6 addresses since the row will no longer
fit into 80 characters, the standard size for standard output.

Danny

Reply at: https://bugs.launchpad.net/ntp/+bug/325111/comments/3

------------------------------------------------------------------------
On 2010-05-18T16:48:17+00:00 Dave Hart wrote:

FYI, the full IPv6 address is visible using rv/readvar:

ntpq -npc "rv &2"

will show all the variables ntpd sends to ntpq for the second
association in the billboard.  ntpq summarizes this information in the
peers billboard single-line representation.

Realistically, any fix to this problem would most likely involve yet
another billboard variation, with a wider "remote" column by losing some
other column(s).

Reply at: https://bugs.launchpad.net/ntp/+bug/325111/comments/4

------------------------------------------------------------------------
On 2012-08-07T05:09:35+00:00 Stenn wrote:

Dave Hart,

Were you and I discussing ways to show wider output for ntpq?  I'm
trying to remember if we were going to consider -w/--wide or if we were
thinking being able to specify -w/--width=NN was better.

Reply at: https://bugs.launchpad.net/ntp/+bug/325111/comments/5


** Changed in: ntp
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to ntp in Ubuntu.
https://bugs.launchpad.net/bugs/325111

Title:
  ntpq output truncates IPv6 addresses

To manage notifications about this bug go to:
https://bugs.launchpad.net/ntp/+bug/325111/+subscriptions



More information about the Ubuntu-server-bugs mailing list