6-31
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 6 Configuring Interfaces Monitoring and Maintaining the Interface
To display information about the interface, enter one of the following commands:
This example shows how to display the status of Fast Ethernet interface 5/5:
Switch# show protocols fastethernet 5/5
FastEthernet5/5 is up, line protocol is up
Switch#
Clearing and Resetting the Interface
To clear the interface counters shown with the show interfaces command, enter this command:
This example shows how to clear and reset the counters on Fast Ethernet interface 5/5:
Switch# clear counters fastethernet 5/5
Clear "show interface" counters on this interface [confirm] y
Switch#
*Sep 30 08:42:55: %CLEAR-5-COUNTERS: Clear counter on interface FastEthernet5/5
by vty1 (171.69.115.10)
Switch#
The clear counters command (without any arguments) clears all the current interface counters from all
interfaces.
Note The clear counters command does not clear counters retrieved with SNMP; it clears only those counters
displayed with the EXEC show interfaces command.
Shutting Down and Restarting an Interface
You can disable an interface, which disables all functions on the specified interface and marks the
interface as unavailable on all monitoring command displays. This information is communicated to other
network servers through all dynamic routing protocols. The interface is not mentioned in any routing
updates.
Command Purpose
Switch# show interfaces [type
slot/interface]Displays the status and configuration of all interfaces or of
a specific interface.
Switch# show running-config Displays the configuration currently running in RAM.
Switch# show protocols [type
slot/interface] Displays the global (system-wide) and interface-specific
status of any configured protocol.
Switch# show version Displays the hardware configuration, software version, the
names and sources of configuration files, and the boot
images.
Command Purpose
Switch# clear counters {type slot/interface}Clears interface counters.