Re: [Users] Proc statistic interface for venet
This is how I get traffic data... [root@xc7 ubc]# grep venet0 /proc/net/dev venet0:205043590448 1030583416000 0 0 0 199946969183 10428423760 14520 0 0 0 [root@xc7 ubc]# Dietmar Maurer wrote: Is there some interface to get statistics for venet device? I found and old patch: http://forum.openvz.org/index.php?t=msgth=459goto=2581#msg_2581 but seems that this is not included in current 2.6.32 kernel? - Dietmar ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
RE: [Users] Proc statistic interface for venet
Well, I want statistics for each container. /proc/net/dev only shows overall traffic? - Dietmar -Original Message- From: users-boun...@openvz.org [mailto:users-boun...@openvz.org] On Behalf Of Gary Wallis Sent: Donnerstag, 06. Oktober 2011 17:30 To: users@openvz.org Subject: Re: [Users] Proc statistic interface for venet This is how I get traffic data... [root@xc7 ubc]# grep venet0 /proc/net/dev venet0:205043590448 1030583416000 0 0 0 199946969183 10428423760 14520 0 0 0 [root@xc7 ubc]# Dietmar Maurer wrote: Is there some interface to get statistics for venet device? I found and old patch: http://forum.openvz.org/index.php?t=msgth=459goto=2581#msg_2581 but seems that this is not included in current 2.6.32 kernel? - Dietmar ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Proc statistic interface for venet
Each container has one also...for example for VEID=17801 [root@xc7 ubc]# grep venet /vz/root/17801/proc/net/dev venet0:205802061231 1034310182000 0 0 0 200705808251 10466085270 1452 Dietmar Maurer wrote: Well, I want statistics for each container. /proc/net/dev only shows overall traffic? - Dietmar ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
RE: [Users] Proc statistic interface for venet
Each container has one also...for example for VEID=17801 Oh, so I do not need to call 'vzctl exec' to get that data? - Dietmar ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
Re: [Users] Proc statistic interface for venet
Dietmar Maurer wrote: Each container has one also...for example for VEID=17801 Oh, so I do not need to call 'vzctl exec' to get that data? - Dietmar ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users Why? Save time and effort just get it directly from the hardware node as my example shows using /vz/root/VEID/proc/net/dev. We use fopen() in C to read these files in the unxsVZ OpenVZ management system, but you can read it from BASH or Perl with a little more overhead. ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users
RE: [Users] Proc statistic interface for venet
Why? Save time and effort just get it directly from the hardware node as my example shows using /vz/root/VEID/proc/net/dev. Well, that file is simply not there on my system (latest openvz 2.6.32 kernel). I can only see it inside the VM. So what kernel do you use exactly? - Dietmar ___ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users