clear counters access-list

Clears access-control list (ACL) statistical information for a given network protocol and inbound or outbound direction.

Syntax

clear counters access-list interface { ethernet slot / port | port-channel index | vlan vlan-id } { in | out }
clear counters access-list interface management mgmt-id in
clear counters access-list interface ve vlan-id { in | out }
clear counters access-list global-subnet-broadcast ip acl-name
clear counters access-list { ip | ipv6 } [ acl-name { in | out } ]
clear counters access-list subnet-broadcast ip [ acl-name [ interface { ethernet slot / port | ve vlan-id } ] ]
clear counters access-list uda [ acl-name in ]
clear counters access-list { ip | ipv6 } acl-name interface { ethernet slot / port | port-channel index | ve vlan-id } { in | out }
clear counters access-list { ip | ipv6 } acl-name interface management mgmt-id in
clear counters access-list uda acl-name interface { ethernet slot / port | port-channel index } in
clear counters access-list receive { ip | ipv6 } [ acl-name ]
clear counters access-list mac [ acl-name { in | out } ]
clear counters access-list mac acl-name interface { ethernet slot / port | port-channel index | vlan vlan-id } { in | out }

Parameters

interface
Specifies an interface.
ethernet
Specifies a physical Ethernet interface.
slot
Specifies a valid slot number. For devices that do not support linecards, specify 0.
port
Specifies a valid port number.
global-subnet-broadcast ip
( SLX 9540 and SLX 9640 devices) Specifies an IP broadcast ACL (bACL) applied at device level.
management mgmt-id
Specifies the management interface. The only supported value is 0.
port-channel index
Specifies a port-channel.
in
Specifies incoming binding direction.
out
Specifies outgoing binding direction.
subnet-broadcast ip
( SLX 9540 and SLX 9640 devices) Specifies an IP broadcast ACL (bACL) applied at physical-interface or VE level.
vlan vlan-id
(Available only on Layer 2) Specifies a VLAN.
ve vlan-id
(Available only on Layer 3) Specifies a virtual Ethernet (VE) interface.
ip
Specifies the IPv4 Layer 3 network protocol.
ipv6
Specifies the IPv6 Layer 3 network protocol.
mac
Specifies the medium access control (MAC) Layer 2 network protocol.
uda
(Not currently supported) Specifies user-defined ACLs, which are supported only under Network Packet Broker (NPB).
receive
Specifies an ACL that applies to device recieve-path traffic.
acl-name
Specifies the ACL name. To clear statistics on all counters of an ACL-type, do not specify acl-name.

Modes

Privileged EXEC mode

Usage Guidelines

You can clear all statistics for a specified ACL or only for that ACL on a specified interface.

You can also clear statistical information for all ACLs bound to a specified Ethernet or management interface, a port-channnel, VLAN, or VE.

Examples

The following example clears ACL statistics on a specified Ethernet interface.
device# clear counters access-list interface ethernet 0/1
The following example clears ACL statistics for a specified MAC ACL on a specified Ethernet interface.
device# clear counters access-list mac MAC_ACL_1 interface ethernet 0/2
The following example clears ACL statistics for a specified MAC ACL on all interfaces on which this ACL is applied.
device# clear counters access-list mac MAC_ACL_1 
The following example clears ACL statistics for a specified IPv4 ACL on a specified interface.
device# clear counters access-list ip IP_ACL_1 interface ethernet 0/3
The following example clears ACL statistics for a specified IPv4 ACL on all interfaces on which it is applied.
device# clear counters access-list ip IP_ACL_1 
The following example clears incoming ACL statistics for a specified IPv6 ACL on a virtual Ethernet (VE) interface.
device# clear counters access-list ipv6 ip_acl_3 interface ve 10 in
The following example clears IPv6 receive-path ACL statistics.
device# clear counters access-list receive ipv6