EasyManua.ls Logo

Cisco Catalyst 4500 Series - Page 613

Cisco Catalyst 4500 Series
1814 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
20-9
Software Configuration Guide—Release IOS XE 3.6.0E and IOS 15.2(2)E
OL_28731-01
Chapter 20 Configuring SmartPort Macros
Configuring SmartPort Macros
You can delete a global macro-applied configuration on a switch only by entering the no version of each
command that is in the macro. You can delete a macro-applied configuration on an interface by entering
the default interface interface-id interface configuration command.
The no form of the macro name global configuration command deletes only 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 and apply the anti-macro
to the interface.
The following sections describe how to apply and display the attachments on each of the supported
macros:
cisco-global, page 20-10
cisco-desktop, page 20-10
cisco-phone, page 20-11
cisco-switch, page 20-11
Step 3
Switch(config)# macro global
description
text
(Optional) Enters a description about the macro that is applied to the
switch.
Step 4
Switch(config-if)# interface
interface-id
(Optional) Enters interface configuration mode, and specify the
interface on which to apply the macro.
Step 5
Switch(config-if)# default interface
interface-id
(Optional) Clears all configuration from the specified interface.
Step 6
Switch(config-if)# macro {apply |
trace} macro-name [parameter {value}]
[
parameter {value}] [parameter
{
value}]
Applies each individual command defined in the macro to the interface
by entering macro apply macro-name. Specify macro trace
macro-name to apply and debug a macro to find any syntax or
configuration errors.
(Optional) Specify unique parameter values that are specific to the
interface. You can enter up to three keyword-value pairs. Parameter
keyword matching is case sensitive. All matching occurrences of the
keyword are replaced with the corresponding value.
Some macros might contain keywords that require a parameter value.
Use the macro apply macro-name ? command to display a list of any
required values in the macro. If you apply a macro without entering the
keyword values, the commands are invalid and are not applied.
For example, here is how you apply this command:
Switch(config-if)# macro apply cisco-phone ?
WORD Keyword to replace with a value e.g. $AVID, $VVID
<cr>
Step 7
Switch(config-if)# macro description
text
(Optional) Enters a description about the macro that is applied to the
interface.
Step 8
Switch(config-if)# end
Returns to privileged EXEC mode.
Step 9
Switch# show parser macro
description
[interface interface-id]
Verifies that the macro is applied to the interface.
Step 10
Switch# copy running-config
startup-config
(Optional) Saves your entries in the configuration file.
Command Purpose

Table of Contents

Other manuals for Cisco Catalyst 4500 Series

Related product manuals