22-9
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 22 Configuring Cisco IOS Auto Smartport Macros
Configuring Auto Smartport Macros
Use the
no shell trigger
identifier
global configuration command to delete the event trigger.
The following example shows how to define a user-defined trigger:
Switch#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
shell trigger RADIUS_MAB_EVENT MAC_AuthBypass Event
Switch(config)#
MAC Address-Based Event Trigger
To configure a MAC address group as an event trigger, perform this task:
Use the
no macro auto mac-address-group
grp_name
to delete the event trigger.
Configuring Mapping Between User-Defined Triggers and Built-in Macros
You need to map the user-defined trigger to either a built-in macro or user-defined macro.
To map a user-defined trigger to a built-in macros, perform this task:
Step 4
Switch#
show shell triggers
Displays the event triggers on the switch.
Step 5
Switch#
copy running-config
startup-config
(Optional) Saves your entries in the configuration file.
Command
Purpose
Command
Purpose
Step 1
Switch#
configure terminal
Enters global configuration mode.
Step 2
Switch(config)#
macro auto
mac-address
group
Specifies a group of MAC address as an event trigger.
Changes mode to config-mac-addr-grp. You can then add or remove the
MAC address or Organizational Unique Identifier (OUI) from the group.
The
group
value defines the user-defined trigger.
Step 3
Switch(config)#
end
Returns to privileged EXEC mode.
Step 4
Switch#
show shell triggers
Displays the event triggers on the switch.
Step 5
Switch#
copy running-config
startup-config
(Optional) Saves your entries in the configuration file.
Command
Purpose
Step 1
Switch#
configure terminal
Enters global configuration mode.
Step 2
Switch(config)#
macro auto execute
event trigger
builtin
built-in macro
name
[
parameter=value
]
[
parameter=value
]
Specifies a user-defined event trigger and a macro name. This action
replaces built-in macro default values, and configures mapping from an
event trigger to a built-in Auto Smartport macros.
Note
When performing a mapping, you must provide parameter
values. For example, you must specify $ACCESS_VLAN=(1)
and $VOICE_VLAN=(2) for the macro
CISCO_PHONE_AUTO_SMARTPORT.
Summary of Contents for Catalyst 4500 Series
Page 2: ......
Page 4: ......
Page 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...