How to display statistics for each protocol in Linux

Home > Search > How-to
  by

The netstat -s option can be used to display statistics for each protocol.

[root@server1 ~]# netstat -s
IcmpMsg:
    InType3: 3
    OutType3: 3
Tcp:
    43 active connections openings
    2 passive connection opening
. . .
Udp:
    17184 packets received
    3 packets to unknown port received.
. . .

 

The netstat -i option can be used to display statistics for each interface.

[root@server1 ~]# netstat -i
Kernel Interface table
Iface    MTU   RX-OK  RX-ERR  RX-DRP  RX-OVR    TX-OK  TX-ERR  TX-DRP  TX-OVR    Flg
eth0    1500  369196       0      50       0   191386       0       0       0   BMRU
lo     65536       0       0       0       0        8       0       0       0    LRU


Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments