2-434
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
OL-27596 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
macro auto execute (built-in function)
macro auto execute (built-in function)
Use the macro auto execute configuration command to change built-in function default values or to map
user-defined triggers to built-in functions and to pass the parameter values. Use the no form of this
command to unmap the trigger.
macro auto execute event_trigger builtin shell_function [param name=values]
no macro auto execute event_trigger builtin shell_function [param name=values]
Syntax Description
Defaults Auto Smartports is disabled.
Command Modes Global configuration
event_trigger
Defines mapping from an event trigger to a built-in macro.
Specify an event trigger:
• 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.
shell_function
Specifies a built-in macro name:
• 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
param name=value
(Optional) Specifies values for the parameters that are to be used in the
function body.