2-347
Catalyst 3750 Switch Command Reference
OL-8552-07
Chapter 2 Catalyst 3750 Switch Cisco IOS Commands
macro name
macro name
Use the
macro name
global configuration command to create a configuration macro. Use the
no
form
of this command to delete the macro definition.
macro name
macro-name
no macro name
macro-name
Note
Beginning with Cisco IOS Release 12.2(50)SE, the
macro auto execute
command replaces the
macro
name
command. Though not visible in the command line, the
macro name
command is still active. The
command will become obsolete in a future Cisco IOS software release.
Syntax Description
Defaults
This command has no default setting.
Command Modes
Global configuration
Command History
Usage Guidelines
A macro can contain up to 3000 characters. Enter one macro command per line. Use the
@
character to
end the macro. Use the
#
character at the beginning of a line to enter comment text within the macro.
You can define mandatory keywords within a macro by using a help string to specify the keywords. Enter
#
macro keywords
word
to define the keywords that are available for use with the macro. You can enter
up to three help string keywords separated by a space. If you enter more than three macro keywords,
only the first three are shown.
Macro names are case sensitive. For example, the commands
macro name Sample-Macro
and
macro
name sample-macro
will result in two separate macros.
When creating a macro, do not use the
exit
or
end
commands or change the command mode by using
interface
interface-id
. This could cause commands that follow
exit
,
end
, or
interface
interface-id
to
execute in a different command mode.
The
no
form of this command only deletes the macro definition. It does not affect the configuration of
those interfaces on which the macro is already applied. You can delete a macro-applied configuration
on an interface by entering the
default interface
interface-id
interface configuration command.
Alternatively, you can create an
anti-macro
for an existing macro that contains the
no
form of all the
corresponding commands in the original macro. Then apply the anti-macro to the interface.
macro-name
Name of the macro.
Release
Modification
12.1(19)EA1
This command was introduced.
12.2(20)SE
The help string
# macro keywords
was added.
12.2(50)SE
This command was deprecated.