beautypg.com

Sample cli scripts – Dell PowerEdge VRTX User Manual

Page 261

background image

261

FILE LOCATION: C:\Users\gina\Desktop\Checkout_new\Dell Plasma\User

Guide\Plasma_UGSwitching_Ports.fm

D E L L CO N F I D E N T I A L – P R E L I MI N A RY 4/ 1 8 /1 3 - F O R PR O O F O N LY

The following is an example of the CLI commands:

Sample CLI Scripts

This section provides sample scripts of CLI commands. These particular

actions cannot be performed through the GUI, which only allows applying

built-in macros. These scripts describe how to create macros, display them

and apply them.
The following is a script that creates a global macro.

Switch(config) # interface gi0/2

Switch(config-if) # macro trace dup

Applying command… ‘duplex full’

Applying command… ‘speed auto’

Switch(config) # interface gi0/2

Switch(config-if) # macro apply duplex $DUPLEX full

$SPEED auto

Switch(config-if) # exit

Switch(config) # interface gi0/3

Switch(config-if) # macro apply dup

Switch(config-if) # exit

Table 8-6. Create a Global Macro Script

CLI Command

Description

console#config

console(config)# macro name interswitch

Enter macro commands one per line. End

with the character '@'.

Create a macro called

interswitch.

vlan database

vlan 40-50

@

Enter the commands in

the macro, which create

VLANs 40 through 50.

console(config)# do show parser macro

name interswitch

Display the macro.

console(config)# macro global apply

interswitch

Apply the macro.