vnstat
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| vnstat [2016/02/26 21:39] – luke7858 | vnstat [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| \\ | \\ | ||
| You will then need to create a database for the tool: | You will then need to create a database for the tool: | ||
| + | \\ | ||
| + | Create the user first: | ||
| + | <sxh bash> | ||
| + | chsh -s /bin/bash vnstat | ||
| + | </ | ||
| + | Create the database: | ||
| <sxh bash> | <sxh bash> | ||
| runuser -l vnstat -g vnstat -c '/ | runuser -l vnstat -g vnstat -c '/ | ||
| Line 20: | Line 26: | ||
| \\ | \\ | ||
| ===Stats overview=== | ===Stats overview=== | ||
| + | ^ Value ^ Description ^ | ||
| + | | rx | Total Received | | ||
| + | | tx | Total Transmitted | | ||
| + | \\ | ||
| <sxh bash> | <sxh bash> | ||
| vnstat -i eth0 | vnstat -i eth0 | ||
| + | </ | ||
| + | \\ | ||
| + | Example: | ||
| + | <sxh bash> | ||
| + | Database updated: Mon Feb 29 12:31:07 2016 | ||
| + | |||
| + | eth0 since 02/26/16 | ||
| + | |||
| + | rx: 2.52 GiB tx: 2.55 GiB total: | ||
| + | |||
| + | | ||
| + | | ||
| + | | ||
| + | Feb ' | ||
| + | | ||
| + | | ||
| + | |||
| + | daily | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| </ | </ | ||
| \\ | \\ | ||
| Line 27: | Line 62: | ||
| <sxh bash> | <sxh bash> | ||
| vnstat -i eth0 -d | vnstat -i eth0 -d | ||
| + | </ | ||
| + | \\ | ||
| + | Example output: | ||
| + | <sxh bash> | ||
| + | | ||
| + | | ||
| + | 02/ | ||
| + | 02/ | ||
| + | 02/ | ||
| + | 02/ | ||
| + | | ||
| + | | ||
| </ | </ | ||
| \\ | \\ | ||
vnstat.1456522760.txt.gz · Last modified: 2024/05/23 07:26 (external edit)
