Clears counters of the specified interface.
Exec mode
This command is available only to users with admin role.
Message | Reason |
---|---|
Error: Command supported on active interfaces only | The specified interface must be active. |
The following example clears counters of the ethernet interface on slot/port 1/1.
device# clear counters interface ethernet 1/1 device#
The following example clears counters on management interface 0.
device# clear counters interface management 0 device#
The following example clears port-channel 1 counters.
device# clear counters interface port-channel 1 device#
The following example clears counters for all ethernet interfaces.
device# clear counters interface ethernet all device#