Applying Static 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 Static SmartPort Macros

Applying Static SmartPort Macros

To apply a static SmartPort macro, perform these steps, beginning in privileged EXEC mode:
Command
Step 1
show parser macro
Step 2
show parser macro name macro-name
Step 3
configure terminal
{
Step 4
macro global
apply
[
macro-name
parameter
[
{
parameter
value
{
}]
value
Step 5
interface interface-id
Step 6
default interface interface-id
{
|
Step 7
macro
apply
trace
[
{
parameter
value
{
}] [
value
parameter
Step 8
end
Step 9
show running-config interface
interface-id
Step 10
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-14
Purpose
Displays the Cisco-default
switch software.
Displays the specific macro that you want to apply.
Enters global configuration mode.
|
}
Applies each individual command defined in the macro to the switch by
trace
{
}]
value
entering macro global apply macro-name. Specify macro global trace
}] [
parameter
macro-name to apply and to debug a macro to find any syntax or
configuration errors.
Append the macro with the required values by using the parameter
value keywords. Keywords that begin with $ require a unique parameter
value.
Use the macro global apply macro-name ? command to display a list of
any required values for the macro. If you apply a macro without entering
the keyword values, the commands are invalid and are not applied.
(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. The corresponding value replaces
all matching occurrences of the keyword.
(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 port by
macro-name
}] [
parameter
entering macro global apply macro-name. Specify macro global trace
{
}]
value
macro-name to apply and to debug a macro to find any syntax or
configuration errors.
Append the macro with the required values by using the parameter
value keywords. Keywords that begin with $ require a unique parameter
value.
Use the macro global apply macro-name ? command to display a list of
any required values for the macro. If you apply a macro without entering
the keyword values, the commands are invalid and are not applied.
(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. The corresponding value replaces
all matching occurrences of the keyword.
Returns to privileged EXEC mode.
Verifies that the macro is applied to an interface.
(Optional) Saves your entries in the configuration file.
Chapter 21
Configuring SmartPort Macros
static
SmartPort macros embedded in the

Advertisement

Table of Contents
loading

Table of Contents