2-20
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
78-16201-01
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
clear counters
clear counters
To clear interface counters, use the clear counters command.
clear counters [{FastEthernet interface_number} | {GigabitEthernet interface_number} |
{null interface_number} | {port-channel number} | {vlan vlan_id}]
Syntax Description
Defaults This command has no default settings.
Command Modes Privileged EXEC
Command History
Usage Guidelines This command clears all the current interface counters from all interfaces unless you specify an
interface.
Note This command does not clear counters retrieved using SNMP, but only those seen when you enter the
show interface counters command.
Examples This example shows how to clear all interface counters:
Switch# clear counters
Clear "show interface" counters on all interfaces [confirm] y
Switch#
FastEthernet interface_number (Optional) Specifies the Fast Ethernet interface; valid values
are from 1 to 9.
GigabitEthernet interface_number (Optional) Specifies the Gigabit Ethernet interface; valid values
are from 1 to 9.
null interface_number (Optional) Specifies the null interface; the valid value is 0.
port-channel number (Optional) Specifies the channel interface; valid values are
from 1 to 64.
vlan vlan_id (Optional) Specifies the VLAN; valid values are from 1 to
4096.
Release Modification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
12.1(12c)EW Support for extended VLAN addresses was added.