clear access-list hitcounts

Syntax

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

Description

Clears the hit counts. The command applies to ACEs with the count keyword in the specified ACL.

Command context

Operator (>) or Manager (#)

Parameters

all|ip|ipv6|mac

Selects all for operating on all ACLs or selects an ACL type to operate on (ip for IPv4, ipv6 for IPv6 or mac for MAC ACL).

<ACL-NAME>

Specifies an <ACL-NAME> to operate on the named ACL.

interface <ID>

Specifies the interface the ACL is applied to. And indicate <ID> as the name or ID of the interface.

in|out

Selects in for operating on ACLs applied to inbound (ingress) traffic or out for operating on ACLs applied to outbound (egress) traffic.

Authority

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

Examples

Clearing the hit counts for specified ACLs:

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