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.

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 ExtremeSwitching X435, X440-G2, X450-G2, X460-G2, X465, X590, X620, X690, and X695 series switches.