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. Users without administrator authority 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 : 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 BREVITY--> Class: default bytes passed : 20000 bytes dropped : 15000 packets passed : 1000 packets dropped : 1100 <--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 Class: arp-broadcast bytes passed : 0 bytes dropped : 0 packets passed : 0 packets dropped : 0 Class: arp-unicast bytes passed : 0 bytes dropped : 0 packets passed : 0 packets dropped : 0 Class: bgp-ipv4 bytes passed : 0 bytes dropped : 0 packets passed : 0 packets dropped : 0 <--OUTPUT OMITTED FOR BREVITY--> Class: default bytes passed : 0 bytes dropped : 0 packets passed : 0 packets dropped : 0 <--OUTPUT OMITTED FOR BREVITY-->