2-21
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands clear counters
clear counters
To clear MAC counters, EtherChannel MAC counters, port counters, and the channel traffic percentile,
use the clear counters command.
clear counters [all | mod/ports]
Syntax Description
Defaults This command has no default settings.
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines If you do not specify a range of ports to be cleared, then all ports on the switch are cleared.
Examples This example shows how to reset MAC and port counters to zero:
Console> (enable) clear counters
This command will reset all MAC and port counters reported in CLI and SNMP.
Do you want to continue (y/n) [n]? y
MAC and Port counters cleared.
Console> (enable)
This example shows how to reset MAC and port counters to zero for a specific module and port:
Console> (enable) clear counters 5/1
This command will reset MAC and port counters reported by the CLI for port(s) 5/1.
Do you want to continue (y/n) [n]? y
MAC and Port counters cleared.
Console> (enable)
Related Commands res tore cou nters
show port counters
all (Optional) Specifies all ports.
mod/ports (Optional) Number of the module and the ports on the modul e.