The display traffic-statistics vsi hard-pipe command displays hard pipe traffic statistics for all PWs in a specified VSI.
The monitor traffic-statistics vsi hard-pipe command monitor hard pipe traffic statistics for all PWs in a specified VSI.
display traffic-statistics vsi vsi-name hard-pipe [ peer peer-address [ negotiation-vc-id vc-id ] ]
monitor traffic-statistics vsi vsi-name hard-pipe [ peer peer-address [ negotiation-vc-id vc-id ] ] [ [ interval interval ] [ times { times-value | infinity } ] | [ times { times-value | infinity } ] [ interval interval ] ]
Parameter | Description | Value |
---|---|---|
peer peer-address |
Specifies the IPv4 address of a peer. |
The value is in dotted decimal notation. |
negotiation-vc-id vc-id |
Specifies the unique identifier of a VC. A VC ID is used when both ends with different VSI IDs need to communicate. |
The value is an integer ranging from 1 to 4294967295. |
vsi vsi-name |
Specifies the name of a VSI. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
interval interval |
Specifies an interval at which VPWS QoS traffic statistics are displayed. |
The value is an integer ranging from 2 to 600, in seconds. The default value is 10. |
times times-value |
Specifies the number of times that VPWS QoS traffic statistics are to be displayed. |
The value is an integer ranging from 1 to 999. The default value is 5. |
infinity |
Displays VPWS QoS traffic statistics for infinite. |
- |
Usage Scenario
For static PWs that use LDP as the signaling protocol in a VSI, after the hard pipe capability is enabled for the static PWs, you can run the display traffic-statistics vsi hard-pipe command to view hard pipe traffic statistics. For PWs using the other signaling type, the hard pipe configuration is not supported, and no hard pipe traffic statistics are displayed.
To monitor hard pipe traffic statistics continuously within a certain period, run the display traffic-statistics vsi hard-pipe command. After this configuration is performed, hard pipe traffic statistics are displayed at a specified interval for a specified number of times.<HUAWEI> monitor traffic-statistics vsi 1 hard-pipe peer 2.2.2.2 interval 2 times 2
Display hard-pipe 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: 10
Statistics last cleared: never
Last 300 seconds passed rate : 1 bytes/sec, 1 packets/sec
Last 300 seconds dropped rate: 1 bytes/sec, 1 packets/sec
Passed: 1 bytes, 1 packets
Dropped: 1 bytes, 1 packets
0 seconds left
Times 2
vsi-name: 1
Peer-address: 2.2.2.2
Negotiation-vc-id: 10
Statistics last cleared: never
Last 300 seconds passed rate : 1 bytes/sec, 1 packets/sec
Last 300 seconds dropped rate: 1 bytes/sec, 1 packets/sec
Passed: 1 bytes, 1 packets
Dropped: 1 bytes, 1 packets
<HUAWEI> display traffic-statistics vsi vsi1 hard-pipe
vsi-name: 1
Peer-address: 2.2.2.2
Negotiation-vc-id: 10
Statistics last cleared: never
Last 300 seconds passed rate : 1 bytes/sec, 1 packets/sec
Last 300 seconds dropped rate: 1 bytes/sec, 1 packets/sec
Passed: 1 bytes, 1 packets
Dropped: 1 bytes, 1 packets
Item | Description |
---|---|
Statistics last cleared | Last time when traffic statistics were cleared. never: Indicates that the traffic statistics were never cleared. |
Last 300 seconds passed rate | Average rates at which bytes and packets passed within the last 300s. |
Last 300 seconds dropped rate | Average rates at which bytes and packets were discarded within the last 300s. |
vsi-name | Name of the VSI whose traffic statistics are displayed. |
Peer-address | IP address of the PW peer. |
Negotiation-vc-id | Specifies the unique identifier of a VC. |
Passed | Number of forwarded packets, in packets and bytes, respectively. |
Dropped | Number of dropped packets, in packets and bytes, respectively. |