Macro Commands
78-21075-01 Command Line Interface Reference Guide
appended to the macro history of the interface. The
displays the macro history of an interface.
A macro applied to an interface range behaves the same way as a macro applied
to a single interface. When a macro is applied to an interface range, it is applied
sequentially to each interface within the range. If a macro command fails on one
interface, it is nonetheless attempted to be applied and may fail or succeed on the
remaining interfaces.
Examples
Example 1 - The following is an example of a macro being applied to an interface
with the trace option.
switchxxxxxx(config) #
switchxxxxxx<config-if> #
Applying command...
Applying command...
switchxxxxxx<config-if> #
Example 2 - The following is an example of a macro being applied without the
trace option.
switchxxxxxx(config) # interface gi2
switchxxxxxx<config-if> #
switchxxxxxx<config-if> #
Example 3 - The following is an example of an incorrect macro being applied.
switchxxxxxx(config-if)#macro trace dup
Applying command...'duplex full'
Applying command...'speed auto'
% bad parameter value
3.3
macro description
Use the macro description Interface Configuration mode command to append a
description, for example, a macro name, to the macro history of an interface. Use
the no form of this command to clear the macro history of an interface. When the
interface gi2
macro trace dup $DUPLEX full $SPEED 100
'duplex full'
'speed 100'
macro apply dup $DUPLEX full $SPEED 100
show parser macro
command
3
59