Developers Guide

Table Of Contents
Defining Interface Range Macros
You can define an interface-range macro to automatically select a range of interfaces for configuration.
Before you can use the macro keyword in the interface-range macro command string, define the macro.
To define an interface-range macro, use the following command.
Defines the interface-range macro and saves it in the running configuration file.
CONFIGURATION mode
define interface-range macro_name {vlan vlan_ID - vlan_ID | {{gigabitethernet
| tengigabitethernet} slot/port - slot/port}} [ , {vlan vlan_ID - vlan_ID |
{{gigabitethernet | tengigabitethernet} slot/port - slot/port}]
Define the Interface Range
The following example shows how to define an interface-range macro named test to select Ten Gigabit Ethernet interfaces
5/1 through 5/4.
Example of the define interface-range Command for Macros
DellEMC(config)# define interface-range test gigabitethernet 5/1 - 5/4
Choosing an Interface-Range Macro
To use an interface-range macro, use the following command.
Selects the interfaces range to be configured using the values saved in a named interface-range macro.
CONFIGURATION mode
interface range macro name
The following example shows how to change to the interface-range configuration mode using the interface-range macro named
test.
DellEMC(config)# interface range macro test
DellEMC(config-if)#
Monitoring and Maintaining Interfaces
Monitor interface statistics with the monitor interface command. This command displays an ongoing list of the interface
status (up/down), number of packets, traffic statistics, and so on.
To view the interfaces statistics, use the following command.
View the interfaces statistics.
EXEC Privilege mode
Enter the type of interface and the interface information:
For a 1-GigabitEthernet interface, enter the keyword GigabitEthernet then the slot/port information.
For a 10-Gigabit Ethernet interface, enter the keyword TenGigabitEthernet then the slot/port information.
The information displays in a continuous run, refreshing every 2 seconds by default. To manage the output, use the following
keys.
m Change mode
l Page up
T Increase refresh interval (by 1 second)
t Decrease refresh interval (by 1 second)
c Clear screen
a Page down
340
Interfaces