Previous page

Next page

Locate page in Contents

Print this page

pnetstat

This utility outputs traffic usage statistics for Containers.

Syntax

pnetstat [ -v <CT_ID> ] [ -c <class> ] [ -a ] [ -r ] [ -h ] [ -t <ct | vm | all> ]

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. pnetstat displays statistics only on Containers that were started at least once.

Options

Name

Description

-v <ID>

Display statistics for the specified Container. Multiple –v options can be given to a single pnetstat 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

-t <ct | vm | all>

Display statistics for

  • Containers only: ct
  • virtual machines only: vm
  • both Containers and virtual machines: all

-h, -help

Display the utility usage information.