Send documentation comments to mdsfeedback-doc@cisco.com
4-31
Cisco MDS 9000 Family Command Reference
OL-8413-07, Cisco MDS SAN-OS Release 3.x
Chapter 4 C Commands
clear counters (EXEC mode)
clear counters (EXEC mode)
To clear the interface counters, use the clear counters command in EXEC mode.
clear counters {all | interface {fc | mgmt | port-channel | sup-fc | vsan} number}
Syntax Description
Defaults None.
Command Modes EXEC mode.
Command History
Usage Guidelines The following table lists the keywords and number ranges for the clear counters interface types:
This command clears counter displayed in the show interface command output.
Examples The following example shows how to clear counters for a VSAN interface.
switch# clear counters interface vsan 13
Related Commands
all Clears all interface counters.
interface Clears interface counters for the specified interface.
type Specifies the interface type. See the Keywords table in the “Usage
Guidelines” section.
number Specifies the number of the slot or interface being cleared.
Release Modification
1.0(2) This command was introduced.
Keyword Interface Type Number
fc Fibre Channel 1- 2 or 1 - 9 (slot)
gigabitethernet Gigabit Ethernet 1- 2 or 1 - 9 (slot)
mgmt Management 0-0 (management interface)
port-channel PortChannel 1-128 (PortChannel)
sup-fc Inband 0-0 (Inband interface)
vsan VSAN 1- 4093 (VSAN ID)
Command Description
show interface
Displays interface information.