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.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s