Applying 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

Chapter 18
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
OL-25340-01
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.
WORD
Keyword to replace with a value e.g. $AVID, $VVID
<cr>
Software Configuration Guide—Release IOS XE 3.3.0SG and IOS 15.1(1)SG
Configuring SmartPort Macros
18-9

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents