|
250 | 250 | * [Historical Memory Statistics for Last 3 Hours](#historical-memory-statistics-for-last-3-hours) |
251 | 251 | * [Historical Memory Statistics for Specific Metric (Used Memory)](#historical-memory-statistics-for-specific-metric-used-memory) |
252 | 252 | * [View Memory Statistics Configuration](#view-memory-statistics-configuration) |
| 253 | +* [CoPP Commands](#copp-commands) |
| 254 | + * [Overview](#overview) |
| 255 | + * [CoPP show commands](#copp-show-commands) |
253 | 256 | ## Document History |
254 | 257 |
|
255 | 258 | | Version | Modification Date | Details | |
@@ -10862,6 +10865,7 @@ This sub-section explains the show commands for displaying the running configura |
10862 | 10865 | 6) acl |
10863 | 10866 | 7) ports |
10864 | 10867 | 8) syslog |
| 10868 | +9) copp |
10865 | 10869 |
|
10866 | 10870 | **show runningconfiguration all** |
10867 | 10871 |
|
@@ -10988,6 +10992,20 @@ This command displays the running configuration of the snmp module. |
10988 | 10992 | admin@sonic:~$ show runningconfiguration ports Ethernet0 |
10989 | 10993 | ``` |
10990 | 10994 |
|
| 10995 | + **show runningconfiguration copp** |
| 10996 | + |
| 10997 | + This command displays the running configuration of copp |
| 10998 | + |
| 10999 | +- Usage: |
| 11000 | + ``` |
| 11001 | + show runningconfiguration copp |
| 11002 | + ``` |
| 11003 | + |
| 11004 | +- Example: |
| 11005 | + ``` |
| 11006 | + admin@sonic:~$ show runningconfiguration copp |
| 11007 | + ``` |
| 11008 | + |
10991 | 11009 | Go Back To [Beginning of the document](#) or [Beginning of this section](#Startup--Running-Configuration) |
10992 | 11010 |
|
10993 | 11011 |
|
@@ -14810,3 +14828,106 @@ Enabled: false |
14810 | 14828 | Sampling Interval: 5 |
14811 | 14829 | Retention Period: 15 |
14812 | 14830 | ``` |
| 14831 | +--- |
| 14832 | +# CoPP Commands |
| 14833 | + |
| 14834 | +## Overview |
| 14835 | +This sub-section explains the list of commands available for CoPP (Control Plane Policing) feature. |
| 14836 | + |
| 14837 | +--- |
| 14838 | + |
| 14839 | +## CoPP Show Commands |
| 14840 | + |
| 14841 | +These commands are used to display the current CoPP configuration and their status. |
| 14842 | + |
| 14843 | +### Usage |
| 14844 | +```bash |
| 14845 | +show copp configuration <detailed> [--trapid <trap_id>] [--group <trap_group>] |
| 14846 | +``` |
| 14847 | + |
| 14848 | +**Example**: |
| 14849 | + |
| 14850 | +```bash |
| 14851 | +show copp configuration |
| 14852 | +show copp configuration detailed --group queue1_group3 |
| 14853 | +show copp configuration detailed --trapid neighbor_miss |
| 14854 | +``` |
| 14855 | + |
| 14856 | +### Show CoPP Configuration |
| 14857 | + |
| 14858 | +Command to display the current CoPP configurations and hardware status of the traps. |
| 14859 | + |
| 14860 | +```bash |
| 14861 | +admin@sonic:~$ show copp configuration |
| 14862 | +``` |
| 14863 | + |
| 14864 | +**Sample Output**: |
| 14865 | + |
| 14866 | +```bash |
| 14867 | +admin@sonic:~$ show copp configuration |
| 14868 | +TrapId Trap Group Action CBS CIR Meter Type Mode HW Status |
| 14869 | +--------------- ------------- -------- ----- ----- ------------ ------ ------------- |
| 14870 | +arp_req queue4_group2 copy 600 600 packets sr_tcm installed |
| 14871 | +arp_resp queue4_group2 copy 600 600 packets sr_tcm installed |
| 14872 | +bgp queue4_group1 trap 6000 6000 packets sr_tcm not-installed |
| 14873 | +bgpv6 queue4_group1 trap 6000 6000 packets sr_tcm not-installed |
| 14874 | +dest_nat_miss queue1_group2 trap 600 600 packets sr_tcm installed |
| 14875 | +dhcp queue4_group3 trap 100 100 packets sr_tcm installed |
| 14876 | +dhcpv6 queue4_group3 trap 100 100 packets sr_tcm installed |
| 14877 | +eapol queue4_group1 trap 6000 6000 packets sr_tcm installed |
| 14878 | +ip2me queue1_group1 trap 6000 6000 packets sr_tcm installed |
| 14879 | +lacp queue4_group1 trap 6000 6000 packets sr_tcm installed |
| 14880 | +lldp queue4_group3 trap 100 100 packets sr_tcm installed |
| 14881 | +neigh_discovery queue4_group2 copy 600 600 packets sr_tcm installed |
| 14882 | +neighbor_miss queue1_group3 trap 200 200 packets sr_tcm installed |
| 14883 | +sample_packet queue2_group1 trap 1000 1000 packets sr_tcm not-installed |
| 14884 | +src_nat_miss queue1_group2 trap 600 600 packets sr_tcm installed |
| 14885 | +udld queue4_group3 trap 100 100 packets sr_tcm installed |
| 14886 | +``` |
| 14887 | + |
| 14888 | +### Show CoPP Configuration Detailed |
| 14889 | + |
| 14890 | +Command to display the detailed CoPP configuration of a specific trap ID. |
| 14891 | + |
| 14892 | +```bash |
| 14893 | +admin@sonic:~$ show copp configuration detailed --trapid neighbor_miss |
| 14894 | +``` |
| 14895 | + |
| 14896 | +**Sample Output**: |
| 14897 | + |
| 14898 | +```bash |
| 14899 | +Trap Group.................. queue1_group3 |
| 14900 | +queue....................... 1 |
| 14901 | +Trap Priority............... 1 |
| 14902 | +Trap Action................. trap |
| 14903 | +Meter Type.................. packets |
| 14904 | +Mode........................ sr_tcm |
| 14905 | +CBS......................... 200 |
| 14906 | +CIR......................... 200 |
| 14907 | +Green Action................ forward |
| 14908 | +Yellow Action............... forward |
| 14909 | +Red Action.................. drop |
| 14910 | +Oper Status................. installed |
| 14911 | +``` |
| 14912 | + |
| 14913 | +Command to display the detailed CoPP configuration of a specific CoPP group. |
| 14914 | + |
| 14915 | +```bash |
| 14916 | +admin@sonic:~$ show copp configuration detailed --group queue1_group3 |
| 14917 | +``` |
| 14918 | + |
| 14919 | +**Sample Output**: |
| 14920 | + |
| 14921 | +```bash |
| 14922 | +Trap Id(s).................. neighbor_miss |
| 14923 | +queue....................... 1 |
| 14924 | +Trap Priority............... 1 |
| 14925 | +Trap Action................. trap |
| 14926 | +Meter Type.................. packets |
| 14927 | +Mode........................ sr_tcm |
| 14928 | +CBS......................... 200 |
| 14929 | +CIR......................... 200 |
| 14930 | +Yellow Action............... forward |
| 14931 | +Green Action................ forward |
| 14932 | +Red Action.................. drop |
| 14933 | +``` |
0 commit comments