Cisco Systems 4500 Switch User Manual


  Open as PDF
of 1504
 
17-3
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 17 Configuring Auto SmartPort Macros
Configuring Auto SmartPorts
Enabling Auto SmartPorts
Note By default, Auto SmartPort is disabled globally. To disable Auto SmartPorts macros on a specific port,
use the no macro auto global processing interface command before enabling Auto SmartPort globally.
To enable Auto SmartPort globally, use the macro auto global processing global configuration
command.
To enable Auto SmartPorts, 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 SmartPorts 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 SmartPorts Default Configuration
By default, Cisco IOS shell is enabled and Auto SmartPorts is disabled globally.
Table 17-1 shows the Auto SmartPorts 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 SmartPorts 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 SmartPorts is enabled.
Step 5
Switch# copy running-config
startup-config
(Optional) Saves your entries in the configuration file.
Table 17-1 Auto SmartPorts 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.