Description of Problem: Per the netstat(1) man-page: -c, --continuous This will cause netstat to print the selected information every second continuously. But when "netstat -ic" is run, only the heading is printed every time, even when there is network activity on the interface(s). Version-Release number of selected component (if applicable): # rpm -qf $(which netstat) net-tools-1.60-3 How Reproducible: 100% Actual Results: # 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 029960939 0 0 948 5972829 0 0 0 BRU lo 16436 0 124720 0 0 0 124720 0 0 0 LRU # netstat -ic 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 029961009 0 0 948 5973075 0 0 0 BRU lo 16436 0 124720 0 0 0 124720 0 0 0 LRU Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg Expected Results: With or without the header, I would expect to see interface statistics. This is very reproducible; you can start up a ping to localhost and a ping to exercise eth0, and all that ever prints is the header -- no interface statistics. Additional Information:
Created attachment 72072 [details] patch that fixes this bug
*** Bug 73750 has been marked as a duplicate of this bug. ***
This defect still exists in Phoebe (version 2) public beta.
*** Bug 83728 has been marked as a duplicate of this bug. ***
Fixed in latest net-tools version. Now every 8 outputs the header is printed again and a delay option has been added, too. Read ya, Phil
Can we get an errata update posted on the RHN server for IA64 as well?
OK, package updated and built and opened a RHEL AS 2.1 errata for it. Please make sure it gets added to the AS2.1 QU3 update. Read ya, Phil
ISSUE TRACKER 21400 opened as sev 2
Fix verified in an early cut of an ia64-based distribution. This defect is also in AS2.1 QU2 errata for IA64 -- really hoping it gets fixed for QU3 (per Phil).
Phil requests this be fixed in QU3 errata. Blocking BUG...
Errata, not Taroon. Sorry.
Phils patch seems broken on machines with interface aliases: Here is output from RH9 machine. Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg eth0 1500 051723645 0 0 064367877 0 0 0 BMRU eth0:1 1500 0 9292193 0 0 142 8149663 0 0 0 BMRU eth1 1500 0 9292193 0 0 142 8149663 0 0 0 BMRU lo 16436 0 34498 0 0 0 34498 0 0 0 LRU eth0 1500 051723645 0 0 064367877 0 0 0 BMRU eth0:1 1500 0 9292194 0 0 142 8149663 0 0 0 BMRU eth1 1500 0 9292194 0 0 142 8149663 0 0 0 BMRU lo 16436 0 34498 0 0 0 34498 0 0 0 LRU eth0 1500 051723668 0 0 064367889 0 0 0 BMRU eth0:1 1500 0 9292194 0 0 142 8149663 0 0 0 BMRU eth1 1500 0 9292194 0 0 142 8149663 0 0 0 BMRU lo 16436 0 34498 0 0 0 34498 0 0 0 LRU eth0 1500 051723668 0 0 064367889 0 0 0 BMRU eth0:1 1500 0 9292222 0 0 142 8149694 0 0 0 BMRU eth1 1500 0 9292222 0 0 142 8149694 0 0 0 BMRU Notice data from eth0:1 and eth1 as being the same. This is incorrect. Also, it should print the header every x times, print the totals for each interface then print the deltas of each other ( ala solaris, hpux, aix ) like in the patch that I provided.
In addition to the above mentioned issue, "netstat -c -i eth0" or even "netstat -i eth0" isn't working either, it prints out all interfaces: dbprod-01 ulf /home/ulf > netstat -c -i eth0 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 014891764 0 0 0 9722602 0 0 0 BMRU eth1 1500 036690252 0 0 044376013 0 0 0 BMRU lo 16436 0 2373810 0 0 0 2373810 0 0 0 LRU Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg dbprod-01 ulf /home/ulf > netstat -c --interfaces eth0 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 014892105 0 0 0 9722900 0 0 0 BMRU eth1 1500 036691214 0 0 044376848 0 0 0 BMRU lo 16436 0 2373902 0 0 0 2373902 0 0 0 LRU Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
WAS MUSTFIX for Update3, but HP-IPF reduced to SHOULDFIX. Changing blocker to correct bug.
The -i option hasn't been working for a long time and was also wrongly documented in the manpages. I've been working on a fix for that but unfortunately that won't make it in U3. I've already scheduled another net-tools update for U4 which will then include a fix for the interface alias problem as well as for the -i option. Thanks, Read ya, Phil
*** Bug 110590 has been marked as a duplicate of this bug. ***
An errata 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-2003-164.html