OpenVZ Forum


Home » General » Support » View container devices on HN
View container devices on HN [message #34613] Wed, 21 January 2009 00:48 Go to next message
sspt is currently offline  sspt
Messages: 100
Registered: August 2006
Location: Portugal
Senior Member
I'm gathering the container's bandwidth by dumping the data:
vzctl exec CID cat /proc/net/dev

Is there any way I can access to that net device within the HN, without entering into the container?


http://static.openvz.org/userbars/openvz-user.png
Re: View container devices on HN [message #34636 is a reply to message #34613] Thu, 22 January 2009 16:36 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

Quote:


Is there any way I can access to that net device within the HN,



what doest it mean access to the net device?
Could you please describe in more detail what do you want to do?
Re: View container devices on HN [message #34638 is a reply to message #34636] Thu, 22 January 2009 17:09 Go to previous message
sspt is currently offline  sspt
Messages: 100
Registered: August 2006
Location: Portugal
Senior Member
Hi,
I've a script to gather the containers net usage, currently using the following:
vzctl exec CID cat /proc/net/dev

The problem
If the container is reaching it's privvmpages, kmemsize, etc, I won't be able to retreive the data, if the container is restarted in the meantime I won't be able to account the bandwidth usage.

Solution
If was able to access to it (container's /proc/net/dev) from the HN I would be able to gather the data even if the CID is out of resources


http://static.openvz.org/userbars/openvz-user.png
Previous Topic: [answered] Need to use libvzctl
Next Topic: ztdummy and zaptel help
Goto Forum:
  


Current Time: Wed Apr 24 17:46:48 GMT 2024

Total time taken to generate the page: 0.01970 seconds