HP XP7 Command View Advanced Edition CLI Reference Guide (TK981-96006, May 2014)

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 para-
meter, and use the serialNumber value to specify the serialnum parameter.
vrpuid
Obtain this value from the execution results of the GetStorageArray (subtarget=VResource-
PartitionUnit) command. Execute this command by specifying only the model and serial-
num parameters, and VResourcePartitionUnit for the subtarget parameter. In the exe-
cution results of this command, the required resourcePartitionUnitID value appears under
An instance of VResourcePartitionUnit. Use this value to specify the vrpuid para-
meter.
devnum
Obtain this value from the execution results of the GetStorageArray (subtarget=VResource-
PartitionUnit) command. Execute this command by specifying the model, serialnum, and
vrpuid parameters, VResourcePartitionUnit for the subtarget parameter, and VLDEV
for the vrpusubinfo parameter. In the execution results, the devNum value, which is required
for the devnum parameter, is output after An instance of VLDEV. Specify this devNum value
for the devnum parameter.
Command execution example
In this example, virtual information for a virtual LDEV (device number: 11) is deleted from a virtual
resource group (resource group ID: 2) in a specified storage system (model: P9500, serial number:
53038).
hdvmcli DeleteVLDEVFromVRPU -o "D:\logs\DeleteVLDEVFromVRPU.log"
"model=P9500" "serialnum=53038" "vrpuid=2" "devnum=11"
Command execution result
RESPONSE:
(Command completed; empty list returned)
DeleteVResourcePartitionUnit
The DeleteVResourcePartitionUnit command deletes a virtual resource group. When a virtual
resource group is deleted, the corresponding physical resource group is also deleted.
NOTE:
You can use this command only when you are using HP XP7.
If all virtual resource groups in a virtual storage machine are deleted, the virtual storage machine
is also deleted at the same time.
To delete multiple virtual resource groups, use the batch function. For details about the batch
function, see Chapter 6 on page 503.
Command reference158