HP Cisco Catalyst Blade Switch 3020 Cisco Catalyst Blade Switch 3020 for HP Co - Page 198
macro keywords, macro apply, macro description, macro global, show parser macro
View all HP Cisco Catalyst Blade Switch 3020 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 198 highlights
macro name Chapter 2 Cisco Catalyst Blade Switch 3020 for HP Cisco IOS Commands 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 gigabitethernet0/1 Switch(config-if)# macro apply test ? WORD keyword to replace with a value e.g $VLANID,$MAX Switch(config-if)# macro apply test $VLANID ? WORD Value of first keyword to replace Switch(config-if)# macro apply test $VLANID 2 WORD keyword to replace with a value e.g $VLANID,$MAX Switch(config-if)# macro apply test $VLANID 2 $MAX ? WORD Value of second keyword to replace Related Commands Command macro apply macro description macro global macro global description show parser macro 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. 2-170 Cisco Catalyst Blade Switch 3020 for HP Command Reference OL-8916-01