21-4
Software Configuration Guide—Release IOS XE 3.6.0E and IOS 15.2(2)E
OL_28731-01
Chapter 21 Configuring Cisco IOS Auto Smartport Macros
Configuring Auto Smartport Macros
To enable Auto Smartport macros, perform this task:
Use the show shell functions and the show shell triggers privileged EXEC command to display the event
triggers, the built-in macros, and the built-in macro default values.
This example shows how enable Auto Smartport on the switch and how to disable the feature on a
specific interface:
Switch(config)# macro auto global processing
Switch(config)# interface interface_id
Switch(config-if)# no macro auto processing
Auto Smartport Default Configuration
By default, Cisco IOS shell is enabled and Auto Smartport is disabled globally.
Table 21-1 shows the Auto Smartport built-in event triggers that are embedded in the switch software by
default.
Command Purpose
Step 1
Switch# configure terminal
Enters global configuration mode.
Step 2
Switch(config)# [no] macro auto
global
processing [cdp | lldp]
Enables Auto Smartport on the switch globally.
Note Starting with Release 15.0(2)SG, the fallback option has been
deprecated.
Use no macro auto global processing to disable Auto Smartport
globally.
Note The macro auto processing command turns Auto Smartport on
or off on the interface level. The default is on.
Step 3
Switch(config)# end
Returns to privileged EXEC mode.
Step 4
Switch# show running-config
Verifies that Auto Smartport is enabled.
Step 5
Switch# copy running-config
startup-config
(Optional) Saves your entries in the configuration file.
Table 21-1 Auto Smartport Built-in Event Trigger Macros
Event Trigger Name Description
CISCO_PHONE_EVENT System detects that a phone device is connected to an interface.
CISCO_SWITCH_EVENT System detects that a switch is connected to an interface.
CISCO_ROUTER_EVENT System detects that a router is connected to an interface.
CISCO_WIRELESS_AP_EVENT System detects that a wireless application is connected to an
interface.
CISCO_WIRELESS_LIGHTWEIGHT_AP_EVENT System detects that a wireless lightweight application is connected
to an interface.
CISCO_DMP_EVENT System detects that a digital media player is connected to an
interface.
CISCO_IPVSC_EVENT System detects that an IP video surveillance camera is connected
to an interface.