Cisco Systems 4500 Switch User Manual


  Open as PDF
of 1504
 
17-8
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 17 Configuring Auto SmartPort Macros
Configuring Auto SmartPorts
To configure an event trigger, perform this task:
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.
Command Purpose
Step 1
Switch# configure terminal
Enters global configuration mode.
Step 2
Switch(config)# shell trigger
identifier description
Specifies the event trigger identifier and description.
The identifier should have no spaces or hyphens between words.
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
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.