Macro Commands
Cisco Sx350 Ph. 2.2.5 Devices - Command Line Interface Reference Guide
38.0
38.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.
]
38
803