2020-11-01 14:44:56 +00:00
|
|
|
# vnstat
|
|
|
|
|
|
|
|
> A console-based network traffic monitor.
|
2022-03-21 17:07:48 +00:00
|
|
|
> More information: <https://manned.org/vnstat>.
|
2020-11-01 14:44:56 +00:00
|
|
|
|
|
|
|
- Display traffic summary for all interfaces:
|
|
|
|
|
|
|
|
`vnstat`
|
|
|
|
|
|
|
|
- Display traffic summary for a specific network interface:
|
|
|
|
|
2024-05-13 01:16:47 +01:00
|
|
|
`vnstat -i {{network_interface}}`
|
2020-11-01 14:44:56 +00:00
|
|
|
|
|
|
|
- Display live stats for a specific network interface:
|
|
|
|
|
2024-05-13 01:16:47 +01:00
|
|
|
`vnstat -l -i {{network_interface}}`
|
2020-11-01 14:44:56 +00:00
|
|
|
|
|
|
|
- Show traffic statistics on an hourly basis for the last 24 hours using a bar graph:
|
|
|
|
|
|
|
|
`vnstat -hg`
|
|
|
|
|
|
|
|
- Measure and show average traffic for 30 seconds:
|
|
|
|
|
|
|
|
`vnstat -tr {{30}}`
|