Skip to content

Instantly share code, notes, and snippets.

@nitstorm
Last active December 16, 2015 15:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nitstorm/5459213 to your computer and use it in GitHub Desktop.
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
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