pnetstat
This utility outputs traffic usage statistics for virtual machines. It has the following syntax:
pnetstat [-4|-6] [-v <
ID
>] [-c <
class
>] [-a] [-r]
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 for virtual machines that were started at least once.
The utility accepts the following options:
-4|-6
|
Display IPv4 or IPv6 statistics for virtual machines. By default, the total amount of IPv4 and IPv6 statistics is shown.
|
-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.
|
|