CLI Reference Guide

CLI Macro Commands 1429
Command Mode
Global Configuration mode
User Guidelines
Macros consist of text commands with one command per line. Enter the
commands and terminate macro input mode by entering a single at sign (@)
on a line by itself.
A macro may utilize up to 3 parameters. Parameters are text strings that begin
with a dollar sign ($). Parameters are substituted by specifying the parameter
on the command line when the macro is applied.
Macros may be applied to a specific interface, a range of interfaces, or to the
global configuration. Up to 50 user-defined macros may be configured.
macro global apply
Use the macro global apply command in Global Configuration mode to
apply a macro.
Syntax
macro global apply
macro-name
[
parameter value
] [
parameter
value
][
parameter value
]
macro-name
—The name of the macro.
parameter
The name of the parameter recognized by the macro. The
parameter must begin with a dollar sign ($).
value
The string to be substituted within the macro for the specified
parameter name.
default interface :profile-phone
default interface :profile-switch
default interface :profile-router
default interface :profile-wireless
default global :profile-compellent-nas
Macro Default Definition
2CSNXXX_SWUM200.book Page 1429 Tuesday, December 10, 2013 1:22 PM