Last active
December 16, 2015 15:58
-
-
Save nitstorm/5459213 to your computer and use it in GitHub Desktop.
A tiny reference sheet for some of the mainly used features of vnStat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Summaries: | |
vnstat -m #monthly summaries | |
vnstat -d #daily summaries (last 30 days) | |
vnstat -h #hourly summaries (last 24 hours) | |
Other views: | |
vnstat -w #weekly comparison (last 7 days, last week, current week) | |
vnstat -t #top 10 entries ever | |
Live View: | |
vnstat --live #Live bandwidth monitoring | |
Interface specific: | |
vnstat --iflist #Available interfaces | |
vnstat -i <iface> #Bandwidth monitoring for the interface <iface> | |
Output in different formats: | |
vnstat --xml #Outputs all the database information in XML format | |
vnstat --dumpdb #Dumps all the database information where fields are separated by ; as a delimeter | |
Resetting various parts of vnStat: | |
vnstat --cleartop #Clears the top 10 entries | |
vnstat -r #Reset internal counters in the database for the selected interface | |
vnstat --rebuildtotal #Reset the total traffic counters and recount those using recorded months |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment