RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1289679 - sos netstat capture truncates IPV6 addresses
Summary: sos netstat capture truncates IPV6 addresses
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sos
Version: 7.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Pavel Moravec
QA Contact: Miroslav Hradílek
URL: https://github.com/sosreport/sos/issu...
Whiteboard:
Depends On:
Blocks: 1298112 1313485 1381991
TreeView+ depends on / blocked
 
Reported: 2015-12-08 17:39 UTC by Martin Poole
Modified: 2016-11-04 04:55 UTC (History)
9 users (show)

Fixed In Version: sos-3.3-0.el7
Doc Type: Bug Fix
Doc Text:
Prior to this update, the collected netstat output truncated IPv6 addresses, preventing users to see complete IP address of listed connections. With this update, the gathered command prints output in a wide format, thus with complete IPv6 addresses.
Clone Of:
: 1381991 (view as bug list)
Environment:
Last Closed: 2016-11-04 04:55:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2380 0 normal SHIPPED_LIVE sos bug fix and enhancement update 2016-11-03 13:52:35 UTC

Description Martin Poole 2015-12-08 17:39:01 UTC
Description of problem:

netstat -neopa data truncates IPV6 addresses

Version-Release number of selected component (if applicable):

sos-3.2-35.el7

Additional info:

command needs additional of -T to ensure full addresses are captured.

Comment 1 Bryn M. Reeves 2015-12-08 17:58:26 UTC
Really?

-T is not documented in the netstat man page or usage text and attempting to add it causes an invalid option error:

    [root@bmr-rhel7-vm1 ~]# netstat -neopaT
    netstat: invalid option -- 'T'
    usage: netstat [-vWeenNcCF] [<Af>] -r         netstat {-V|--version|-
    h|--help}
           netstat [-vWnNcaeol] [<Socket> ...]
           netstat { [-vWeenNac] -I[<Iface>] | [-veenNac] -i | [-cnNe] -M | -s 
           [-6tuw] } [delay]
[...]

None of the netstats on my Fedora or RHEL boxes have heard of this switch.

# rpm -q net-tools
net-tools-2.0-0.17.20131004git.el7.x86_64

Is this a new option? If so we'd need to know what version it appears in in order to not trigger errors on older installations (although to be honest the idea of a "please don't trash IP addresses on output" switch to a net-tools command seems a bit crazy just out the gate..).

It would also be helpful if you could include full steps to reproduce or the output that you are seeing - I don't see any truncation when running this command with the default IPv6 settings on an el7 install.

Comment 2 Martin Poole 2015-12-08 18:06:50 UTC
Oh joy.

On RHEL7 it's -W, on RHEL6 and earlier it's -T

Comment 4 Pavel Moravec 2016-02-21 12:18:55 UTC
posted to upstream:

606dcbc7d1cc203487ae9e773fe7173aa1966f2c
aa7fd5739f528cd9534fb4d86daff0e7c0e9bd06

Comment 6 Mike McCune 2016-03-28 23:20:28 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 10 errata-xmlrpc 2016-11-04 04:55:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2380.html


Note You need to log in before you can comment on or make changes to this bug.