OpenVZ Forum


Home » Mailing lists » Users » Logging traffic stats for VEs
Re: Logging traffic stats for VEs [message #12795 is a reply to message #12794] Wed, 09 May 2007 17:58 Go to previous messageGo to previous message
pookey is currently offline  pookey
Messages: 12
Registered: March 2007
Junior Member
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
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: VEs and rebooting
Next Topic: About many connections in SMTP
Goto Forum:
  


Current Time: Mon Aug 12 07:15:23 GMT 2024

Total time taken to generate the page: 0.02891 seconds