Command syntax, Example command, About the target variable – HP 3Gb SAS Switch for HP BladeSystem c-Class User Manual

Page 61: Example command about the target variable

Advertising
background image

Command syntax

A typical VSM CLI command string consists of three variables: a target device, a command, and
a clarifying parameter. The syntax of a VSM CLI command line is as follows:

target command

[

parameter=<option>

]

The following conventions apply to all VSM CLI command strings:

A basic command string includes identifying information about the target, along with a
command word and clarifying parameters, if required or desired.

Commands are not case sensitive.

Some target names can be abbreviated.

The VSM CLI does not support line-continuation characters. If all characters of a command
cannot fit on one line of the VSM CLI, the command wraps to the next line on the screen. The
maximum command length is 255 characters.

Example command

The following example shows the use of target, command, and parameter variables in a VSM CLI
command string to update network settings on a switch:

=> switch local network hostname=XXX dhcp=on gateway=XXX.XXX.XXX.XXX

Target variable:

switch local

Command variable:

network

Required parameter:

hostname=XXX

Optional parameter:

dhcp=off|on

Optional parameter:

gateway=XXX.XXX.XXX.XXX

About the

target

variable

The target variable provides the path to the device you want to configure. The device can be a
c-Class BladeSystem enclosure, an enclosure device bay, an enclosure interconnect bay, an external
storage enclosure, or a zone group.

Syntax for the target portion of a command is as follows:

Device

Supported parameters

Target syntax

c-Class BladeSystem enclosure

[

all

] [

local

]

[

serialnumber=serial_number

]

[

chassisname=chassis_name

]

bladeenclosure

Device bay in a BladeSystem enclosure

[

all

] [

#

]

bladebay

Switch in a BladeSystem enclosure

[

all

] [

#

] [

local

] [

remote

] [

wwid

]

switch

Switch port (must be preceeded by a blade
enclosure or switch target)

[

all

] [

#

]

bladeswitchport

External storage enclosure connected to a SAS
switch blade

[

all

] [

#

]

storageenclosure

Storage enclosure drive bay (must be preceeded
by a blade enclosure or switch target)

[

all

] [

#

]

storageenclosurebay

Zone group (must be preceeded by a blade
enclosure or switch target)

[

all

] [

#

]

zonegroup

Example target entries in a command string:

Command syntax

61

Advertising