17-6
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 17 Configuring Auto SmartPort Macros
Configuring Auto SmartPorts
Configuring Auto SmartPorts Built-in Macro Parameters
The switch automatically maps from built-in event triggers to built-in macros. You can replace the
built-in macro default values with values that are specific to your switch.
To configure Auto SmartPorts built-in macros parameters, perform this task:
Command Purpose
Step 1 Switch# configure terminal Enters global configuration mode.
Step 2 Switch(config)# macro auto execute
event trigger builtin built-in
macro name [parameter=value]
[parameter=value]
Defines mapping from an event trigger to a built-in macro.
Specify an event trigger value:
CISCO_PHONE_EVENT
CISCO_SWITCH_EVENT
CISCO_ROUTER_EVENT
CISCO_WIRELESS_AP_EVENT
CISCO_WIRELESS_LIGHTWEIGHT_AP_EVENT
CISCO_DMP_EVENT
CISCO_IPVSC_EVENT
WORD—Apply a user-defined event trigger.
Specify a built-in macro name value:
CISCO_PHONE_AUTO_SMARTPORT
(Optional) Specify the parameter values: $ACCESS_VLAN=(1) and
$VOICE_VLAN=(2).
CISCO_SWITCH_AUTO_SMARTPORT
(Optional) Specify the parameter values: $NATIVE_VLAN=(1).
CISCO_ROUTER_AUTO_SMARTPORT
(Optional) Specify the parameter values: $NATIVE_VLAN=(1).
CISCO_AP_AUTO_SMARTPORT
(Optional) Specify the parameter values: $NATIVE_VLAN=(1).
CISCO_LWAP_AUTO_SMARTPORT
(Optional) Specify the parameter values: $ACCESS_VLAN=(1).
CISCO_DMP_AUTO_SMARTPORT
CISCO_IP_CAMERA_AUTO_SMARTPORT
(Optional) parameter=value—Replace default values that begin with $.
Enter new values in the form of name value pair separated by a space:
[name1=value1 name2=value2...]. Default values are shown in
parenthesis.
Step 3 Switch(config)# end Returns to privileged EXEC mode.
Step 4 Switch# show running-config Verifies your entries.
Step 5 Switch# copy running-config
startup-config (Optional) Saves your entries in the configuration file.