![Cisco Sx350 Cli Manual Download Page 809](http://html.mh-extra.com/html/cisco/sx350/sx350_cli-manual_2609320809.webp)
Macro Commands
Cisco Sx350 Ph. 2.2.5 Devices - Command Line Interface Reference Guide
808
38
Parameter (keyword) matching is case sensitive. All matching occurrences of the
parameter are replaced with the provided value. Any full match of a keyword, even
if it is part of a large string, is considered a match and replaced by the
corresponding value.
When you apply a macro to an interface, the switch automatically generates a
macro description command with the macro name. As a result, the macro name is
appended to the macro history of the interface. The show parser macro command
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)#
interface
gi12
switchxxxxxx(config-if)#
macro trace
dup $DUPLEX full $SPEED 100
Applying command… ‘duplex full’
Applying command… ‘speed 100’
switchxxxxxx(config-if)#
Example 2 - The following is an example of a macro being applied without the
trace option.
switchxxxxxx(config)#
interface
gi12
switchxxxxxx(config-if)#
macro apply
dup $DUPLEX full $SPEED 100
switchxxxxxx(config-if)#
Example 3 - The following is an example of an incorrect macro being applied.
switchxxxxxx(config)#
interface
gi11
switchxxxxxx(config-if)#
macro trace dup
Applying command...'duplex full'
Applying command...'speed auto'
Summary of Contents for Sx350
Page 1: ...Cisco Sx350 Ph 2 2 5 Devices Command Line Interface Reference Guide CLI GUIDE ...
Page 26: ...25 Cisco Sx350 Ph 2 2 5 Devices Command Line Interface Reference Guide 1 ...
Page 237: ...CDP Commands Cisco Sx350 Ph 2 2 5 Devices Command Line Interface Reference Guide 236 8 ...
Page 975: ...RADIUS Commands Cisco Sx350 Ph 2 2 5 Devices Command Line Interface Reference Guide 974 48 ...