Previous page

Next page

Locate page in Contents

Print this page

Viewing Network Traffic Statistics

In Parallels Server Bare Metal, you can view the current network traffic statistics using the following utilities:

  • vznetstat to view the statistics for Containers
  • pnetstat to view the statistics for virtual machines

Viewing network statistics for Containers

To view the network statistics for Containers, execute the vznetstat utility:

# vznetstat

CTID Net.Class Input(bytes) Input(pkts) Output(bytes) Output(pkts)

101 1 2202448 19527 9081832 19584

101 2 0 0 0 0

102 0 0 0 0 0

102 1 0 0 0 0

In this example, the traffic statistics for two Containers with IDs 101 and 102 is shown. Keep in mind that the vznetstat utility displays statistics only on Containers that were started at least once. So, some of your Containers may be not listed in the output.

The command output displays the following information:

  • Around 2 MB of data were uploaded to Container 101 and about 9 MB were downloaded from it.
  • All the traffic was exchanged with servers from class 1 networks.
  • Container 102 has not yet exchanged any traffic with any network.

You can also view the network traffic statistics for a particular Container:

# vznetstat -v 101

CTID Net.Class Input(bytes) Input(pkts) Output(bytes) Output(pkts)

101 1 2202448 19527 9081832 19584

101 2 0 0 0 0

The command above displays the network statistics for Container 101.

Viewing network statistics for virtual machines

To view the network traffic statistics for virtual machines, use the pnetstat utility:

# pnetstat

UUID Net.Class Input(bytes) Input(pkts) Output(bytes) Output(pkts)

5747d4a9-d4ed... 0 0 0 0 0

5747d4a9-d4ed... 1 0 0 0 0

The pnetstat output is the same as the one produced by the vznetstat utility, except for the first output column that displays virtual machine IDs. If you do not remember which ID is assigned to which virtual machine, run the pctl list -i command.

Note: In the current version of Parallels Server Bare Metal, you cannot view network traffic statistics for individual virtual machines.