hit counter script

Macro - Cisco 300 Series Cli Manual

Small business 300 series managed switches command line interface guide release 1.3
Hide thumbs Also See for 300 Series:
Table of Contents

Advertisement

Macro Commands
78-21075-01 Command Line Interface Reference Guide
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) #
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-if)#interface gi1
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
3.2

macro

Use the macro apply/trace Interface Configuration command to either:
Apply a macro to an interface without displaying the actions being
performed
Apply a macro to the interface while displaying the actions being
performed
macro name duplex
3
57

Advertisement

Table of Contents
loading

Table of Contents

Save PDF