Linux Networking: Troubleshooting and Diagnostics/Show historical network counters

Inspect sar network statistics if sysstat is installed.

Section: System Files and Logs

Show historical network counters

bash
bash
sar -n DEV 1 5
Explanation

Inspect sar network statistics if sysstat is installed.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing System Files and Logs
Show recent kernel network messages
Filter kernel ring buffer for common networking terms.
OpenIn sheetbashsame section
Show systemd-networkd logs
Inspect logs for systemd-networkd.
OpenIn sheetbashsame section
Show systemd-resolved logs
Inspect DNS resolver service logs.
OpenIn sheetbashsame section
Show NetworkManager logs
Inspect NetworkManager service logs.
OpenIn sheetbashsame section
Monitor link/address changes
Watch interfaces, addresses, and routes in real time.
OpenIn sheetbashsame section
Ping a host
Send ICMP echo requests to test basic reachability.