2020-11-01 15:44:56 +01:00
|
|
|
# vnstat
|
|
|
|
|
|
|
|
> A console-based network traffic monitor.
|
2022-03-22 03:07:48 +10:00
|
|
|
> More information: <https://manned.org/vnstat>.
|
2020-11-01 15:44:56 +01:00
|
|
|
|
|
|
|
- Display traffic summary for all interfaces:
|
|
|
|
|
|
|
|
`vnstat`
|
|
|
|
|
|
|
|
- Display traffic summary for a specific network interface:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`vnstat {{[-i|--iface]}} {{network_interface}}`
|
2020-11-01 15:44:56 +01:00
|
|
|
|
|
|
|
- Display live stats for a specific network interface:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`vnstat {{[-l|--live]}} {{[-i|--iface]}} {{network_interface}}`
|
2020-11-01 15:44:56 +01:00
|
|
|
|
|
|
|
- Show traffic statistics on an hourly basis for the last 24 hours using a bar graph:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`vnstat {{[-hg|--hoursgraph]}}`
|
2020-11-01 15:44:56 +01:00
|
|
|
|
|
|
|
- Measure and show average traffic for 30 seconds:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`vnstat {{[-tr|--traffic]}} {{30}}`
|