Specifications

2-347
Catalyst 4500 Se ries S wit ch C is co IO S C om mand R efer ence —Re lease I OS XE 3 .3.0 XO(1 5.1 (1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
macro auto device
macro auto device
Use the ma cro auto device command to simplify changing the parameters for a built-in functions for a
device type. Use the no form of this command to revert to the intial parameter values.
macro auto device device_type [params values]
no macro auto de vice de vic e_t ype [ params values]
Syntax Description
Command Modes Global configuration
Usage Guidelines Although you can use the macro auto execute command to produce the same effect as the
macro auto device command, the later is simpler.
Examples This example shows how to change the access VLAN and voice VLAN from their default value to user
defined values for phone devices.
(config)# macro auto device phone ACCESS_VLAN=10 VOICE_VLAN=20
Related Commands
device_type Specifies the device type.
phone—Apply interfac e configs on detecting a phone
switch—Apply interface configs on detecting a switch
router—Apply interface configs on detecting a router
ap—Apply interface configs on detecting an a p
lwap—Apply interface configs on detecting a light weight ap
dmp—Apply interface configs on detecting a DMP
ipvsc—Apply interfac e configs on detecting a I PVSC
param name=value (Optional) parameter=val ue—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.
Command Description
macro auto ex ecute (built -in
function)
Changes built-in function default values or to map user-defined
triggers to built-in functions, and to pass the parameter values.
macro auto execute
(remotely-defined tri gger)
Maps a trigger to a remotely defined functions.
macro auto execute
(user-defi ned fun ction)
Maps a trigger to a user-defined function.
macro auto global p rocessing Enables Auto Smartports on a switch.
macro auto processing Enables Auto SmartPorts macros on a specific interface.