Reference Guide

Interfaces | 601
clear counters
c e s
Clear the counters used in the show interfaces commands for all VRRP groups, VLANs, and
physical interfaces, or selected ones.
Syntax
clear counters [interface] [vrrp [{[ipv6] vrid | vrf instance}] | learning-limit]
Parameters
Defaults
Without an interface specified, the command clears all interface counters.
Command Modes
EXEC Privilege
Command
History
interface
(OPTIONAL) Enter any of the following keywords and slot/port or number to
clear counters from a specified interface:
For a 1-Gigabit Ethernet interface, enter the keyword
GigabitEthernet
followed by the slot/port information.
For a Loopback interface, enter the keyword
loopback followed by a
number from 0 to 16383.
For a Port Channel interface, enter the keyword
port-channel followed by
a number:
C-Series and S-Series Range: 1-128
E-Series Range: 1 to 32 for EtherScale, 1 to 255 for TeraScale and 1 to 512
for ExaScale.
For the management interface on the RPM, enter the keyword
ManagementEthernet followed by slot/port information. The slot range is
0-1, and the port range is 0.
For a SONET interface, enter the keyword
sonet followed by the slot/port
information.
For a 10-Gigabit Ethernet interface, enter the keyword
TenGigabitEthernet followed by the slot/port information.
For a 40-Gigabit Ethernet interface, enter the keyword
fortyGigE followed
by the slot/port information.
For a VLAN, enter the keyword
vlan followed by a number from 1 to
4094.
vrrp
[[
ipv6] vrid]
(OPTIONAL) Enter the keyword
vrrp to clear the counters of all VRRP
groups. To clear the counters of VRRP groups on all IPv6 interfaces, enter
ipv6. To clear the counters of a specified group, enter a vrid number from 1 to
255.
vrrp
[vrf instance]
(OPTIONAL) E-Series only: Enter the keyword
vrrp to clear counters for all
VRRP groups. To clear the counters of VRRP groups in a specified VRF
instance, enter the name of the instance (32 characters maximum). IPv6 VRRP
groups are not supported.
learning-limit
(OPTIONAL) Enter the keyword learning-limit to clear unknown source
address (SA) drop counters when MAC learning limit is configured on the
interface.
Note: This option is not supported on the S-Series, as the MAC learning limit is
not supported
Version 8.3.19.0 Introduced on S4820T
Version 8.5.1.0 Added support for 4-port 40G line cards on ExaScale.
Version 8.4.1.0 On the E-Series, support was added for VRRP groups in a VRF instance.