clear access-list ipv4
To clear IPv4 access list counters, use the clear access-list ipv4 command in XR EXEC mode.
clear access-list ipv4 access-list-name hardware {clear access-list ipv4 access-list-name hardware { ingress | egress } [ interface interface-path-id ] [ sequence sequence-number ] [ location node-id] }
Syntax Description
access-list-name |
Name of a particular IPv4 access list. The name cannot contain a spaces or quotation marks, but can include numbers. |
||
sequence-number |
(Optional) Specific sequence number with which counters are cleared for an access list. Range is 1 to 2147483644. |
||
ingress |
Specifies an inbound direction. |
||
egress |
Specifies an outbound direction. |
||
interface-path-id |
Physical interface or virtual interface.
For more information about the syntax for the router, use the question mark (?) online help function. |
||
location node-id |
(Optional) Clears hardware resource counters from the designated node. The node-id argument is entered in the rack/slot/module notation. |
Command Default
The default clears the specified IPv4 access list.
Command Modes
XR EXEC modeCommand History
Release |
Modification |
---|---|
Release 7.0.12 |
This command was introduced. |
Usage Guidelines
Use the clear access-list ipv4 command to clear counters for a specified configured access list. Use a sequence number to clear counters for an access list with a specific sequence number.
Use an asterisk ( *) in place of the access-list-name argument to clear all access lists.
Task ID
Task ID |
Operations |
---|---|
basic-services |
read, write |
acl |
read, write |
bgp |
read, write, execute |
Examples
In the following example, counters for an access list named marketing are cleared:
Router# show access-lists ipv4 marketing hardware ingress location 0/RP0/CPU0
ipv4 access-list marketing
10 permit ipv4 192.168.34.0 0.0.0.255 any
20 permit ipv4 172.16.0.0 0.0.255.255 any
30 deny tcp host 172.16.0.0 eq 2330 host 192.168.202.203 (23345 matches)
Router# clear access-list ipv4 marketing hardware ingress location 0/RP0/CPU0