Macro Name - Cisco Catalyst 3550 Command Reference Manual

Multilayer switch
Hide thumbs Also See for Catalyst 3550:
Table of Contents

Advertisement

Chapter 2
Cisco IOS Commands

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.
Syntax Description
macro-name
Defaults
This command has no default setting.
Command Modes
Global configuration
Command History
Release
12.1(19)EA1
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.
We recommend that you do not use the exit or end commands in a macro. This could cause commands
that follow exit or end to execute in a different command mode. For best results, all commands in a
macro should be interface configuration mode commands.
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.
You can modify a macro by creating a new macro with the same name as the existing macro. The newly
created macro overwrites the existing macro but does not affect the configuration of those interfaces on
which the original macro was applied.
Examples
This example shows how to create a macro that defines the duplex mode and speed:
Switch(config)# macro name duplex
Enter macro commands one per line. End with the character '@'.
duplex full
speed auto
@
78-11195-09
macro name macro-name
no macro name macro-name
Name of the macro.
Modification
This command was first introduced.
Catalyst 3550 Multilayer Switch Command Reference
macro name
2-151

Advertisement

Table of Contents
loading

Table of Contents