cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
55141
Views
20
Helpful
4
Replies

command to clear ACL hit count and interface stats

afniwan
Level 1
Level 1

Hi,

Does anyone know of a command to clear the HITCOUNT on an ACL list and a command to clear the counters on an interface for the PIX? I can't seem to find this anywhere. Any help would be appreciated. Thanks.

Jeff

1 Accepted Solution

Accepted Solutions

jmia
Level 7
Level 7

Hi,

Try command:

> clear access-list counters

This clears the counters shown by the show access-list command.

To clear counters on an interface, go into config mode and issue this command: clear int ethernet0

(You must be in config mode for this command to work.)

To set speed/duplex, again go into config mode and issue this command: interface ethernet0 100full

Also, the following URL might be of interest...

http://www.cisco.com/en/US/products/sw/secursw/ps2120/products_configuration_guide_chapter09186a0080172786.html#1112250

Hope this helps - Thanks, Jay

View solution in original post

4 Replies 4

mathia5
Level 1
Level 1

to clear the interface counters use

clear int ethx

On ASA version 9.0 use

clear access-list (access-list/group-name - ie. dmz_in,inside_in etc) counters
 

jmia
Level 7
Level 7

Hi,

Try command:

> clear access-list counters

This clears the counters shown by the show access-list command.

To clear counters on an interface, go into config mode and issue this command: clear int ethernet0

(You must be in config mode for this command to work.)

To set speed/duplex, again go into config mode and issue this command: interface ethernet0 100full

Also, the following URL might be of interest...

http://www.cisco.com/en/US/products/sw/secursw/ps2120/products_configuration_guide_chapter09186a0080172786.html#1112250

Hope this helps - Thanks, Jay

That worked! Thanks. Strange that you have to do it in config mode rather than priv. exec. (enable mode) and that is what I was doing wrong. Have a good one!

Jeff