Ian P. Christian wrote: > 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? yep. if you want non-resetable counters then add iptables rules in VE0 for VE IP addresses. And then read these statistics via iptables -L -v
Thanks, Kirill _______________________________________________ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users