Cisco IE-3000-8TC Command Reference Manual page 232

Command reference
Hide thumbs Also See for IE-3000-8TC:
Table of Contents

Advertisement

macro name
Examples
This example shows how to create a macro that defines the duplex mode and speed:
Switch(config)# macro name duplex
Enter macro commands one per line. End with the character '@'.
duplex full
speed auto
@
This example shows how create a macro with # macro keywords:
Switch(config)# macro name test
switchport access vlan $VLANID
switchport port-security maximum $MAX
#macro keywords $VLANID $MAX
@
This example shows how to display the mandatory keyword values before you apply the macro to an
interface:
Switch(config)# interface gigabitethernet1/1
Switch(config-if)# macro apply test ?
WORD
<cr>
Switch(config-if)# macro apply test $VLANID ?
WORD
Switch(config-if)# macro apply test $VLANID 2
WORD
<cr>
Switch(config-if)# macro apply test $VLANID 2 $MAX ?
WORD
Related Commands
Command
macro apply
macro description
macro global
macro global description
show parser macro
Cisco IE 3000 Switch Command Reference
2-206
keyword to replace with a value e.g
Value of first keyword to replace
keyword to replace with a value e.g
Value of second keyword to replace
Description
Applies a macro on an interface or applies and traces a macro on an
interface.
Adds a description about the macros that are applied to an interface.
Applies a macro on a switch or applies and traces a macro on a switch
Adds a description about the macros that are applied to the switch.
Displays the macro definition for all macros or for the specified macro.
Chapter 2
IE 3000 Switch Cisco IOS Commands
$VLANID,$MAX
$VLANID,$MAX
OL-13019-01

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ie 3000

Table of Contents