[Users] Logging traffic stats for VEs

Ian P. Christian pookey at pookey.co.uk
Wed May 9 13:58:33 EDT 2007


Thorsten Schifferdecker wrote:
> Hi Ian,
> 
> a) use the /proc/net/dev of your VE:
> 
> # vzctl exec <VEID> grep venet0 /proc/net/dev | cut -d":" -f2 | awk
> '{print $1"\n"$9}'
> 
> xxx
> xxx
> 
> b) or, VE has enabled sysfs:
> 
> # vzctl exec <VEID> cat /sys/class/net/venet0/statistics/{r,t}x_bytes

These would both be reset on a customer rebooting their VE wouldn't
they? Is there any way a user of a VE could manipulate the figures in
either of these places?


Thanks!

-- 
Ian P. Christian ~ http://pookey.co.uk

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://openvz.org/pipermail/users/attachments/20070509/e3623e8f/signature.bin


More information about the Users mailing list