Clear Counters - Cisco Catalyst 4500 Series Command Reference Manual

Cisco ios command reference
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

Chapter 2
Cisco IOS Commands for the Catalyst 4500 Series Switches

clear counters

To clear the interface counters, use the clear counters command.
Syntax Description
FastEthernet interface_number
GigabitEthernet interface_number
null interface_number
port-channel number
vlan vlan_id
Defaults
This command has no default settings.
Command Modes
Privileged EXEC mode
Command History
Release
12.1(8a)EW
12.1(12c)EW
Usage Guidelines
This command clears all the current interface counters from all the interfaces unless you specify an
interface.
This command does not clear the counters that are retrieved using SNMP, but only those seen when you
Note
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#
OL-25342 -01
clear counters [{FastEthernet interface_number} | {GigabitEthernet interface_number} |
{null interface_number} | {port-channel number} | {vlan vlan_id}]
Modification
Support for this command was introduced on the Catalyst 4500 series switch.
Support for extended VLAN addresses was added.
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.3.0SG and IOS 15.1(1)SG)
(Optional) Specifies the Fast Ethernet interface; valid values
are from 1 to 9.
(Optional) Specifies the Gigabit Ethernet interface; valid values
are from 1 to 9.
(Optional) Specifies the null interface; the valid value is 0.
(Optional) Specifies the channel interface; valid values are
from 1 to 64.
(Optional) Specifies the VLAN; valid values are from 1 to
4096.
clear counters
2-97

Advertisement

Table of Contents
loading

Table of Contents