You can read how much data has transited on each network interfaces
inside a guest by reading : /proc/net/dev
You just have to take the value at first then wait some time, take the
new value, substract the first one to the second then divide it by how
long in seconds you waited between the two checks.
If you want to check from the host, here is a script i made :
Le 24/12/2014 00:45, Laurens Vets a écrit :
> Hi list,
> Is it possible to monitor the bandwidth of 1 particular guest from
> inside that guest?
> Basically, I want to run vnstat inside a guest monitoring only the
> traffic that guest generates. Is that possible somehow?
Received on Wed Dec 24 00:08:20 2014