C
HAPTER
30
| Interface Commands
– 778 –
clear counters This command clears statistics on an interface.
SYNTAX
clear counters interface
interface
ethernet unit/port
unit - Stack unit. (Range: 1)
port - Port number. (Range: 1-24)
port-channel channel-id (Range: 1-32)
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 interfaces
counters
This command displays interface statistics.
SYNTAX
show interfaces counters [interface]
interface
ethernet unit/port
unit - Stack unit. (Range: 1)
port - Port number. (Range: 1-24)
port-channel channel-id (Range: 1-32)
DEFAULT SETTING
Shows the counters for all interfaces.