CLI Reference Guide

Table Of Contents
Chapter 11
| Interface Commands
– 399 –
clear counters This command clears statistics on an interface.
Syntax
clear counters interface
interface
ethernet unit/port
unit - Unit identifier. (Range: 1)
port - Port number. (Range: 1-54)
port-channel channel-id (Range: 1-26)
Default Setting
None
Command Mode
Privileged Exec
Command Usage
Statistics are only initialized for a power reset. This command sets the base value for
displayed statistics to zero for the current management session. However, if you log
out and back into the management interface, the statistics displayed will show the
absolute value accumulated since the last power reset.
Example
The following example clears statistics on port 5.
Console#clear counters ethernet 1/5
Console#
show discard This command displays whether or not CDP and PVST packets are being discarded.
Command Mode
Privileged Exec
Example
In this example, “Default” means that the packets are not discarded.
Console#show discard
Port CDP PVST
-------- ------- -------
Eth 1/ 1 No No
Eth 1/ 2 No No
Eth 1/ 3 No No
Eth 1/ 4 No No
Eth 1/ 5 No No
Eth 1/ 6 No No
.