2-97
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
OL-27596 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
clear counters
clear counters
To clear the 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 mode
Command History
Usage Guidelines This command clears all the current interface counters from all the interfaces unless you specify an
interface.
Note This command does not clear the counters that are retrieved using SNMP, but only those seen when you
enter the show interface counters command.
Examples This example shows how to clear all the interface counters:
Switch# clear counters
Clear "show interface" counters on all interfaces [confirm] y
Switch#
This example shows how to clear the counters on a specific interface:
Switch# clear counters vlan 200
Clear "show interface" counters on this interface [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.