Cisco Catalyst 4500 series Administration Manual page 613

Hide thumbs Also See for Catalyst 4500 series:
Table of Contents

Advertisement

Chapter 20
Configuring SmartPort Macros
Command
Step 3
Switch(config)# macro global
description text
Step 4
Switch(config-if)# interface
interface-id
Step 5
Switch(config-if)# default interface
interface-id
Step 6
Switch(config-if)# macro
}
trace
macro-name
[
{
parameter
value
{
}]
value
Step 7
Switch(config-if)# macro description
text
Step 8
Switch(config-if)# end
Step 9
Switch# show parser macro
[
description
interface interface-id
Step 10
Switch# copy running-config
startup-config
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:
OL_28731-01
{
|
apply
[
{
}]
parameter
value
}] [
parameter
]
cisco-global, page 20-10
cisco-desktop, page 20-10
cisco-phone, page 20-11
cisco-switch, page 20-11
Purpose
(Optional) Enters a description about the macro that is applied to the
switch.
(Optional) Enters interface configuration mode, and specify the
interface on which to apply the macro.
(Optional) Clears all configuration from the specified interface.
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>
(Optional) Enters a description about the macro that is applied to the
interface.
Returns to privileged EXEC mode.
Verifies that the macro is applied to the interface.
(Optional) Saves your entries in the configuration file.
Software Configuration Guide—Release IOS XE 3.6.0E and IOS 15.2(2)E
Configuring SmartPort Macros
20-9

Advertisement

Table of Contents
loading

Table of Contents