clear counters interface

Clears counters of the specified interface.

Syntax

clear counters interface ethernet [ IFNAME | all ]
clear counters interface management number
clear counters interface port-channel [ PORANGE |all ]

Parameters

ethernet
Specifies the counters of Ethernet interfaces.
IFNAME
Specifies the interface name in slot/port or slot/port:breakout format. Example: 1/1, 1/1-3, 5, 2/7-9, 10:1-4.
all
Clears all Ethernet interface counters.
management number
Specifies the management interface.
port-channel
PORANGE
Specifies the channel number or range of channel numbers. Valid range is 1 to 255.
all
Specifies all port-channel interfaces.

Modes

Exec mode

Usage Guidelines

This command is available only to users with the admin role.

Examples

The following example clears counters of the Ethernet interface on slot/port 1/1.

device# clear counters interface ethernet 1/1

The following example clears counters on management interface 0.

device# clear counters interface management 0

The following example clears port-channel 1 counters.

device# clear counters interface port-channel 1

device# clear counters interface port-channel 1-3,5,7-9

The following example clears counters for all Ethernet interfaces.

device# clear counters interface ethernet all