2-437
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 (remotely-defined trigger)
macro auto execute (remotely-defined trigger)
Use the macro auto execute configuration command to map a trigger to a remotely defined function.
Use the no form of this command to unmap the trigger.
macro auto execute trigger_name remote url
no macro auto execute trigger_name remote url
Syntax Description
Defaults None
Command Modes Global configuration
Command History
Usage Guidelines This command enables you to store shell functions in a central location and utilized by ASP on many
switches. This alleviates the problem of updating functions on every switch for each modification.
Triggering of the remotely defined function requires network connectivity to the URL, which is
accessed for each execution of the function.
Examples This example shows how to map a trigger to the remotely defined function myfunction - the filename
that contains the function body:
Switch(config)# macro auto execute mytrigger remote tftp://dirt/tftpboot/myfunction
Related Commands
trigger_name
Specifies the trigger name.
url
Specifies the remotely-defined URL
Release Modification
12.2(54)SG This command was introduced on the Catalyst 4500 series switch.
Command Description
macro auto device Simplifies changing the parameters for a built-in functions for a
device type.
macro auto execute (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
(user-defined function)
Maps a trigger to a user-defined function.
macro auto global processing Enables Auto Smartports on a switch.
macro auto processing Enable Auto SmartPorts macros on a specific interface.