clear copp-policy statistics
Syntax
clear copp-policy statistics
Description
Resets statistics for all CoPP classes to zero.
Command context
Operator (>
) or Manager (#
)
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 and then resetting statistics for all classes in the active policy:
switch# show copp-policy statistics Statistics for CoPP policy 'default': Totals: bytes passed : 64000 bytes dropped : 96000 packets passed : 1000 packets dropped : 1500 avg_packet_size_passed: 64 avg_packet_size_dropped: 64 Class: default bytes passed : 25600 bytes dropped : 38400 packets passed : 400 packets dropped : 600 avg_packet_size_passed: 64 avg_packet_size_dropped: 64 Class: acl-logging bytes passed : 6400 bytes dropped : 6400 packets passed : 100 packets dropped : 100 avg_packet_size_passed: 64 avg_packet_size_dropped: 64 Class: arp-broadcast bytes passed : 32000 bytes dropped : 51200 packets passed : 500 packets dropped : 800 avg_packet_size_passed: 64 avg_packet_size_dropped: 64 <--OUTPUT OMITTED FOR BREVITY--> switch# clear copp-policy statistics switch# show copp-policy statistics Statistics for CoPP policy 'default': Totals: bytes passed : 0 bytes dropped : 0 packets passed : 0 packets dropped : 0 avg_packet_size_passed: 0 avg_packet_size_dropped: 0 Class: default bytes passed : 0 bytes dropped : 0 packets passed : 0 packets dropped : 0 avg_packet_size_passed: 0 avg_packet_size_dropped: 0 Class: acl-logging bytes passed : 0 bytes dropped : 0 packets passed : 0 packets dropped : 0 avg_packet_size_passed: 0 avg_packet_size_dropped: 0 Class: arp-broadcast bytes passed : 0 bytes dropped : 0 packets passed : 0 packets dropped : 0 avg_packet_size_passed: 0 avg_packet_size_dropped: 0 <--OUTPUT OMITTED FOR BREVITY-->