show copp-policy statistics
Syntax
show copp-policy statistics [class <CLASS> | default-class]
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.
Authority
Operators or Administrators. Users without administrator authority 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 <--OUTPUT OMITTED FOR CLARITY--> Class: default bytes passed : 20000 bytes dropped : 15000 packets passed : 1000 packets dropped : 1100 <--OUTPUT OMITTED FOR CLARITY-->
Displaying statistics for the default class in the active policy (Output from a 8320 switch):
switch(config)# show copp-policy statistics default-class Class: default priority : 1 rate (pps) : 5000 burst size (pkts): 5000 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 (Output from an 8320 switch):
switch# show copp-policy statistics class bgp-ipv4 Statistics for CoPP policy 'default': Class: bgp-ipv4 priority : 1 rate (pps) : 5000 burst size (pkts) : 5000 bytes passed : 12000 bytes dropped : 64000 packets passed : 5000 packets dropped : 10000 avg_packet_size_passed: 2 avg_packet_size_dropped : 6