Applying Smartport Macros - Cisco Catalyst 4500 Series Software Configuration Manual

Cisco ios xe release 3.9.xe and cisco ios release 15.2(5)ex
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

Configuring SmartPort Macros

Applying SmartPort Macros

To apply a SmartPort macro, perform this task:
Command
Step 1
Switch# configure terminal
Step 2
Switch(config)# macro global
}
trace
macro-name
[
{
parameter
value
{
}]
value
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
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
21-8
Purpose
Enters global configuration mode.
{
|
Applies each individual command defined in the macro to the switch by
apply
[
{
}]
parameter
value
entering macro global apply macro-name. Specify macro global trace
}] [
parameter
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
switch. 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 global 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.
(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
apply
[
{
}]
parameter
value
by entering macro apply macro-name. Specify macro trace
}] [
parameter
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 ?
(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.
WORD
Keyword to replace with a value e.g. $AVID, $VVID
<cr>
Chapter 21
Configuring SmartPort Macros

Advertisement

Table of Contents
loading

Table of Contents