![Cisco Sx350 Cli Manual Download Page 807](http://html.mh-extra.com/html/cisco/sx350/sx350_cli-manual_2609320807.webp)
Macro Commands
Cisco Sx350 Ph. 2.2.5 Devices - Command Line Interface Reference Guide
806
38
@
Example 2 -The following example shows how to create a macro with the
parameters: DUPLEX and SPEED. When the macro is run, the values of DUPLEX
and SPEED must be provided by the user. The #macro keywords command
enables the user to receive help for the macro as shown in Example 3.
switchxxxxxx(config)#
macro name
duplex
Enter macro commands one per line. End with the character ‘@’.
duplex $DUPLEX
no negotiation
speed $SPEED
#
macro keywords
$DUPLEX $SPEED
@
Example 3 -The following example shows how to display the keywords using the
help character ? (as defined by the #macro keywords command above) and then
run the macro on the port. The #macro keywords command entered in the macro
definition enables the user to receive help for the macro, as shown after the words
e.g. below.
switchxxxxxx(config)#
interface
gi11
switchxxxxxx(config-if)#
macro apply
duplex ?
WORD <1-32> Keyword to replace with value e.g. $DUPLEX, $SPEED
<cr>
switchxxxxxx(config-if)#
macro apply
duplex $DUPLEX ?
WORD<1-32> First parameter value
<cr>
switchxxxxxx(config-if)#
macro apply
duplex $DUPLEX full $SPEED ?
WORD<1-32> Second parameter value
switchxxxxxx(config-if)#
macro apply
duplex $DUPLEX full $SPEED 100
38.2 macro
Use the macro apply/trace Interface Configuration command to either:
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 ...