Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell Command Line Reference Guide for the S4048–ON System 9.14.2.4

PDF

clear counters

Clear the counters displayed in the show interfaces commands for all virtual router redundancy protocol (VRRP) groups, virtual local area networks (VLANs), and physical interfaces, or selected ones.

Syntax
clear counters [interface | vrrp {vr-id | ipv6 vr-id} | learning-limit | vlan vlan-id]
Parameters
interface
(OPTIONAL) Enter any of the following keywords and the interface information to clear counters from a specified interface:
  • For IPv4 access-group counters, enter the keyword ip.
  • For IPv6 access-group counters, enter the keyword ipv6.
  • For a Loopback interface, enter the keyword loopback then a number from 0 to 16383.
  • For MAC access-group counters, enter the keyword mac.
  • For a Port Channel interface, enter the keywords port-channel then a number.
  • For the management interface, enter the keyword ManagementEthernet then slot/port information.
  • For a 10-Gigabit Ethernet interface, enter the keyword TenGigabitEthernet then the slot/port[/subport] information.
  • For a 40-Gigabit Ethernet interface, enter the keyword fortyGigE then the slot/port information.
  • For a tunnel interface, enter the keyword tunnel. The range is from 1 to 16383.
NOTE This command also enables you to clear the port configurations corresponding to a range of ports. However, for Open Networking (ON) platforms the notation for specifying port range in the command is different from how you specify in non-ON platforms.
  • For non-ON platforms, you can specify multiple ports as slot/port-range. For example, if you want to clear the port configurations corresponding to all ports between 1 and 4, specify the port range as show interfaces interface-type 1/1 - 4.
  • For ON platforms, you can specify multiple ports as slot/port/[subport] - slot/port/[subport]. For example, if you want to clear the port configurations corresponding to all ports between 1 and 4, specify the port range as show interfaces interface-type 1/1/1 - 1/1/4.
vrrp [ipv6 {vr-id} | vr-id]
(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.
learning-limit
(OPTIONAL) Enter the keywords learning-limit to clear unknown source address (SA) drop counters when MAC learning limit is configured on the interface.
vlan vlan-id
Enter the keyword vlan followed by the interface VLAN number. The range is from 1 to 4094.
Defaults
Without an interface specified, the command clears all interface counters.
Command Modes
EXEC Privilege
Command History

This guide is platform-specific. For command information about other platforms, see the relevant Dell EMC Networking OS Command Line Reference Guide.

Version
Description
9.10(0.1)
Introduced on the S6010-ON and S4048T-ON.
9.10(0.0)
Introduced on the S3148.
9.10(0.0)
Introduced on the S6100–ON.
9.9(0.0)
Added support to clear the interface configurations corresponding to a range of ports.
9.8(2.0)
Introduced on the S3100 series.
9.8(1.0)
Introduced on the Z9100–ON.
9.8(0.0P5)
Introduced on the S4048-ON.
9.8(0.0P2)
Introduced on the S3048-ON.
9.7(0.0)
Introduced on the S6000-ON.
9.7(0.0)
Added the VLAN parameter.
9.2(1.0)
Introduced on the Z9500.
9.0.2.0
Introduced on the S6000.
8.3.19.0
Introduced on the S4820T.
8.3.11.1
Introduced on the Z9000.
8.5.1.0
Added support for 4-port 40G line cards on the E-Series.
8.4.1.0
Added support (E-Series only) for VRRP groups in a VRF instance.
8.3.7.0
Introduced on the S4810.
8.2.1.0
Added support for 4093 VLANs on the E-Series. Prior to the release, 2094 was supported.
8.1.1.0
Introduced on the E-Series.
7.6.1.0
Introduced on the S-Series.
7.5.1.0
Introduced on the C-Series.
6.5.1.0
Updated the definition of the learning-limit option for clarity.
Example
DellEMC# clear counters
Clear counters on all interfaces [confirm]
DellEMC#
Related Commands
  • mac learning-limit — allow aging of MACs even though a learning-limit is configured or disallow station move on learned MACs.

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\