Macro Commands; Macro Name - Cisco 300 Series Cli Manual

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

Advertisement

Macro Commands

OL-32830-01 Command Line Interface Reference Guide
32.0
32.1

macro name

Use the macro name Global Configuration mode command to define a macro.
There are two types of macros that can be defined:
Global macros define a group of CLI commands that can be run at any time.
Smartport macros are associated with Smartport types. For each
Smartport macro there must be an anti macro (a macro whose name is
concatenated with no_). The anti macro reverses the action of the macro.
If a macro with this name already exists, it overrides the previously-defined one.
Use the no form of this command to delete the macro definition.
Syntax
macro-name
macro name
macro-name
no macro name [
Parameters
macro-name
—Name of the macro. Macro names are case sensitive.
Default Configuration
N/A
Command Mode
Global Configuration mode
User Guidelines
A macro is a script that contains CLI commands and is assigned a name by the
user. It can contain up to 3000 characters and 200 lines.
Keywords
]
32
685

Advertisement

Table of Contents
loading

Table of Contents