HP StorageWorks P9000 Command View Advanced Edition Suite Software 7.1.1 CLI Reference Guide (TB581-96066, September 2011)
The LUSE is created using the LDEVs of the specified device numbers. The new LUSE is created
using only those LDEVs that have the same emulation, sizeInKB, and raidType attributes.
Parameter values to obtain in advance
serialnum and model: Obtain these values from the execution result of the GetStorageArray
command. In the execution result, use the arrayType value or the displayArrayType value to
specify the model parameter, and use the serialNumber value to specify the serialnum parameter.
port, domain or domainnickname, and lun: Obtain these values from the execution result of the
GetStorageArray (subtarget=HostStorageDomain, hsdsubinfo=freelun) command.
Execute this command by specifying only the model and serialnum parameters,
HostStorageDomain for the subtarget parameter, and freelun for the hsdsubinfo parameter.
In the execution result of this command, the portID, domainID and nickname values appear under
An instance of HostStorageDomain. Use these portID values to specify the port parameter.
Use the domainID value to specify the domain parameter, or use the nickname value to specify
the domainnickname parameter.
For the lun parameter, specify one of the lun values that appear under An instance of FreeLUN.
portname: Obtain this value from the execution result of the GetStorageArray (subtarget=Port)
command. In the execution result of this command, the displayName value appears under An
instance of Port. Use this value to specify the portname parameter.
devnum: Obtain this value from the execution result of the GetStorageArray (subtarget=LDEV)
command. Execute this command by specifying only the model and serialnum parameters, and
LDEV for the subtarget parameter. In the execution result of this command, the devNum values of
the LDEVs appear in an LDEV. Use the devNum value of the LDEV for which path=false and
onDemandDevice=false to specify the devnum parameter.
lusedevnums: Obtain this value from the execution result of the GetStorageArray
(subtarget=LDEV) command. In the execution result of this command, the devNum values of the
LDEVs appear in an LDEV. Use the devNum value of the LDEV for which path=false and
onDemandDevice=false to specify the lusedevnums parameter. Choose only the LDEVs that
share the same emulation, sizeInKB, and raidType attributes, and specify them in the form of a
comma-separated list.
Command execution example 1
hdvmcli AddLun -o "D:\logs\AddLun.log" "serialnum=10001" "model=XP1024"
"name=hp" "port=1" "domain=4" "scsi=15" "lun=114" "lusedevnums=1001,1002"
Command execution result 1
RESPONSE:
An instance of StorageArray
.
. (Attributes of StorageArray are omitted here)
.
List of 1 Path elements:
An instance of Path
objectID=*****
name=hp
CLI Reference Guide 203