2 cli return responses, 3 displaying cli help, Cli return responses – HP StorageWorks XP10000 Disk Array User Manual

Page 15: Displaying cli help, Table 3-2 return values

Advertising
background image

Command Line Interface Syntax and Parameters 15


description=“Our Newest Array”

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, please refer to the HP StorageWorks Command View XP
Advanced Edition Device Manager Server Installation and Configuration Guide
. For more information on
Device Manager client operations (for example, Web Client, CLI, third-party applications), please refer to the
HP StorageWorks Command View XP Advanced Edition Device Manager Web Client User Guide.

Device Manager CLI includes a help file. To see the parameters associated with a particular command, enter:

C:\hdvm> hdvmcli help command-name

For example, to display the output shown in

Figure 3-1

, 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 (required) Port Number of the new Path

domain (required) For USP, 9900V, XP12K/10K, XP1024/128,

9500V (with LUNManagement), AMS and WMS 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

lusedevnums (optional) "Comma-separated list of LDEV devnums required for

LUSE LUN definition

wwn (optional) Except USP, 9900V, XP12K/10K, XP1024/128,

9500V (with LUNManagement), AMS and WMS.

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

Device Manager CLI returns the execution result value at the end of its process.

Table 3-2

lists and describes

the CLI return values.

Table 3-2

Return Values

Return Values Description

-1

Specified parameter not defined

0

CLI ends normally.

1

CLI found errors within its process (for example, parameter error).

2

CLI found errors in the Device Manager server.

3-3 Displaying CLI Help

If you want to display basic help information, launch Device Manager CLI with no associated parameters. This
basic information will include the current CLI version.

In Windows

®

: c:\hdvm> hdvmcli

In Solaris™ or HP-UX: # ./hdvmcli

Advertising