monitor traffic-statistics vsi

Function

The monitor traffic-statistics vsi command monitors the traffic statistics of a specified VSI or VSI peer.

Format

monitor traffic-statistics vsi vsiName [ peer peerIp [ negotiation-vc-id pwIdValue | ldp129 | remote-site remoteSiteId ] ] [ [ interval interval-value ] [ times { times-value | infinity } ] | [ times { times-value | infinity } ] [ interval interval-value ] ]

Parameters

Parameter Description Value
peer peerIp

Specifies a peer IP address.

The value is in dotted decimal notation.

negotiation-vc-id pwIdValue

Specifies a VC ID. VC ID negotiation is usually used when both ends need to communicate but their VSI IDs are different.

vc-id must be different from the IDs of other local VSIs or the VSI ID specified using negotiate-vc-id. The value is a decimal integer ranging from 1 to 4294967295.

ldp129

Specifies the LDP 129 signaling mode.

-

remote-site remoteSiteId

Specifies the remote site ID.

The value is an integer ranging from 0 to 65534.

interval interval-value

Specifies an interval at which VPWS traffic statistics are displayed.

The value is an integer ranging from 2 to 600. The default value is 10.

times times-value

Specifies the number of times that VPWS traffic statistics are to be displayed.

The value is an integer ranging from 1 to 999. The default value is 5.

infinity

Displays VPWS traffic statistics for infinite times.

-

vsi vsiName

Specifies a VSI name.

The value is a string of 1 to 31 characters.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
l2vpn read

Usage Guidelines

Usage Scenario

To check the traffic statistics of a specific VSI or VSI peer, run the display traffic-statistics vsi command:

  • If the peer peer-address parameter is specified, the command displays the traffic statistics of the specified VSI peer.
  • If the peer peer-address parameter is not specified, the command displays the traffic statistics of all VSI peers.
  • If the ldp129 parameter is specified, the command displays the traffic statistics of BGP AD VPLS PWs in the VSI with the specified VSI name.

    To monitor the traffic statistics of a specified VSI or VSI peer continuously within a certain period, run the monitor traffic-statistics l2vpn qos pw command. After this configuration is performed, the traffic statistics of a specified VSI or VSI peer are displayed at a specified interval for a specified number of times.

Example

# Display traffic statistics about the VSI peer at 2.2.2.2 at an interval of 2s for twice.
<HUAWEI> monitor traffic-statistics vsi 1 peer 2.2.2.2 interval 2 times 2
Display statistics of the pw at the interval of 2 seconds for up to 2 times. Press Ctrl + C to stop.
  0 seconds left
Times 1
vsi-name: 1
Peer-address: 2.2.2.2
Negotiation-vc-id: 1
Statistics last cleared: never
Last 300 seconds input rate : 1 bytes/sec, 1 packets/sec
Last 300 seconds output rate: 1 bytes/sec, 1 packets/sec
Input: 1 bytes, 1 packets
Output: 1 bytes, 1 packets

  0 seconds left
Times 2
vsi-name: 1
Peer-address: 2.2.2.2
Negotiation-vc-id: 1
Statistics last cleared: never
Last 300 seconds input rate : 1 bytes/sec, 1 packets/sec
Last 300 seconds output rate: 1 bytes/sec, 1 packets/sec
Input: 1 bytes, 1 packets
Output: 1 bytes, 1 packets
Table 1 Description of the monitor traffic-statistics vsi command output
Item Description
Statistics last cleared

Last time when traffic statistics were cleared.

Last 300 seconds input rate

Packet input rate in the last 300 seconds.

Last 300 seconds output rate

Packet output rate in the last 300 seconds.

packets

Total number of packets.

vsi-name

Name of the VSI for which traffic statistics are displayed.

Peer-address

Peer IP address of a PW.

Negotiation-vc-id

PW ID.

bytes

Total number of bytes.

Input

Statistics about packets received by the VSI:

  • Unicast: indicates the number of unicast packets. This field is displayed only when the traffic-statistics packet-type enable command is run.
  • Multicast: indicates the number of multicast packets. This field is displayed only when the traffic-statistics packet-type enable command is run.
  • Broadcast: indicates the number of broadcast packets. This field is displayed only when the traffic-statistics packet-type enable command is run.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >