clear access-list hitcounts
Syntax
clear access-list hitcounts { all | [{ip|ipv6|mac} <ACL-NAME>] [interface <IF-NAME>|
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, ormac
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
Specifies the traffic direction. The out (egress) direction is not available for VLANs.
in|out
Selects the traffic direction on which the ACL is applied.
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
On the 6400 Switch Series, interface identification differs.
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