clear access-list counter

clear access-list {dynamic} counter {countername} {any | ports port_list | vlan vlan_name} {ingress | egress}

Description

Clears the specified access list counters.

Syntax Description

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).

Default

The default direction is ingress; the default ACL type is non-dynamic.

Usage Guidelines

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.

Example

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

History

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.

Platform Availability

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.