show copp-policy statistics

Syntax

show copp-policy statistics [class <CLASS> | default-class | non-zero] [vsx-peer]

Description

Displays statistics for all classes, a single class, or all classes with non-zero statistics in the active CoPP policy.

Command context

Operator (>) or Manager (#)

Parameters

<CLASS>

Specifies the class for which to display statistics.

default-class

Displays statistics for the default class.

non-zero

Displays statistics for all classes with non-zero statistics.

[vsx-peer]

Shows the output from the VSX peer switch. If the switches do not have the VSX configuration or the ISL is down, the output from the VSX peer switch is not displayed. This parameter is available on switches that support VSX.

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.

Usage

If a single class is specified, the priority, rate, and burst size that has been programmed in hardware for that class will be shown.

Examples

Applying the default CoPP policy and displaying statistics for all classes in the actively applied policy:

NOTE:

The rate displayed is the actual rate in hardware.

switch# config terminal
switch(config)# apply copp-policy default
switch(config)# exit
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-->

Displaying statistics for the default class in the active policy:

switch(config)# show copp-policy statistics default-class
Statistics for CoPP policy 'default':
Class: default
Description: Default
    priority             : 2
    rate (pps)           : 4225
    burst size (pkts)    : 528


    packets passed   : 400                packets dropped  : 600

Displaying statistics for the class arp-broadcast in the actively applied policy:

switch# show copp-policy statistics class arp-broadcast
Statistics for CoPP policy 'default':
Class: arp-broadcast
Description: Address Resolution Protocol broadcast
    priority             : 2
    rate (pps)           : 1250
    burst size (pkts)    : 1250

    packets passed   : 500                packets dropped  : 800