clear prefix-list ipv4
To reset the hit count on an IP Version 4 (IPv4) prefix list, use the clear prefix-list ipv4 command in XR EXEC mode.
clear prefix-list ipv4 name [sequence-number]
Syntax Description
name |
Name of the prefix list from which the hit count is to be cleared. |
sequence-number |
(Optional) Sequence number of a prefix list. Range is 1 to 2147483646. |
Command Default
No default behavior or values
Command Modes
XR EXEC modeCommand History
Release |
Modification |
---|---|
Release 6.0 |
This command was introduced. |
Usage Guidelines
The hit count is a value indicating the number of matches to a specific prefix list entry. Use the clear prefix-list ipv4 command to clear counters for a specified configured prefix list.
Use the sequence-number argument to clear counters for a prefix list with a specific sequence number.
Task ID
Task ID |
Operations |
---|---|
acl |
read, write |
Examples
The following example displays IPv4 prefix lists, shows how to clear the counters for list3, then shows how to display the IPv4 prefix lists again, showing that counters are cleared for list3:
RP/0/RP0/CPU0:router# show prefix-list ipv4
ipv4 prefix-list list1
10 permit 172.18.30.154/16 (8 matches)
ipv4 prefix-list list2
20 deny 172.24.30.164/16 (12 matches)
ipv4 prefix-list list3
30 permit 172.19.31.154/16 (32 matches)
RP/0/RP0/CPU0:router# clear prefix-list ipv4 list3
RP/0/RP0/CPU0:router# show prefix-list ipv4
ipv4 prefix-list list1
10 permit 172.18.30.154/16 (8 matches)
ipv4 prefix-list list2
20 deny 172.24.30.164/16 (12 matches)
ipv4 prefix-list list3
30 permit 172.19.31.154/16