2 cli return responses, Table 3-2 return values, Cli return responses – HP XP Command View Advanced Edition Software User Manual
Page 39
![background image](/manuals/397820/39/background.png)
Command line interface syntax and parameters
39
Each command may have required parameters, optional parameters, or both, and you can specify
any parameter in the application's properties file. If a parameter is specified both on the command
line and in the properties file, the value from the command line is used.
For more information on Device Manager properties, see the HP StorageWorks XP Command View
Advanced Edition software Device Manager server installation and configuration guide. For more
information on Device Manager client operations (for example, web client, CLI, third-party
applications), see the HP StorageWorks XP Command View Advanced Edition software Device
Manager web client user guide.
The Device Manager CLI includes a help file. To see the parameters related with a particular
command, enter:
C:\hdvm> hdvmcli help command-name
For example, to display the output shown in below, enter:
C:\hdvm> hdvmcli help AddLun
COMMAND: AddLun
DESCRIPTION: Defines a path from a host to a volume
PARAMETERS:
serialnum (required) Serial Number of the Storage Array of the new Path
model (required) Model of the Storage Array of the new Path
name (optional) Name of the new Path
port (optional) Port Number of the new Path (This cannot be specified
with parameter portname together.)
portname (optional) Port name of the new Path (This cannot be specified
with parameter port together.)
domain (required) For USP_V, USP, 9900V, 9500V (with LUNManagement),
AMS, WMS, XP24K/20K, XP12K/10K/SVS200 and XP1024/128,
required; others, optional.
Domain Number of the new Path, can not be set
with parameter wwn together.
scsi (optional) SCSI ID of the new Path
lun (required) Number of the actual LUN used for path
devnum (optional) Device number used to identify this logical unit (not
provided when a LUSE is defined)
lusedevnums (optional) Comma-separated list of LDEV devnums (either devnum
or lusedevnums must be provided, but not both)
wwn (optional) Except USP_V, USP, 9900V, 9500V (with LUNManagement),
AMS, WMS, XP24K/20K, XP12K/10K/SVS200 and XP1024/128.
Comma-separated list of WWN to secure the path, can
not be set with parameter domain together.
Figure 3-1
Example of CLI help for the AddLun command
3-2 CLI return responses
The Device Manager CLI returns the execution result value at the end of its process.
lists
and describes the CLI return values.
Table 3-2
Return values
Return
Values
Description
-1 Specified
parameter not defined.
0
CLI ends normally.