clear policy hitcounts

Syntax

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

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.

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