User Tools

Site Tools


doc:howto:vnstat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
doc:howto:vnstat [2013/01/01 21:08]
written_direcon
doc:howto:vnstat [2013/06/05 19:16] (current)
lorema
Line 17: Line 17:
  
 The common choice for monitoring is your WAN interface. To locate your WAN ifname and setup interfaces to monitor and create database do: The common choice for monitoring is your WAN interface. To locate your WAN ifname and setup interfaces to monitor and create database do:
-<​code>​vnstat -u -i $(uci -P/​var/​state show network.wan.ifname)</​code>​+<​code ​bash> 
 +. /​lib/​functions/​network.sh;​ network_get_device if_wan wan 
 +vnstat -u -i $if_wan 
 +</​code>​
  
 ==== Database Updating ==== ==== Database Updating ====
doc/howto/vnstat.1357070891.txt.bz2 · Last modified: 2013/01/01 21:08 by written_direcon