clear policy hitcounts


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


Clears the policy hit count statistics.

Command context

Operator (>) or Manager (#)



Selects all policies.


Specifies the policy name.

interface <IFNAME>

Specifies the interface name.

vlan <VLAN-ID>

Specifies the VLAN.


Specifies the inbound (ingress) traffic direction.


Selects the globally applied policy.


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


Clearing hit counts for policy MY_POLICY applied to interface 1/1/1:

switch# clear policy hitcounts MY_POLICY interface 1/1/1 in

Clearing hit counts for policy MY_IPv6_Policy applied to VLAN 1:

switch# clear policy hitcounts My_IPv6_Policy vlan 10 in

Clearing hit counts for all policies:

switch# clear policy hitcounts all

Clearing the globally applied policy:

switch# clear policy hitcounts global
switch# show policy hitcounts global
Statistics for Policy my_policy:
Global Policy:
           Hit Count  Configuration
10 class ipv6 my_class1 action mirror
                   0  10 match any any any count
* policy statistics are shared among each context type (interface, VLAN).
  For routed ingress, they are only shared within the same VRF.
  Use 'policy NAME copy' to create a new policy for separate statistics.