Rocky 9.x Look at network interface statistics
From Notes_Wiki
Revision as of 05:47, 12 November 2023 by Saurabh (talk | contribs) (Created page with "Home > Rocky Linux or CentOS > Rocky Linux 9.x > System Administration > Network Configuration > Look at network interface statistics =Look at per interface statistics= Per-interface statistics can be seen at: <pre> /sys/class/net/<interface-name>/statistics </pre> Refer: * https://stackoverflow.com/questions/349576/linux-re...")
Home > Rocky Linux or CentOS > Rocky Linux 9.x > System Administration > Network Configuration > Look at network interface statistics
Look at per interface statistics
Per-interface statistics can be seen at:
/sys/class/net/<interface-name>/statistics
Refer:
Reset interface statistics
Note that this will lead to network disconnection. Do it only when physically connected via keyboard mouse, using some other interface for remote or connected to VM via hypervisor, etc.
To reset interface counters use following steps:
- List the network drivers loaded on system:
- sudo lshw -class network
- Then for the interface whose statistics need to be reset note value of driver= under configuration:
- Finally use modprobe -r to remove the loaded module
- Then use modprobe to reload the removed module
- Now validate that statistics for that interface are again set to zero
Refer:
Home > Rocky Linux or CentOS > Rocky Linux 9.x > System Administration > Network Configuration > Look at network interface statistics