How do I find out the current network interface throughput statistics on Linux (CentOS or Debian based distro)? How do I see current kernel snmp counters and network interface statistics on Linux operating systems?
You can use any one of the following commands:nstat command : Network Statistics Tool Type the following command:
You can use any one of the following commands:
nstat command : Network Statistics Tool Type the following command:
# nstat
ss command : Utility To Investigate Sockets
To see summary of stats, enter:
# ss -s
See ss command tutorial for more information.
netstat command : The Old Good Utility To Show Sockets
To see a table of all network interfaces and its summary, enter:
# netstat -i
To see summary statistics for each protocol, enter:
# netstat -s
See netstat command tutorial for more information.
ip / ifconfig command : Configure or Show a Network Interface Info
Type the following command:
# ifconfig
OR
# /sbin/ifconfig
OR
# ifconfig eth0
To display network interface statistics, enter:
# ip -s link
sar command: Display Network Stats
Type the following command (you need to install and enable sar via sysstat package):
sar -n DEV
Or type the following command:
# sar -n DEV 1 3