2-159
Cisco ME 3800X and ME 3600X Switch Command Reference
OL-28238-01
Chapter 2 Cisco ME 3800X and ME 3600X Switch Cisco IOS Commands
macro apply
macro apply
To apply a macro to an interface or to apply and trace a macro configuration on an interface, use the
macro apply
or
macro trace
command in interface configuration command.
macro
{
apply
|
trace
}
macro-name
[
parameter
value
] [
parameter
value
] [
parameter
value
]
Note
There is not a
no
form of this command.
Syntax Description
Defaults
This command has no default setting.
Command Modes
Interface configuration
Command History
Usage Guidelines
You can use the
macro trace
macro-name
interface configuration command to apply and 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.
Some macros might contain keywords that require a parameter value. You can use the
macro apply
macro-name
?
command to display a list of any required values in the macro. If you apply a macro
without entering the keyword values, the commands are invalid and are not applied.
When you apply a macro to an interface, the macro name is automatically added to the interface. You
can display the applied commands and macro names by using the
show running-configuration
interface
interface-id
user EXEC command.
apply
Applies a macro to the specified interface.
trace
Uses the
trace
keyword to apply a macro to an interface and to debug the macro.
macro
-
name
Specifies the name of the macro.
parameter
value
(Optional) Specifies unique parameter values that are specific to the interface. You
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.
Release
Modification
12.2(52)EY
This command was introduced.
Summary of Contents for ME 3600X
Page 14: ...Contents xiv Cisco ME 3800X and ME 3600X Switch Command Reference OL 28238 01 ...
Page 534: ... 100 Cisco ME 3800X and ME 3600X Switch Command Reference OL 28238 01 Chapter xconnect ...
Page 625: ...Index IN 15 Cisco ME 3800X and ME 3600X Switch Command Reference OL 28238 01 ...
Page 626: ...Index IN 16 Cisco ME 3800X and ME 3600X Switch Command Reference OL 28238 01 ...
Page 627: ...Index IN 17 Cisco ME 3800X and ME 3600X Switch Command Reference OL 28238 01 ...
Page 628: ...Index IN 18 Cisco ME 3800X and ME 3600X Switch Command Reference OL 28238 01 ...