1-22
acl-rule: ACL rules to be applied. This argument can be the combination of multiple ACLs. For more
information about this argument, refer to
Table 1-4 and Table 1-5.
Description
Use the reset traffic-statistic command to clear the statistics on packets matching specific ACL rules.
Related commands: traffic-statistic, display qos-interface traffic-statistic.
Examples
# Display the current traffic statistics of Ethernet 1/0/1.
<Sysname> display qos-interface Ethernet 1/0/1 traffic-statistic
Ethernet1/0/1: traffic-statistic
Inbound:
Matches: Acl 2008 rule 0 running
13775 packets inprofile
2061 packets outprofile
Matches: Acl 4008 rule 0 running
2606 packets inprofile
0 packet outprofile
# Clear the statistics about inbound packets matching ACL 2008 on Ethernet 1/0/1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] reset traffic-statistic inbound ip-group 2008
# Display the current traffic statistics of Ethernet 1/0/1.
[Sysname-Ethernet1/0/1] display qos-interface Ethernet 1/0/1 traffic-statistic
Ethernet1/0/1: traffic-statistic
Inbound:
Matches: Acl 2008 rule 0 running
0 packets inprofile
0 packet outprofile
Matches: Acl 4008 rule 0 running
2606 packets inprofile
0 packet outprofile
The output fields above show that the statistics about packets matching ACL 2008 have been cleared.
traffic-limit
Syntax
traffic-limit inbound acl-rule [ union-effect ] [ egress-port interface-type interface-number ]
target-rate [ burst-bucket burst-bucket-size ] [ exceed action ]
undo traffic-limit inbound acl-rule
View
Ethernet port view