clear policy hitcounts

Syntax

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

Description

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

Command context

Operator (>) or Manager (#)

Parameters

all

Specifies the policy to clear hit counts for all policies.

<POLICY-NAME>

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.

in

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

Authority

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

Examples

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