clear policy hitcounts

Syntax

clear policy hitcounts { all | [] [[interface[in|routed-in]] | [vlan[in]]] | global }

Description

Clears the policy hit count statistics.

Command context

Operator (>) or Manager (#)

Parameters

all

Selects all policies.

Specifies the policy name.

interface

Specifies the interface name.

vlan

Specifies the VLAN.

in

Specifies the inbound (ingress) traffic direction.

routed-in

选择交通方向的路由。不应用cable to a policy applied to a VLAN.

global

Selects the globally applied policy.

Authority

Operators or Administrators or local user group members with execution rights for this command. Operators can execute this command from the operator context (>) only.

Examples

Clearing policy hit counts and then showing the policy hit counts (statistics):
switch#clear policy hitcounts my_policy int 1/1/1 inswitch#show policy hitcounts my_policyStatistics 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 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.
Clearing the globally applied policy hit counts and then showing the global policy hit counts (statistics):
switch#clear policy hitcounts globalswitch#show policy hitcounts globalStatistics 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.
Clearing hit counts for policyMY_IPv6_Policyapplied to VLAN 10 (ingress):
switch#clear policy hitcounts My_IPv6_Policy vlan 10 in
Clearing hit counts for all policies:
switch#clear policy hitcounts all