Posted: Wed Sep 13, 2017 10:43 am
What is the most reliable way to get eth0 stats? I am a bit confused about the disparity between the following...
Code: Select all
# cat /proc/net/dev bytes packets eth0: 699814 5578 # cat /sys/class/net/eth0/statistics/rx_packets 5598 # ifconfig eth0: RX packets 5623 bytes 703775 (687.2 KiB)