clear copp-policy statistics

Syntax

clear copp-policy statistics

Description

Resets statistics for all CoPP classes to zero.

Command context

Operator (>) or Manager (#)

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

Displaying and then resetting statistics for all classes in the active policy:

switch# show copp-policy statistics
Statistics for CoPP policy 'default':
Totals:
    packets passed   : 1000               packets dropped  : 1500
Class: default
    packets passed   : 400                packets dropped  : 600
Class: acl-logging
    packets passed   : 100                packets dropped  : 100
Class: arp-broadcast
    packets passed   : 500                packets dropped  : 800
        <--OUTPUT OMITTED FOR BREVITY-->
switch# clear copp-policy statistics
switch# show copp-policy statistics
Statistics for CoPP policy 'default':
Totals:
    packets passed   : 0                  packets dropped  : 0
Class: default
    packets passed   : 0                  packets dropped  : 0
Class: acl-logging
    packets passed   : 0                  packets dropped  : 0
Class: arp-broadcast
    packets passed   : 0                  packets dropped  : 0