show copp-policy

Syntax

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

Description

Shows all CoPP policy settings for a specific CoPP policy, or when entered without a name, the CoPP settings that are active on the switch and have successfully been programmed into the hardware.

A warning is displayed if:

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

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

Authority

Operators or Administrators. Users without administrator authority 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 (Output from an 8320 switch):

switch# show copp-policy commands
copp-policy My_CoppPolicy
    class bgp-ipv4 priority 6 rate 5000 burst 5000
    class ospf-multicast-ipv4 priority 2 rate 2000
    default-class priority 1 rate 6000 burst 7000
copp-policy default
    class arp-broadcast priority 1 rate 1000 burst 1000
    class arp-unicast priority 1 rate 1000 burst 1000
    class bgp-ipv4 priority 1 rate 5000 burst 5000
        <--OUTPUT OMITTED FOR BREVITY-->
    default-class priority 1 rate 5000 burst 5000
apply copp-policy default
switch# 
		

Entering the config-copp context and modify the default policy (Output from an 8320 switch):

switch# show copp-policy default
class                 drop priority rate pps  burst pkts  hardware rate pps
--------------------- ---- -------- --------- ----------  -----------------
acl-logging                0        50        50          50
arp-broadcast         drop
bgp-ipv4                   9        5000      5000        5000
    <--OUTPUT OMITTED FOR BREVITY-->
default                    1        5000      5000        5000