From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; OSF1 alpha; en-US; rv:1.5) Gecko/20031031 Description of problem: netstat -i<iface> always report all configured interfaces except for the first one. njoly@raclette-tete1 [~]> /bin/netstat -i 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 3423403 0 0 0 692348 0 0 0 BMRU eth1 1500 0 242193 0 0 0 386410 0 0 0 BMRU lo 16436 0 2458 0 0 0 2458 0 0 0 LRU njoly@raclette-tete1 [~]> /bin/netstat -ieth0 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 3423422 0 0 0 692359 0 0 0 BMRU njoly@raclette-tete1 [~]> /bin/netstat -ieth1 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 3423431 0 0 0 692376 0 0 0 BMRU eth1 1500 0 242193 0 0 0 386410 0 0 0 BMRU lo 16436 0 2458 0 0 0 2458 0 0 0 LRU njoly@raclette-tete1 [~]> /bin/netstat -ilo 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 3423446 0 0 0 692387 0 0 0 BMRU eth1 1500 0 242194 0 0 0 386412 0 0 0 BMRU lo 16436 0 2458 0 0 0 2458 0 0 0 LRU Version-Release number of selected component (if applicable): net-tools-1.60-37.EL4.6 How reproducible: Always Steps to Reproduce: 1./bin/netstat -ieth1 Actual Results: njoly@raclette-tete1 [~]> /bin/netstat -ieth1 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 3423141 0 0 0 692253 0 0 0 BMRU eth1 1500 0 242164 0 0 0 386370 0 0 0 BMRU lo 16436 0 2458 0 0 0 2458 0 0 0 LRU Expected Results: njoly@raclette-tete1 [~]> /bin/netstat -ieth1 Kernel Interface table Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg eth1 1500 0 242164 0 0 0 386370 0 0 0 BMRU Additional info:
This bug is already fixed in rawhide for some time. Adding on update proposed list.
Created attachment 122992 [details] net-tools-1.60-iface_fix.patch stupid, really stupid typo!
Thanks. Is the fix available somewhere ? I'll give it a try.
Yes, try to patch in Comment #2
s/to/the
Gasp ... You are not authorized to access this attachment. https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=122992
Please try again now ..
Ok, i got it and it do solve the parsing problem. Thanks. In the mean time, i noticed that with an interval value the counters are not updated even if there some traffic on this interface: njoly@raclette-tete1 [~]> /bin/netstat -ieth0 1 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 3442137 0 0 0 700365 0 0 0 BMRU eth0 1500 0 3442137 0 0 0 700365 0 0 0 BMRU eth0 1500 0 3442137 0 0 0 700365 0 0 0 BMRU [...] Do you have a fix for that one too ? ;-)
This issue is on Red Hat Engineering's list of planned work items for the upcoming Red Hat Enterprise Linux 4.4 release. Engineering resources have been assigned and barring unforeseen circumstances, Red Hat intends to include this item in the 4.4 release.
I also see this bug (netstat not updating statistics on a single interface, just as in comment 8) on ES4u3 (using net-tools-1.60-37.EL4.6), and the original issue is also present. We'll definitely need ES4u4 for the fixup.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2006-0360.html