14-3
Cisco IE 3000 Switch Software Configuration Guide
OL-13018-03
Chapter 14 Configuring Smartports Macros
Configuring Smartports Macros
Applying Smartports Macros
Beginning in privileged EXEC mode, follow these steps to apply a Smartports macro:
Command
Purpose
Step 1
show parser macro
Display the Cisco-default Smartports macros embedded in the switch
software.
Step 2
show parser macro name
macro-name
Display the specific macro that you want to apply.
Step 3
configure terminal
Enter global configuration mode.
Step 4
macro global
{
apply
|
trace
}
macro-name
[
parameter
{
value
}]
[
parameter
{
value
}] [
parameter
{
value
}]
Apply each individual command defined in the macro to the switch by
entering
macro global apply
macro-name
. Specify
macro global trace
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.
You can 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.
Step 5
interface
interface-id
(Optional) Enter interface configuration mode, and specify the interface
on which to apply the macro.
Step 6
default interface
interface-id
(Optional) Clear all configuration from the specified interface.
Step 7
macro
{
apply
|
trace
}
macro-name
[
parameter
{
value
}] [
parameter
{
value
}] [
parameter
{
value
}]
Apply each individual command defined in the macro to the port by
entering
macro global apply
macro-name
. Specify
macro global trace
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.
You can 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.
Step 8
end
Return to privileged EXEC mode.
Содержание IE 3000
Страница 36: ...xxxiv Cisco IE 3000 Switch Software Configuration Guide OL 13018 03 Preface ...
Страница 784: ...39 20 Cisco IE 3000 Switch Software Configuration Guide OL 13018 03 Chapter 39 Troubleshooting Troubleshooting Tables ...
Страница 874: ...Index IN 42 Cisco IE 3000 Switch Software Configuration Guide OL 13018 03 ...