Product:
Search Type:

How do I get amount of network traffic consumed by a VE?

Article ID: 1226 
Last Review: Aug,03 2007
APPLIES TO:
  • Parallels Virtuozzo Containers for Linux

RESOLUTION

If you have Service VE running on a hardware node then you may use 'vza_ve_stat' utility to obtain amount of network traffic consumed by any VE on a node.

Usage:
vza_ve_stat user@host veid start_time [end_time]

where:
user - vzagent0
host - IP address of Service VE on a hardware node
veid - ID of VE in question
start_time and end_time define period you want to get traffic for.

Please note that start_time and end_time should be entered in the following format: 2000-01-01T12:00:00+0400

You may need to install 'perl-XML-Parser' package (f.e. using 'yum install perl-XML-Parser' command on a server) if you get "Can't locate XML/Parser.pm in @INC" error.

For example, to obtain traffic of VE #101 for the period from 01 Jan 2006 up to the current moment the command would be:
# vza_ve_stat vzagent0@10.55.40.1 101 2006-01-01T00:00:00+0000
vzagent0@10.55.40.1's password:
bytes in = 69447065 packets in = 385929 bytes out = 755800760 packets out = 649168


You may also get information about network traffic using VZMC:
1. double click on needed VE
2. in the opened window go to Monitor > Traffic Summary
3. Choose needed period of time and click 'Download'

The same can be done in VZCC (Virtuozzo Control Center):
1. Open VZCC
2. Go to Infrastructure manager > Virtual Private Servers > choose needed VE > Logs > Traffic Log



 

 

Keywords: vza_ve_stat VE network traffic bandwidth VZMC VZCC

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields