Bug 64862 - RHEL 2.1/IPF/QU3: -c option to netstat(1) repeatedly prints headings (not I/F stats)
RHEL 2.1/IPF/QU3: -c option to netstat(1) repeatedly prints headings (not I/F...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: net-tools (Show other bugs)
2.1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Phil Knirsch
Aaron Brown
:
: 110590 (view as bug list)
Depends On:
Blocks: 73750 107565
  Show dependency treegraph
 
Reported: 2002-05-13 14:00 EDT by Glen A. Foster
Modified: 2015-03-04 20:10 EST (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-12-19 09:46:14 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
patch that fixes this bug (4.63 KB, patch)
2002-08-21 16:30 EDT, Scott Edlund
no flags Details | Diff

  None (edit)
Description Glen A. Foster 2002-05-13 14:00:09 EDT
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:
Comment 1 Scott Edlund 2002-08-21 16:30:45 EDT
Created attachment 72072 [details]
patch that fixes this bug
Comment 2 Phil Knirsch 2002-10-04 04:36:16 EDT
*** Bug 73750 has been marked as a duplicate of this bug. ***
Comment 3 Glen A. Foster 2003-01-24 17:17:52 EST
This defect still exists in Phoebe (version 2) public beta.
Comment 4 Nishanth Thomas 2003-02-07 12:08:05 EST
*** Bug 83728 has been marked as a duplicate of this bug. ***
Comment 5 Phil Knirsch 2003-02-11 09:15:28 EST
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 
Comment 6 Glen A. Foster 2003-03-31 17:26:39 EST
Can we get an errata update posted on the RHN server for IA64 as well?
Comment 8 Phil Knirsch 2003-04-22 08:58:00 EDT
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
Comment 9 Larry Troan 2003-05-13 10:49:54 EDT
ISSUE TRACKER 21400 opened as sev 2
Comment 10 Glen A. Foster 2003-07-14 12:52:19 EDT
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).
Comment 11 Larry Troan 2003-08-08 18:56:02 EDT
Phil requests this be fixed in QU3 errata. Blocking BUG...
Comment 12 Larry Troan 2003-08-08 18:56:55 EDT
Errata, not Taroon. Sorry. 
Comment 13 Scott Edlund 2003-08-12 12:25:24 EDT
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.
Comment 14 Ulf Zimmermann 2003-08-20 15:18:51 EDT
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
Comment 16 Larry Troan 2003-10-16 18:13:19 EDT
WAS MUSTFIX for Update3, but HP-IPF reduced to SHOULDFIX. Changing blocker to
correct bug.
Comment 18 Phil Knirsch 2003-11-26 05:01:36 EST
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
Comment 19 Phil Knirsch 2003-12-03 05:53:53 EST
*** Bug 110590 has been marked as a duplicate of this bug. ***
Comment 22 John Flanagan 2003-12-19 09:46:14 EST
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

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