Bug 139481

Summary: netstat -ain giving "Device not found" error
Product: [Fedora] Fedora Reporter: Mark Waterhouse <mark>
Component: net-toolsAssignee: Radek Vokál <rvokal>
Status: CLOSED NOTABUG QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 1   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-11-16 12:25:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mark Waterhouse 2004-11-16 09:06:30 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030922

Description of problem:
The option "-n" has a strange effect upon the netstat command.
This has been confirmed in FC1 and RHEL ES 3 (Taroon)



On previous releases, the expected output of "netstat -ain" is;
[root@rh72 mail]# netstat -ain
Kernel Interface table
Iface   MTU Met   RX-OK RX-ERR RX-DRP RX-OVR   TX-OK TX-ERR TX-DRP
TX-OVR Flg
eth0   1500   0  764039      0      0      0  485379      0      0   
  0 BNRU
lo    16436   0   13786      0      0      0   13786      0      0   
  0 LRU

However, this now appears to be broken.
[root@rhel3 root]# netstat -ain
Kernel Interface table
Iface       MTU Met    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR
TX-DRP TX-OVR Flg
n: error fetching interface information: Device not found


Version-Release number of selected component (if applicable):
net-tools-1.60-20.1

How reproducible:
Always

Steps to Reproduce:
1. netstat -ain
2.
3.
    

Actual Results:  [root@rhel3 root]# netstat -ain
Kernel Interface table
Iface       MTU Met    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR
TX-DRP TX-OVR Flg
n: error fetching interface information: Device not found

Expected Results:  [root@rhel3 root]# netstat -ain
Kernel Interface table
Iface   MTU Met   RX-OK RX-ERR RX-DRP RX-OVR   TX-OK TX-ERR TX-DRP
TX-OVR Flg
eth0   1500   0  764039      0      0      0  485379      0      0   
  0 BNRU
lo    16436   0   13786      0      0      0   13786      0      0   
  0 LRU

Additional info:

Comment 1 Radek Vokál 2004-11-16 12:25:33 UTC
The problem is that -i option is expecting interface which follows
right after it, eg. "n" stands for interface and not as option
parameter. You'll get your expected results using netstat -a -i -n.