Macro name – Dell POWEREDGE M1000E User Manual

Page 347

Advertising
background image

2-317

Cisco Catalyst Blade Switch 3130 and 3032 for Dell Command Reference

OL-13271-03

Chapter 2 Cisco Catalyst Blade Switch 3130 and 3032 for Dell Cisco IOS Commands

macro name

macro name

Use the macro name global configuration command on the switch stack or on a standalone switch 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

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.

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.

macro-name

Name of the macro.

Release

Modification

12.2(40)EX1

This command was introduced.

Advertising