Chapter 3: storcli command syntax – Avago Technologies MegaRAID SAS 9240-4i User Manual

Page 8

Advertising
background image

LSI Corporation

- 8 -

StorCLI Reference Manual

January 2013

Chapter 3: StorCLI Command Syntax

Chapter 3: StorCLI Command Syntax

This chapter describes the StorCLI command syntax and the valid values for each parameter in the general
command syntax.

The StorCLI syntax uses the following general format:

<[object identifier]> <verb> <[adverb | attributes | properties] > <[key=value]>

The StorCLI tool supports the object identifiers listed in the following table.

NOTE To get the output in JSON format, add J at the end of the command syntax.

Example: storcli /cx show <property1>|<property2> J.

NOTE

JSON format output is not supported in

the EFI operating system

. The EFI platform ignores the

J

when it is

added at the end of the command syntax.

NOTE Background operations are blocked in the EFI and HII environments and these operations are resumed in the
operating system environments.

Table 1 Object Identifiers in the StorCli Command Syntax

Object Identifier

Description

No object identifier specified If there is no object identifier, the command is a system command.

/cx

This object identifier is for controller x.

/cx/vx

This object identifier is for a virtual drive x on controller x.

/cx/vall

This object identifier is for all virtual drives on controller x.

/cx/ex

This object identifier is for an enclosure x on controller x.

/cx/eall

This object identifier is for all enclosures on controller x.

/cx/fx

This object identifier is for a foreign configuration x on controller x.

/cx/fall

This object identifier is for all foreign configurations on controller x.

/cx/ex/sx

This object identifier is for the drive is slot x on enclosure x on controller x.

/cx/sx

This object identifier represents the drives that are directly attached to controller x.

/cx/ex/sall

This object identifier is for all the drives on enclosure x on controller x.

/cx/dx

This object identifier is for the drive group x on enclosure x on controller x.

/cx/dall

This object identifier is for the all drive groups on enclosure x on controller x.

NOTE If enclosures are not used to connect physical drives to the controller, you do not specify the enclosure
ID in the command.

Advertising