clear access-list hitcounts

Syntax

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

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 <IF-NAME>

Specifies the interface name (port or LAG).

vlan <VLAN-ID>

Specifies the VLAN.

in|out

Selects the traffic direction on which the ACL is applied.

  • in selects the inbound (ingress) traffic direction.

  • out (not applicable to VLANs) selects the outbound (egress) traffic direction. Only for IPv4 ACLs applied to route-only ports. Not available for ACLs applied to either IPv4 bridged ports or IPv6 ports, or for MAC ACLs applied to ports or VLANS.

routed-in
Selects the routed traffic direction on which the ACL is applied.
NOTE:

This is only available for IPv4 and IPv6 ACLs applied to interface VLANs.

  • routed-in selects the routed inbound (routed ingress) traffic direction.

Authority

Operators or Administrators or local user group members with execution rights for this command. Operators can execute this command from the operator context (>) only.

Examples

Clearing the hit counts for My_ip_ACL applied to port 1/1/2 (egress):

switch# clear access-list hitcounts ip My_ip_ACL interface 1/1/2 out

Clearing the hit counts for My_ip_ACL applied to VLAN 10 (ingress):

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