![background image](http://html.mh-extra.com/html/cisco/mds-9000-series/mds-9000-series_command-reference-manual_21253176.webp)
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
4-36
Cisco MDS 9000 Family Command Reference
OL-18089-01, Cisco MDS NX-OS Release 4.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.
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.