The monitor traffic-statistics vsi command monitors the traffic statistics of a specified VSI or VSI peer.
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. |
Usage Scenario
To check the traffic statistics of a specific VSI or VSI peer, run the display traffic-statistics vsi command:
<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
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:
|