vznetstat − display network traffic statistics per CT.
vznetstat [-4|-6] [-v ctid] [-c class] [-a] [-r] [-h]
The utility displays incoming and outcoming traffic for Containers for each defined network class. The output is grouped by CT ID. The network classes are described in the /etc/sysconfig/vz-scripts/networks_classes file. If no options are specified the network statistics for all running Containers is printed.
Note that for the CT ID of 0, the traffic of the HS (the host server itself) is shown. The figures for HS does not include CT traffic.
-v ctid
Display statistics only for the CTs with the given ctid.
-c class
Display statistics only for the given network class.
-a |
Display all classes (16). | ||
-r |
Round off the statistics figures from bytes to K(b), M(b) or G(b). | ||
-h |
Print short usage information. | ||
-4 |
Display ipv4 statistics. | ||
-6 |
Display ipv6 statistics. |
Returns 0 upon success.
To display statistics for all CTs:
vznetstat
To display statistics for CTs 101 and 102 for network classes 1 and 2:
vznetstat -v 101 -v 102 -c 1 -c 2
networks_classes(5).
Copyright (c) 1999-2015 Parallels IP Holdings GmbH. All rights reserved.