Macro Apply - Cisco Catalyst 3750 Command Reference Manual

Hide thumbs Also See for Catalyst 3750:
Table of Contents

Advertisement

Chapter 2
Catalyst 3750 Switch Cisco IOS Commands

macro apply

Use the macro apply interface configuration command on the switch stack or on a standalone switch to
apply a macro to an interface or to apply and trace a macro configuration on an interface.
Syntax Description
apply
trace
macro-name
parameter value (Optional) Specify unique parameter values that are specific to the interface. You
Defaults
This command has no default setting.
Command Modes
Interface configuration
Command History
Release
12.1(19)EA1
12.2(18)SE
Usage Guidelines
You can use the macro trace macro-name interface configuration command to apply and to show the
macros running on an interface or to debug the macro to find any syntax or configuration errors.
If a command fails because of a syntax error or a configuration error when you apply a macro, the macro
continues to apply the remaining commands to the interface.
When creating a macro that requires the assignment of unique values, use the parameter value keywords
to designate values specific to the interface.
Keyword matching is case sensitive. All matching occurrences of the keyword are replaced with the
corresponding value. Any full match of a keyword, even if it is part of a larger string, is considered a
match and is replaced by the corresponding value.
There are Cisco-default SmartPort macros embedded in the switch software. You can view these macros
and the commands they contain by using the show parser macro user EXEC command.
Follow these guidelines when you apply a Cisco-default SmartPort macro on an interface:
78-16181-01
macro {apply | trace} macro-name [parameter {value}] [parameter {value}]
[parameter {value}]
Apply a macro to the specified interface.
Use the trace keyword to apply a macro to an interface and to debug the macro.
Specify the name of the macro.
can enter up to three keyword-value pairs. Parameter keyword matching is case
sensitive. All matching occurrences of the keyword are replaced with the
corresponding value.
Modification
This command was introduced.
The parameter value keywords were added.
View all macros on the switch by using the show parser macro user EXEC command. View the
contents of a specific macro by using the show parser macro macro-name user EXEC command.
Keywords that begin with $ designate that a unique parameter value is required. Append the
Cisco-default macro with the required values by using the parameter value keywords.
Catalyst 3750 Switch Command Reference
macro apply
2-143

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents