Clears the specified access list counters.
dynamic | Specifies that the counter is from a dynamic ACL. |
countername | Specifies the ACL counter to clear. |
any | Specifies the wildcard ACL. |
port_list | Specifies to clear the counters on these ports. |
vlan_name | Specifies to clear the counters on the VLAN. |
ingress | Clear the ACL counter for packets entering the switch on this interface. |
egress | Clear the ACL counter for packets leaving the switch from this interface (BlackDiamond X8 series switches, BlackDiamond 8000 c-, xl-, and xm-series modules, E4G-200 and E4G-400 switches, and Summit X460, X460-G2, X480, X670, X670-G2, and X770 series switches only). |
The default direction is ingress; the default ACL type is non-dynamic.
Use this command to clear the ACL counters. If you do not specify an interface, or the any option, you will clear all the counters.
The following example clears all the counters of the ACL on port 2:1:
clear access-list counter port 2:1
The following example clears the counter counter2 of the ACL on port 2:1
clear access-list counter counter2 port 2:1
This command was first available in ExtremeXOS 10.1.
The vlan option was first available in ExtremeXOS 11.0.
The egress and dynamic options were first available in ExtremeXOS 11.3.
This command is available on all platforms.
The egress option is available on BlackDiamond X8 series switches, BlackDiamond 8000 c-, xl-, and xm-series modules, the E4G-200 and E4G-400 switches, and Summit X460, X460-G2, X480, X670, X670-G2, and X770 switches only.