C H A P T E R 19 Configuring Cisco Ios Auto Smartport Macros - Cisco Catalyst 4500 Series Configuration Manual

Release ios xe 3.3.0sg and ios 15.1(1)sg
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

About Auto Smartport Macros
System built-in event triggers exist for various devices based mostly on CDP and LLDP messages
(Table
DMP is detected using the MAC address. Starting with Cisco IOS Release 15.0(2)SG, DMP is also
detected using CDP.) These triggers are enabled as long as Auto Smartport is enabled.
You can also define your own trigger. User-defined triggers can be CDP/LLDP-based, a group of MAC
addresses, or the value of the attribute-value (AV) pair for the auto-smart-port keyword.
The Auto Smartport macros are groups of CLI commands. Detection of devices on a port triggers the
application of the macro for the device. (For example, detecting a CISCO_PHONE event on a port
triggers the switch to apply the commands in the CISCO_PHONE_AUTO_SMARTPORT macro.)
System built-in macros exist for various devices, and, by default, system built-in triggers are mapped to
the corresponding built-in macros. You can change the mapping of built-in triggers or macros as needed.
A macro basically applies or removes a set of CLIs on an interface based on the link status. In a macro,
the link status is checked. If the link is up, then a set of CLIs is applied; if the link is down, the set is
removed (the no format of the CLIs are applied). The part of the macro that applies the set of CLIs is
termed macro. The part that removes the CLIs (the no format of the CLIs) are termed antimacro.
Besides creating user-defined triggers, you can also create user-defined macros and map one to the other
among all triggers (both built-in and user-defined) and all macros (both built-in and user-defined). Use
the Cisco IOS scripting capability to create the macros. Cisco IOS scripting is a BASH-like language
syntax for command automation and variable replacement.
The four detection mechanisms adhere to the following order of priority:
Device Classifier
Starting with Cisco Release IOS XE 3.3.0SG and IOS 15.1(1)SG, the device classifier (DC) feature is
enabled by default on the Catalyst 4500 series switch.
The DC collects information from MAC-OUI and protocols such as CDP, LLDP, and DHCP to identify
devices. You must enable CDP and LLDP on the switch. To make DHCP options information available
to the DC, you must enable the DHCP snooping feature on the switch. The device attributes collected
from these protocols are evaluated against a set of profiles available to the DC to find the best match.
The best-matched profile is used for device identification.
Devices that do not send CDP, LLDP or DHCP traffic may not be properly identified by the device
classifier.
Device-classifier uses profile definitions—built-in and default profiles. The built-in profiles contain the
device profiles that are known to the Auto Smartport module, comprising a limited set of Cisco devices.
They are built into Cisco IOS and cannot be changed. The default profiles are stored as a text file in
nonvolatile storage and allow the DC to identify a much larger set of devices. The default profiles are
updated as part of the Cisco IOS archive download.
Software Configuration Guide—Release IOS XE 3.3.0SG and IOS 15.1(1)SG
19-2
19-1) and some MAC address.and some MAC address. (Through Cisco IOS Release 12.2(54)SG,
If 802.1X authentication is configured on a port, an authentication response-based trigger is applied,
and other triggers are ignored.
If 802.1X authentication fails and the CDP/LLDP fallback mechanism is configured, CDP/LLDP
triggers for phone devices only; if no fallback mechanism is configured, or a device is not a phone
device, nothing is triggered.
If 802.1X authentication is configured on a port, a MAC address-based trigger is never triggered.
If 802.1X authentication is not configured on a port, CDP/LLDP has priority over a MAC
address-based trigger with a hold-off timer applied for MAC-address based trigger. Between
CDP/LLDP, there is no particular order; whichever one arrives first is triggered.
Chapter 19
Configuring Cisco IOS Auto Smartport Macros
OL-25340-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents