show copp-policy statistics

Syntax

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

Description

Displays statistics for all classes, or a single class, 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.

[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.

Examples

Displaying statistics for all classes in the active policy:

NOTE:

The rate displayed is the actual rate in hardware.

switch# show copp-policy statistics
Statistics for CoPP policy 'default':
Totals:
    bytes passed     : 170000         bytes dropped    : 104000
    packets passed   : 32000          packets dropped  : 18000
Class: arp-broadcast
    bytes passed     : 40000          bytes dropped    : 40000
    packets passed   : 8000           packets dropped  : 8000
Class: arp-unicast
    bytes passed     : 8000           bytes dropped    : 64000
    packets passed   : 1000           packets dropped  : 10000
Class: bgp-ipv4
    bytes passed     : 12000          bytes dropped    : 64000
    packets passed   : 5000           packets dropped  : 10000
...
Class: default
    bytes passed     : 20000          bytes dropped    : 15000
    packets passed   : 1000           packets dropped  : 1100
...

Displaying statistics for the default class in the active policy:

switch(config)# show copp-policy statistics default-class
Class: default
    priority         : 1
    rate (kbps)      : 5000
    burst size (kB)  : 62

    bytes passed     : 20000          bytes dropped    : 15000
    packets passed   : 1000           packets dropped  : 1100
    avg_packet_size_passed: 20        avg_packet_size_dropped : 14

Displaying statistics for the class bgp-ipv4 in the actively applied policy:

switch# show copp-policy statistics class bgp-ipv4
Statistics for CoPP policy 'default':
Class: bgp-ipv4
    priority         : 1
    rate (kbps)      : 5000
    burst size (kB)  : 62

    bytes passed     : 12000          bytes dropped    : 64000
    packets passed   : 5000           packets dropped  : 10000
    avg_packet_size_passed: 2         avg_packet_size_dropped : 6