pnetstat
This utility outputs traffic usage statistics for virtual machines.
Syntax
pnetstat
[
-v
<ID>
] [
-c
<class>
] [
-a
] [
-r
] [
-h
] [
-t
<
ct
|
vm
|
all
>]
The utility displays input and output traffic for virtual machines 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 virtual machines that were started at least once.
Options
Name
|
Description
|
-v
<ID>
|
Display statistics for the specified virtual machine. 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:
-
ct
— Containers only,
-
vm
— virtual machines only,
-
all
— both Container and virtual machines.
|
-h, -help
|
Display the utility usage information.
|
|