Cisco 300 Series Cli Manual page 689

Stackable managed switches
Hide thumbs Also See for 300 Series:
Table of Contents

Advertisement

32
689
Apply a macro to the interface while displaying the actions being
performed
Syntax
macro {apply | trace}
value
parameter-name3 value
] [
Parameters
apply—Apply a macro to the specific interface.
trace—Apply and trace a macro to the specific interface.
macro-name
—Name of the macro.
parameter-name value
its name and value. You can enter up to three parameter-value pairs.
Parameter keyword matching is case sensitive. All matching occurrences of
the parameter name in the macro are replaced with the corresponding
value.
Default Configuration
The command has no default setting.
Command Mode
Interface (Ethernet, Port Channel) Configuration mode
User Guidelines
The macro apply command hides the commands of the macro from the user while
it is being run. The macro trace command displays the commands along with any
errors which are generated by them as they are executed. This is used to debug
the macro and find syntax or configuration errors.
When you run a macro, if a line in it fails because of a syntax or configuration error,
the macro continues to apply the remaining commands to the interface.
If you apply a macro that contains parameters in its commands, the command fails
if you do not provide the values for the parameters. You can use the macro apply
macro-name
with a '?' to display the help string for the macro keywords (if you
have defined these with the #macro keywords preprocessor command).
Parameter (keyword) matching is case sensitive. All matching occurrences of the
parameter are replaced with the provided value. Any full match of a keyword, even
macro-name
parameter-name1 value
[
]
—For each parameter defined in the macro, specify
OL-32830-01 Command Line Interface Reference Guide
Macro Commands
parameter-name2
] [

Advertisement

Table of Contents
loading

Table of Contents