HP XP Command View Advanced Edition Software User Manual

Page 295

Advertising
background image




Using the Device Manager properties file



295

Manager request. The command line option -i or --input specifies the input file. The other
options are still valid. However, any command or parameter specified from the command line or in
the properties file is ignored, because that information is already in the XML document.

The -i <filename> option allows you to specify an xml message file. You can use this feature to
request multiple operations in on the CLI command, which can save considerable time.

For example, usually the AddLun command specifies creation of a single LUN. The AddLun XML-
API
allows you to create multiple LUNs with a single request.

Syntax:

hdvmcli [-t] AddLun

serialnum=<Serial Number> model=<Model Name of Array>

port=<Port #> domain=<HostStorageDomain#>

scsi=<Scsi Target #> lun=<SCSI LU #> devnum=<LDEV #>

Example 1:

To add a LUN to LDEV 0:01 on XP1024 (Serial:15045), where Port 1-A, HostStorageDomain 0, LU
100 is assigned to that LUN, do the following:

hdvmcli -t addLUN

serialnum=15045 model=XP1024

port=0 domain=0 scsi=15 lun=100 devnum=1

Following XML-API request will be generated according to specified parameters
to hdvmcli;

<?xml version="1.0" encoding="UTF-8"?>

<HiCommandServerMessage>

<APIInfo version="5.9" />

<Request>

<StorageManager>

<Add target="LUN">

<StorageArray objectID="ARRAY.XP1024.15045">

<Path portID="0" domainID="0" scsiID="15" lun="100" devNum="1" />

</StorageArray>

</Add>

</StorageManager>

</Request>

</HiCommandServerMessage>

Example 2:

Save the following to a file:

<?xml version="1.0" encoding="UTF-8"?>

<HiCommandServerMessage>

<APIInfo version="5.9" />

<Request>

<StorageManager>

<Add target="LUN">

<StorageArray objectID="ARRAY.XP1024.15045">

<Path portID="0" domainID="0" scsiID="15" lun="102" devNum="102" />

<Path portID="0" domainID="0" scsiID="15" lun="104" devNum="104" />

</StorageArray>

</Add>

</StorageManager>

</Request>

</HiCommandServerMessage>

Advertising