LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-30-2007, 07:55 AM   #1
bhakta
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Rep: Reputation: 0
netstat -i output buggy on SUSE EL9??!!


We are facing some issues with the output of the "netstat -i" command on SUSE Linux Enterprise 9 with net-tools package 1.60-543.8.


Expected Output
Code:
# netstat -i
Kernel Interface table
Iface MTU Met  RX-OK RX-ERR RX-DRP RX-OVR  TX-OK TX-ERR TX-DRP TX-OVR Flags
lo      0   0   345336185      0      0      0   345336185      0      0      0 BLRU
eth0 1500   0 972633     17     20    120 628711    217      0      0 BRU

Actual Output with SUSE Linux Enterprise 9 with net-tools version 1.60-543.8
Code:
# netstat -i
Kernel Interface table
Iface MTU Met  RX-OK RX-ERR RX-DRP RX-OVR  TX-OK TX-ERR TX-DRP TX-OVR Flags
lo      0   0345336185      0      0      0345336185      0      0      0 BLRU
eth0 1500   0 972633     17     20    120 628711    217      0      0 BRU
As you see for some rows the columns for Met and RX-OK are merged and also that of RX-OVR and TX-OK! This output is causing some trouble in our programs as there is no space between columns. I am not sure whether it is OS issue or net-tools package issue. Please help me.

bhakta

Last edited by bhakta; 07-31-2007 at 11:39 PM.
 
Old 07-31-2007, 08:24 AM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
For a bug in Suse Enterprise Linux I would think you would contact Suse directly, since that is a supported OS.. even without support they would be interested in a bug report.
 
Old 07-31-2007, 11:38 PM   #3
bhakta
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Original Poster
Rep: Reputation: 0
netstat bug

Hi,

I have solved this issue. It is not SUSE issue, it is with netstat command itself on any platform! If the number of digits in the output reaches above 8 in any column the output does not contain spaces between columns. I solved it by using alternative command options "netstat -i -e" where the output is transposed. Here even when the digits are more it still keeps a space. Later I used some grep and awk to get what I want.

Bhakta.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
netstat output rob.rice Linux - Networking 2 04-29-2007 09:18 AM
Netstat output Raafi Linux - Security 4 05-24-2005 10:14 PM
What does this netstat output mean? Kovacs Linux - Security 2 01-25-2004 06:32 PM
netstat -l output help dai Linux - Security 2 07-02-2003 03:40 PM
netstat output... WeNdeL Linux - Networking 3 03-20-2003 09:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration