Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command to clear access-list counter.? 1

Status
Not open for further replies.

StraightL

MIS
Jun 7, 2004
13
0
0
AU
to clear counter of "sh access-list"

Is there command to do it ..
thanks a lot

---------
Hardware: PIX-515,
Cisco PIX Firewall Version 6.2(2)

 
You got me there, StraightL. Only way I see to clear the counters are to remove the ACL's and then adding them again. Don't use the clear access-list command ;)

A firm beleiver of "Keep it Simple" philosophy
Cheers
/T
 
I believe rebooting the device will clear the counters.

Computer/Network Technician
CCNA
 
lol.. never even concidered that :)

A firm beleiver of "Keep it Simple" philosophy
Cheers
/T
 
clear interface command clears all interface statistics except the number of input bytes
 
vpn# clear interface
Type help or '?' for a list of available commands.
vpn# clear interface ?
Type help or '?' for a list of available commands.
vpn# clear outside
Type help or '?' for a list of available commands.
vpn# clear interface outside
Type help or '?' for a list of available commands.

Computer/Network Technician
CCNA
 
Try it from config mode. You can issue ALL commands from config mode
 
I am troubleshooting traffic passing through a router right now... I didn't mean clear interface as it only clears the the interface counters. My bad :(

The command needed is:

clear access-list <acl-name> counters


Sorry about my mistake guys...
 
vpn# conf t
vpn(config)# clear interface
vpn(config)# exit
vpn# sho access-list Inside_Out
[...]
access-list Inside_Out line 9 deny ip any host 65.205.8.58 (hitcnt=4710)
access-list Inside_Out line 10 deny ip any host 65.205.8.20 (hitcnt=5161)
access-list Inside_Out line 11 deny ip any host 213.86.246.154 (hitcnt=1221)
[...]
vpn#

Computer/Network Technician
CCNA
 
cool

so don't forget the word COUNTERS haha....

Computer/Network Technician
CCNA
 
I have cleared them by adding another acl or modify an acl on the interface.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top