clear policy hitcounts

Syntax

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

Description

Clears the policy hit count statistics.

Command context

Operator (>) or Manager (#)

Parameters

all

Selects all policies.

<POLICY-NAME>

Specifies the policy name.

interface <IFNAME>

Specifies the interface name.

vlan <VLAN-ID>

Specifies the VLAN.

in

Specifies the inbound (ingress) traffic direction.

global

Selects the globally applied policy.

Authority

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

Examples

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.