clear port-access policy hitcounts

Syntax

clear port-access policy <POLICY-NAME> hitcounts {port | client}

Description

Clears statistics and conform rate of policy applied on a port or client.

Command context

Operator (>) or Manager (#)

Parameters

<POLICY-NAME>

Specifies the policy name.

port

Clears the policy statistics matching policy name in the port mode.

client

Clears the policy statistics matching policy name in the client mode.

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:

switch# show port-access policy CLEARPASS-REDIRECT hitcounts port

Port Access Policy Hit-Counts Details:
======================================

Policy Name   : CLEARPASS-REDIRECT
Policy Type   : Local
Policy Status : Applied

SEQUENCE CLASS             TYPE ACTION                            CUR-RATE(kbps)
-------- ----------------- ---- --------------------------------- --------------
3        clearpass-web     ipv4 cir kbps 1024 cbs 2048 exceed
                                drop                              512

Class Name : dhcp
Class Type : ipv4

SEQUENCE    CLASS-ENTRY                                             HIT-COUNT
----------- ------------------------------------------------------- -----------
10          match icmp any any count                                0

Class Name : clearpass-web
Class Type : ipv4

SEQUENCE    CLASS-ENTRY                                             HIT-COUNT
----------- ------------------------------------------------------- -----------
10          match udp any any count                                 15101830

Class Name : web-traffic
Class Type : ipv4

SEQUENCE    CLASS-ENTRY                                             HIT-COUNT
----------- ------------------------------------------------------- -----------
10          match any any any count                                 0
20          match any 10.1.1.1 10.1.1.2 dscp AF11 count             0

Class Name : class6
Class Type : ipv6

SEQUENCE    CLASS-ENTRY                                             HIT-COUNT
----------- ------------------------------------------------------- -----------
10          match any any any count                                 0
20          match icmpv6 2001:db8:a::123 2001:db8:a::125 dscp AF11
             count                                                  0
switch#
switch# clear port-access policy CLEARPASS-REDIRECT hitcounts port
switch#
switch# show port-access policy CLEARPASS-REDIRECT hitcounts port

Port Access Policy Hit-Counts Details:
======================================

Policy Name   : CLEARPASS-REDIRECT
Policy Type   : Local
Policy Status : Applied

SEQUENCE CLASS             TYPE ACTION                            CUR-RATE(kbps)
-------- ----------------- ---- --------------------------------- --------------
3        clearpass-web     ipv4 cir kbps 1024 cbs 2048 exceed
                                drop                              0

Class Name : dhcp
Class Type : ipv4

SEQUENCE    CLASS-ENTRY                                             HIT-COUNT
----------- ------------------------------------------------------- -----------
10          match icmp any any count                                0

Class Name : clearpass-web
Class Type : ipv4

SEQUENCE    CLASS-ENTRY                                             HIT-COUNT
----------- ------------------------------------------------------- -----------
10          match udp any any count                                 0

Class Name : web-traffic
Class Type : ipv4

SEQUENCE    CLASS-ENTRY                                             HIT-COUNT
----------- ------------------------------------------------------- -----------
10          match any any any count                                 0
20          match any 10.1.1.1 10.1.1.2 dscp AF11 count             0

Class Name : class6
Class Type : ipv6

SEQUENCE    CLASS-ENTRY                                             HIT-COUNT
----------- ------------------------------------------------------- -----------
10          match any any any count                                 0
20          match icmpv6 2001:db8:a::123 2001:db8:a::125 dscp AF11
             count                                                  0