show copp-policy

Syntax

show copp-policy  [<NAME> | default] [commands] [configuration] [vsx-peer]

Description

Shows CoPP policy settings for a specific CoPP policy. When entered without specifying either a name or the default parameter, shows all the CoPP policy settings that are active on the switch and have successfully been programmed into the hardware.

A warning is displayed if:

  • The active and user-specified applications of a policy do not match.

  • The active and user-specified configurations of a policy do not match.

Command context

Operator (>) or Manager (#)

Parameters

<NAME>

Specifies the name of the policy for which to display settings. Length: 1 to 64 characters.

default

Displays CoPP settings for the default policy.

commands

Displays output as CLI commands.

configuration

Displays user-specified CoPP settings and not the active settings.

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

Example

Displaying the CoPP policies defined in the configuration and the active application:

switch# show copp-policy
applied copp_policy_name
------- ----------------
        My_CoppPolicy
applied default
switch#

Displaying the active configuration of all CoPP policies as CLI commands:

switch# show copp-policy commands
copp-policy My_CoppPolicy
    class igmp priority 6 rate 5000 burst 60
    class lacp priority 2 rate 2000 burst 64
    default-class priority 1 rate 6000 burst 70
copp-policy default
    class acl-logging priority 0 rate 468 burst 4
    class arp-broadcast priority 4 rate 1406 burst 4
    class arp-protect priority 4 rate 2343 burst 4
    class arp-unicast priority 5 rate 937 burst 4
    class bfd-control priority 9 rate 937 burst 16
        <--OUTPUT OMITTED FOR BREVITY-->
    default-class priority 1 rate 17343 burst 16
apply copp-policy default
switch#

Displaying the default policy:

switch# show copp-policy default
class                 drop priority rate kbps burst kB min-max pps       hardware rate kbps
--------------------- ---- -------- --------- -------- ----------------- ------------------
acl-logging                0        468       4        38-906            468
arp-broadcast              4        1406      4        115-2734          1406
arp-protect                4        2343      4        192-4562          2343
arp-unicast                5        937       4        77-1828           937
bfd-control                9        937       16       77-1828           937
    <--OUTPUT OMITTED FOR BREVITY-->
default                    1        17343     16       1427-33859        17343