Differences

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

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 ====

Back to top

doc/howto/vnstat.1357070891.txt.bz2 · Last modified: 2013/01/01 21:08 by written_direcon