Administrator Guide

Layer 2 Switching Commands 390
stack-ports—Clears stack-port statistics.
switchport—Clear all the interface counters
interface-id—An Ethernet or port-channel identifier. If specified, counters
are cleared for the individual interface.
Default Configuration
This command has no default configuration.
Command Mode
Privileged Exec mode
User Guidelines
Use of the clear counters command with no parameters indicates that both
switch and all interface statistics are to be cleared. This command clears the
individual component counters. If a port-channel is specified, the command
clears the port channel counters, including the flap counters.
The VRF identified in the parameter must have been previously created or an
error is returned.
Example
In the following example, the counters for port Gi1/0/1 are cleared.
console#clear counters gigabitethernet 1/0/1
description
Use the description command in Interface Configuration mode to add a
description to an interface. To remove the description use the no form of this
command.
Syntax
description string
no description
string — Comment or a description of the port attached to this interface.
(Range: 1 to 64 characters)