Find the answer to your Linux question:
Results 1 to 2 of 2
I wish to know the maximum values of items obtained by executing the command "netstat -i" .I got the output as follows in my machine Iface MTU Met RX-OK RX-ERR ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2004
    Posts
    11

    netstat -i command.


    I wish to know the maximum values of items obtained by executing the command "netstat -i" .I got the output as follows in my machine

    Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
    eth0 1500 058484045 0 0 0103582131 0 0 0 BMRU
    lo 16436 0 721065 0 0 0 721065 0 0 0 LRU


    So i wish to know how much the values of RX-OK and RX-OVR . The former has 8 digits and latter 9 digits

    .Plz help me ..Also tell me if there is any way to seperate Met value from RX-OK value.

    Thankyou in advance

  2. #2
    Just Joined!
    Join Date
    Sep 2004
    Posts
    11

    NETSTAT

    The problem i am facing is that I need to parse the output of netstat -i.
    The following is the output I got in my Linux box :-

    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 059003066 0 0 0103788427 0 0 0 BMRU
    lo 16436 0 724237 0 0 0 724237 0 0 0 LRU


    Here the values of Met and and RX-OK are printed together. There is no space delimiter. Is there any other way to parse the output. This problem occurs for RX-OVR and TX-Ok

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •