clear access-list hitcounts

Syntax

clear access-list hitcounts { all | [{ip|ipv6|mac} <ACL-NAME>] [interface <IFNAME>|
                            vlan <VLAN-ID>] [in|out] }

Description

Clears the hit counts for ACLs with ACEs that include the count keyword.

Command context

Operator (>) or Manager (#)

Parameters

all

Selects all ACLs.

[ip|ipv6|mac]

Specifies the ACL type: ip for IPv4, ipv6 for IPv6, or mac for MAC.

<ACL-NAME>

Specifies the ACL name.

[interface <IFNAME>]

Specifies the interface name (port or LAG).

[vlan <VLAN-ID>]

Specifies the VLAN.

[in|out]

Specifies the traffic direction. The out (egress) direction is not available for VLANs.

Authority

Operators or Administrators. Users without administrator authority can execute this command from the operator context (>) only.

Examples

Clearing the hit counts for MY_ACL on port 1/1/1 in the inbound (ingress) direction:

switch# clear access-list hitcounts ip MY_ACL interface 1/1/1 in

Clearing the hit counts for MY_ACL on LAG 10 in the inbound (ingress) direction:

switch# clear access-list hitcounts ip MY_ACL interface lag10 in

Clearing the hit counts for My_ip_ACL on VLAN 10 in the inbound (ingress) direction:

switch# clear access-list hitcounts ip My_ip_ACL vlan 10 in

Clearing the hit counts for all ACLs:

switch# clear access-list hitcounts all