OpenVZ Forum


Home » General » Support » Get the bandwidth limit of a container from within it? (How to get the bandwidth limit of a container from within it?)
Get the bandwidth limit of a container from within it? [message #50699] Mon, 14 October 2013 16:05 Go to previous message
droidzone is currently offline  droidzone
Messages: 1
Registered: October 2013
Junior Member
I have designed a script to monitor multiple openvz containers and report data to a central server for monitoring purpose. As a part of it, I am using the data from /proc/net/dev to report the bandwidth already used. To report data of usage as a percent, I need to get the total alloted bandwidth limit of a container from within it. Is there a way to get this data?

Currently I use the data inbound from:

grep venet0 /proc/net/dev | cut -f2 -d: | awk '{printf"%s",$1}'
 
Read Message
Read Message
Read Message
Previous Topic: NUMAD daemon and OpenVZ
Next Topic: Host and Guest connected, but guest has no LAN access.
Goto Forum:
  


Current Time: Sat Nov 09 02:18:35 GMT 2024

Total time taken to generate the page: 0.03275 seconds