To clear current interface counters for all interfaces or for only specific interface types and numbers, use the command clear counters in Global Configuration Mode. When used in Privileged EXEC Mode, the command can be used to clear port channel interface counters as well.
Parameter | Type | Description |
---|---|---|
Gigabitethernet
|
Enter to clear gigabitetethernet type of interface. Gigabitethernet is a version of LAN standard architecture that supports data transfer up to 1 Gigabit per second. | |
<interface-id>
|
Enter a specific slot number / port number. The format is <0>/<1-28> without spaces between Slot Number/Port Number. For example, 0/1. | |
Extreme-Ethernet
|
Enter to clear Extreme-Ethernet type of interface. Extreme Ethernet is a version of Ethernet that supports data transfer up to 10 Gigabits per second and only full duplex links | |
fastethernet
|
Enter to clear fastethernet type of interface. Fast Ethernet is officially referred to as 100BASE-T standard. This is a version of LAN standard architecture that supports data transfer up to 100 Megabits per second. | |
counters
|
Enter to clear all interface counters | |
port-channel
|
Enter to clear port channel interface. | |
<port channel ID>
|
Integer | Enter a number for port channel ID. The range is from 1 to 65535. |
Privileged EXEC Mode / Global Configuration Mode
iS5Comm# clear counters
iS5Comm# clear counters port-channel 1
iS5Comm(config)# clear counters
iS5Comm(config)# clear interfaces gigabitethernet 0/1