clear policy hitcounts


clear policy hitcounts {all | <POLICY-NAME> [interface <ID> [in]]}


Clears the policy hit counts for all policies or for a named policy.

Command context

Operator (>) or Manager (#)



Specifies the policy to clear hit counts for all policies.


Specifies the policy to clear hit counts for the named policy.

interface <ID>

Specifies the clear hit counts for the interface that the policy is applied to. Enter the name or ID of the interface.


Specifies the operation on policies to be applied to inbound (ingress) traffic.


Operators or Administrators. Users without administrator authority can execute this command from the operator context (>) only.


Clearing hit counts for specified policy:

switch# clear policy hitcounts MY_POLICY interface 1/1/1 in
switch# show policy hitcounts MY_POLICY
Statistics for Policy MY_POLICY:
Interface 1/1/1* (in):
           Hit Count  Configuration
10 class ipv6 MY_CLASS1 action dscp af21 action drop
                   0  10 match any any any count
* policy statistics are shared among all applied interfaces
  use 'policy NAME copy' to create a uniquely-named policy