Creating Smartport Macros - Cisco Catalyst 4500 Series Configuration Manual

Release ios xe 3.3.0sg and ios 15.1(1)sg
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

Configuring SmartPort Macros

Creating SmartPort Macros

To create a SmartPort macro, perform this task:
Command
Step 1
Switch# configure terminal
Step 2
Switch(config)# macro name
macro-name
Step 3
Switch(config)# end
Step 4
Switch# show parser macro name
macro-name
Software Configuration Guide—Release IOS XE 3.3.0SG and IOS 15.1(1)SG
18-8
Purpose
Enters global configuration mode.
Creates a macro definition, and enter a macro name. A macro definition
can contain up to 3000 characters.
Enter the macro commands with one 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.
Macro names are case sensitive. For example, the commands macro
name Sample-Macro and macro name sample-macro result in two
separate macros.
We recommend that you do not use the exit or end commands or change
the command mode by using interface interface-id in a macro. This
could cause any commands following exit, end, or interface
interface-id to execute in a different command mode. For best results,
all commands in a macro should be in the same configuration mode.
Note
The no form of the macro name global configuration command
only deletes the macro definition. It does not affect the
configuration of those interfaces on which the macro is already
applied.
Returns to privileged EXEC mode.
Verifies that the macro was created.
Chapter 18
Configuring SmartPort Macros
OL-25340-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents