16-3
Cisco IE 2000 Switch Software Configuration Guide
OL-25866-01
Chapter 16 Configuring Smartports Macros
How to Configure Smartports Macros
When you apply a macro to a switch or a switch interface, the macro name is automatically added
to the switch or interface. You can display the applied commands and macro names by using the
show running-config user EXEC command.
Applying Smartports Macros
Command Purpose
Step 1 show parser macro Displays the Cisco-default Smartports macros embedded in the switch
software.
Step 2 show parser macro name macro-name Displays the specific macro that you want to apply.
Step 3 configure terminal Enters global configuration mo de.
Step 4 macro global {apply | trace}
macro-name [parameter {value}]
[parameter {value}] [parameter
{value}]
Applies each individual command defined in the macro to the switch by
entering macro global apply macro-name. Specifies macro global
trace macro-name to apply and to debug a macro to find any syntax or
configuration errors.
Appends the macro with the required values by using the parameter
value keywords. Keywords that begin with $ require a unique parameter
value.
You can use the macro global apply macro-name ? command to display
a list of any required values for the macro. If you apply a macro without
entering the keyword values, the commands are invalid and are not
applied.
(Optional) Specifies unique parameter values that are specific to the
switch. You can enter up to three keyword-value pairs. Parameter
keyword matching is case sensitive. The corresponding value replaces
all matching occurrences of the keyword.
Step 5 interface interface-id (Optional) Enters interface configuration mode and specifies the
interface on which to apply the macro.
Step 6 default interface interface-id (Optional) Clears all configuration from the specified interface.
Step 7 macro {apply | trace} macro-name
[parameter {value}] [parameter
{value}] [parameter {value}]
Applies each individual command defined in the macro to the port by
entering macro global apply macro-name. Specifies macro global
trace macro-name to apply and to debug a macro to find any syntax or
configuration errors.
Appends the macro with the required values by using the parameter
value keywords. Keywords that begin with $ require a unique parameter
value.
You can use the macro global apply macro-name ? command to display
a list of any required values for the macro. If you apply a macro without
entering the keyword values, the commands are invalid and are not
applied.
(Optional) Specifies unique parameter values that are specific to the
switch. You can enter up to three keyword-value pairs. Parameter
keyword matching is case sensitive. The corresponding value replaces
all matching occurrences of the keyword.
Step 8 end Returns to privileged EXEC mode.