To clear the counters of an access list, use the clear access-list counters EXEC command.
clear access-list counters {access-list-number | name}
access-list-number  Access list number of the access list for which to clear the counters.
name  Name of an IP access list. The name cannot contain a space or quotation mark, and must begin with an alphabetic character to avoid ambiguity with numbered access lists.
EXEC
Release | Modification | 11.0 | This command was introduced. |
---|
Some access lists keep counters that count the number of packets that pass each line of an access list. The show access-lists command displays the counters as a number of matches. Use the clear access-list counters command to restart the counters for a particular access list to 0.
The following example clears the counters for access list 101:
clear access-list counters 101
Command | Description |
---|---|
show access-lists | Displays the contents of current IP and rate-limit access lists. |
Printed for apswan@ctr.ap.nic.in on Wed Mar 5 22:32:57 PST 2003
All material in this document copyright 2000 Cisco Systems, Inc. All rights reserved. No material may be reproduced or distributed without written permission of Cisco Systems, Inc.