Structure of a script command

All script commands have the following structure:

command operand-data (statement-data)

The syntax for operand-data has the following structure:

(object-type | all object-types | [qualifier] (object-type [identifier] (object-type [identifier] | object-types [identifier-list])))

An object can be identified in four ways:

A qualifier is required if you want to include additional information to describe the objects.

The object type and the identifiers that are associated with each object type are listed in this table.

Object Type Identifier
controller a or b
drive For enclosures with drawers, use tray ID, drawer ID, and slot ID. Alternatively, just tray ID and slot ID.
replacementDrive For enclosures with drawers, use tray ID, drawer ID, and slot ID. Alternatively, just tray ID and slot ID.
driveChannel Drive channel identifier
host User label
hostChannel Host channel identifier
hostGroup User label
hostPort User label
iscsiInitiator User label or iSCSI Qualified Name (IQN)
iscsiTarget User label or IQN
storageArray Not applicable
tray Tray ID
volume Volume user label or volume World Wide Identifier (WWID) (set command only)
volumeCopy Target volume user label and, optionally, the source volume user label
volumeGroup

User label

Valid characters are alphanumeric, a hyphen, and an underscore.

Statement data is in the form of: A user-defined entry (such as user label) is called a variable. In the syntax, it is shown in italic (such as trayID or volumeGroupName).