The display traffic-statistics l2vpn pw command displays traffic statistics about VPWS PWs.
The display traffic-statistics l2vpn qos pw command displays VPWS QoS traffic statistics.
The monitor traffic-statistics l2vpn qos pw command monitors VPWS QoS traffic statistics continuously.
display traffic-statistics l2vpn [ qos ] pw interface { interface-name | interface-type interface-number } [ secondary | bypass ]
monitor traffic-statistics l2vpn [ qos ] pw interface { interface-name | interface-type interface-number } [ secondary | bypass ] [ [ interval interval-value ] [ times { times-value | infinity } ] | [ times { times-value | infinity } ] [ interval interval-value ] ]
Parameter | Description | Value |
---|---|---|
interface interface-type interface-number |
Displays VPWS QoS traffic statistics on the specified interface. |
- |
secondary |
Displays VPWS QoS traffic statistics about the secondary VPWS PW. |
- |
bypass |
Displays VPWS QoS traffic statistics about the bypass VPWS PW. |
- |
interval interval-value |
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 times. |
- |
Usage Scenario
The system starts to collect VPWS PW traffic statistics after the function to collect VPWS PW traffic statistics is enabled. To view these traffic statistics for network monitoring or troubleshooting purposes, run the display traffic-statistics l2vpn pw command.
The system starts to collect VPWS PW traffic statistics after VPWS PW traffic statistics collection is enabled. You can run the display traffic-statistics l2vpn pw command to view these traffic statistics during network monitoring or troubleshooting. If VPWS QoS is also enabled, you can run the display traffic-statistics l2vpn qos pw command to view QoS traffic statistics about VPWS PWs. To monitor VPWS QoS traffic statistics continuously within a certain period, run the monitor traffic-statistics l2vpn qos pw command. After this configuration is performed, VPWS QoS traffic statistics are displayed at a specified interval for a specified number of times.Prerequisites
The primary VPWS PW and secondary or bypass VPWS PW have been configured on the specified interface, and the function to collect VPWS PW traffic statistics has been enabled.
The primary VPWS PW and secondary or bypass VPWS PW have been configured on the specified interface. VPWS QoS and VPWS PW traffic statistics collection have been enabled.Precautions
<HUAWEI> monitor traffic-statistics l2vpn qos pw interface gigabitethernet 0/1/0 interval 2 times 2 Display qos 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 Interface name : GigabitEthernet 0/1/0 Statistics last cleared : never Last 300 seconds QoS statistics rate : 0 bits/sec, 0 packets/sec QoS statistics output : 0 bytes, 0 packets PacketRate : Last 300 seconds packets rate(packets/sec) BitRate : Last 300 seconds bits rate(bits/sec) Passed statistics : Queue Packets Bytes PacketRate BitRate --------------------------------------------------- be 0 0 0 0 af1 0 0 0 0 af2 0 0 0 0 af3 0 0 0 0 af4 0 0 0 0 ef 0 0 0 0 cs6 0 0 0 0 cs7 0 0 0 0 --------------------------------------------------- Discarded traffic statistics : Queue Packets Bytes PacketRate BitRate --------------------------------------------------- be 0 0 0 0 af1 0 0 0 0 af2 0 0 0 0 af3 0 0 0 0 af4 0 0 0 0 ef 0 0 0 0 cs6 0 0 0 0 cs7 0 0 0 0 --------------------------------------------------- 0 seconds left Times 2 Interface name : GigabitEthernet 0/1/0 Statistics last cleared : never Last 300 seconds QoS statistics rate : 0 bits/sec, 0 packets/sec QoS statistics output : 0 bytes, 0 packets PacketRate : Last 300 seconds packets rate(packets/sec) BitRate : Last 300 seconds bits rate(bits/sec) Passed statistics : Queue Packets Bytes PacketRate BitRate --------------------------------------------------- be 0 0 0 0 af1 0 0 0 0 af2 0 0 0 0 af3 0 0 0 0 af4 0 0 0 0 ef 0 0 0 0 cs6 0 0 0 0 cs7 0 0 0 0 --------------------------------------------------- Discarded traffic statistics : Queue Packets Bytes PacketRate BitRate --------------------------------------------------- be 0 0 0 0 af1 0 0 0 0 af2 0 0 0 0 af3 0 0 0 0 af4 0 0 0 0 ef 0 0 0 0 cs6 0 0 0 0 cs7 0 0 0 0 ---------------------------------------------------
<HUAWEI> display traffic-statistics l2vpn pw interface gigabitethernet 0/1/0 Interface name : GigabitEthernet0/1/0 Statistics last cleared : never Last 300 seconds input rate : 0 bytes/sec, 0 packets/sec Last 300 seconds output rate: 0 bytes/sec, 0 packets/sec Input: 36 bytes, 18 packets Output: 36 bytes, 18 packets
<HUAWEI> display traffic-statistics l2vpn qos pw interface gigabitethernet 0/1/0 Interface name : GigabitEthernet 0/1/0 Statistics last cleared : never Last 300 seconds QoS statistics rate : 0 bits/sec, 0 packets/sec QoS statistics output : 0 bytes, 0 packets PacketRate : Last 300 seconds packets rate(packets/sec) BitRate : Last 300 seconds bits rate(bits/sec) Passed statistics : Queue Packets Bytes PacketRate BitRate --------------------------------------------------- be 0 0 0 0 af1 0 0 0 0 af2 0 0 0 0 af3 0 0 0 0 af4 0 0 0 0 ef 0 0 0 0 cs6 0 0 0 0 cs7 0 0 0 0 --------------------------------------------------- Discarded traffic statistics : Queue Packets Bytes PacketRate BitRate --------------------------------------------------- be 0 0 0 0 af1 0 0 0 0 af2 0 0 0 0 af3 0 0 0 0 af4 0 0 0 0 ef 0 0 0 0 cs6 0 0 0 0 cs7 0 0 0 0 ---------------------------------------------------
Item | Description |
---|---|
Interface name | Name of the interface where traffic statistics is collected. |
Statistics last cleared | Last time when statistics on the interface were cleared. The value never indicates that statistics on the interface have never been cleared. |
Last 300 seconds QoS statistics rate | Rates at which the interface receives bytes and packets within the last 300s. Each time the display traffic-statistics l2vpn qos pw command is run, the rates at which the interface receives bytes and packets within the last 300s are recalculated. |
Last 300 seconds input rate | Rates at which the interface receives bytes and packets within the last 300s. Each time the display traffic-statistics l2vpn pw command is run, the rates at which the interface receives bytes and packets within the last 300s are recalculated. |
Last 300 seconds output rate | Rates at which the interface sends bytes and packets within the last 300s. Each time the display traffic-statistics l2vpn pw command is run, the rates at which the interface sends bytes and packets within the last 300s are recalculated. |
QoS statistics output | Statistics about sent packets. |
PacketRate | Packet rate in the last 300 seconds, expressed in packets/s. |
BitRate | Bit rate in the last 300 seconds, expressed in bits/s. |
Passed statistics | Statistics about the forwarded traffic. |
Queue | Queue for traffic statistics collection. |
Packets | Number of sent packets. |
Bytes | Number of sent bytes. |
Discarded traffic statistics | Statistics about the dropped traffic. |
Input | Total numbers of bytes and packets received by a VPWS PW. |
Output | Total numbers of bytes and packets sent by a VPWS PW. |