22-3
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
Device Visibility Mode
The DC function is enabled on the switch by default. You can disable it by using the no macro auto
monitor global configuration command. The DC feature provides show commands to display the
devices that are connected to the switch. It also provides information about the physical port to which
the device is connected, along with device MAC address and other vendor information. Only directly
connected devices, such as another Layer 2 switch, are classified on nonaccess ports. On access ports
that are connected to hubs, device classification is limited to 32 devices.
When you enable Auto Smartport, the DC is automatically enabled.
Configuring Auto Smartport Macros
The following topics are included:
• Enabling Auto Smartport Macros, page 22-3
• Auto Smartport Configuration Guidelines, page 22-5
• Configuring Auto Smartport Built-in Macro Parameters, page 22-6
• Configuring User-Defined Event Triggers, page 22-8
• Configuring Mapping Between User-Defined Triggers and Built-in Macros, page 22-9
• Configuring Auto Smartport User-Defined Macros, page 22-10
Enabling Auto Smartport Macros
Note By default, Auto Smartport is disabled globally. To disable Auto Smartport 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 Smartport macros, perform this task:
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.