3.1.9. clear interface

Syntax

clear interfaces IF_PORTS counters

Parameter


IF_PORTS Specify port to clear counters.


Default

No default value for this command.

Mode

Privileged EXEC

Usage

Use “clear interface” command to clear statistic counters on specific ports.

Example

This example shows how to clear counters on port fa1.

Switch(config)# clear interfaces fa1 counters

This example shows how to show current counters

Switch# show interfaces fa1
Hardware is Fast Ethernet
Auto-duplex, Auto-speed, media type is Copper
flow-control is off
0 packets input, 0 bytes, 0 throttles Received 0 broadcasts (0 multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 multicast, 0 pause input
0 input packets with dribble condition detected
0 packets output, 0 bytes, 0 underrun
0 output errors, 0 collisions, 0 interface resets
0 babbles, 0 late collision, 0 deferred
0 PAUSE output