beautypg.com

HP XP Command View Advanced Edition Software User Manual

Page 295

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 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= model=

port= domain=

scsi= lun= devnum=

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;

Example 2:

Save the following to a file: