Previous page

Next page

Locate page in Contents

Print this page

vznetstat

This utility outputs traffic usage statistics for Containers. It has the following syntax:

vznetstat [-4|-6] [-v < ID >] [-c < class >] [-a] [-r]

The utility displays input and output traffic for Containers for each defined network class, in bytes. The network classes are described in the /etc/vz/conf/networks_classes file. vznetstat displays statistics only on Containers that were started at least once.

The utility accepts the following options:

-4|-6

Display IPv4 or IPv6 statistics for Containers. By default, the total amount of IPv4 and IPv6 statistics is shown.

-v < ID >

Display statistics for the specified Container. Multiple –v options can be given to a single vznetstat invocation.

-c < class >

Display statistics for the < class > class only.

-a

Display statistics for all classes.

-r

Rounds down the statistics results, which is shown in bytes by default. In this case, the statistics is displayed in the following units of measurement, depending on the amount of traffic:

  • K(b) —kilobytes
  • M(b) —megabytes
  • G(b) —gigabytes

-h, -help

Display the utility usage information.