Huawei S53/S93 traffic policy statistics

This example shows how to match and count pvst+ packets in vlan 299 on certain interface.

traffic classifier pvst-bpdu-vlan299 operator and 
 if-match destination-mac 0100-0CCC-CCCD
 if-match vlan-id 299
traffic behavior pvst-bpdu-vlan299
 statistic enable 
traffic policy pvst-bpdu-vlan299
 classifier pvst-bpdu-vlan299 behavior pvst-bpdu-vlan299
int g2/0/30
 traffic-policy pvst-bpdu-vlan299 inbound

Display and clear statistics:

reset traffic policy statistics interface GigabitEthernet2/0/30 inbound
disp traffic policy statistics interface GigabitEthernet2/0/30 inbound

Reset command can be issued only from user-view.

Leave a comment