John Hasler <[email protected]> writes:

> I'm still unclear as to what the problem is.  On a machine with only one
> external interface the command vnstat with no options works fine out of
> the box.  It even works on my phone, where it summarizes traffic for all
> interfaces.  The mutating MAC shouldn't matter.

It seems "vnstat -m" only shows monthly statistics for a single
interface, unless you provide all possible interface names with "-i
int1:int2:..." format.

I suppose you can do something like

vnstat -i $(vnstat --iflist 1 | grep '^enx' | tr '\n' '+' | sed 's/\+$//') 

to combine all the enx* interfaces in the database. Or, use udev rules
to create a nice short name for any USB ethernet interfaces regardles of
the MAC, to avoid creating a new database entry each time the MAC changes.

Reply via email to