Collecting/clearing traffic statistics – H3C Technologies H3C WX3000 Series Unified Switches User Manual

Page 371

Advertising
background image

37-27

6 : sp 0

7 : sp 0

Collecting/Clearing Traffic Statistics

Refer to

Flow-based Traffic Accounting

for information about traffic accounting.

Configuration prerequisites

The ACL rules for traffic classification are defined. Refer to ACL in H3C WX3000 Series Unified

Switches Switching Engine Configuration Guide

for information about defining ACL rules.

Configuration procedure

You can collect traffic statistics or clear traffic statistics on all the packets matching specific ACL rules, or
on packets that match specific ACL rules and are of a VLAN, of a port group, or pass a port.

Follow these steps to collect traffic statistics on all the packets matching specific ACL rules:

To do…

Use the command…

Remarks

Enter system view

system-view

Collect the statistics on the packets
matching specific ACL rules

traffic-statistic

inbound acl-rule

Required

Clear the statistics on the packets
matching specific ACL rules

reset traffic-statistic

inbound

acl-rule

Optional

Follow these steps to collect traffic statistics on packets that are of a VLAN and match specific ACL
rules:

To do…

Use the command…

Remarks

Enter system view

system-view

Collect the statistics on the packets
matching specific ACL rules

traffic-statistic vlan vlan-id

inbound

acl-rule

Required

Clear the statistics on the packets
matching specific ACL rules

reset traffic-statistic vlan vlan-id

inbound

acl-rule

Optional

Follow these steps to collect traffic statistics on packets that are of a port group and match specific ACL
rules:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter port group view

port-group

group-id

Collect the statistics on the packets
matching specific ACL rules

traffic-statistic

inbound acl-rule

Required

Clear the statistics on the packets
matching specific ACL rules

reset traffic-statistic

inbound

acl-rule

Optional

Follow these steps to collect traffic statistics on packets passing a port and matching specific ACL rules:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter Ethernet port view

interface

interface-type interface-number

Advertising