11-1-1 batch file format and input rules, 11-1-2 input rules for each command line – HP XP Command View Advanced Edition Software User Manual

Page 273

Advertising
background image




Command line interface commands



273

4-11-1-1 Batch file format and input rules

The batch file format is as follows:

beginbatch

hdvmcli command parameter

hdvmcli command parameter

.

.

.

endbatch

The input rules for batch files are as follows:

Only ASCII encoded characters can be used in batch files.

A batch file must have beginbatch on the first line and endbatch on the last line.

Begin a new line after the character string endbatch.

If you do not do this, an error occurs.

Only one type of command can be set in a single batch file.

Only one type of storage subsystem can be set in a single batch file.

Up to 1,500 commands can be specified in a single batch file.

Some parameter values are case sensitive.

4-11-1-2 Input rules for each command line

The commands to be executed together are specified between beginbatch and endbatch. The
input rules for each command line are as follows:

Only the command to be executed and the command parameters can be specified on each
command line. The Device Manager server URLs, options, or help cannot be specified.

Parameters common to each command line cannot be specified in a properties file.

The same parameter cannot be specified multiple times on the same command line.

Parameters that cannot be used on the same command line cannot be specified.

For example, when executing the DeleteLun command, the port parameter and the
portname

parameter cannot be specified at the same time on the same command line.

Command parameters and specified values cannot be enclosed in " and '.

Aside from parameter specifications, a \ must be specified to escape the following characters:

space ! " # $ % & ' ( ) * + < > ? @ [ \ ] ^ ` {
| } ~

The following shows an example specification where Lun10 HOST2, a string containing a
space, is specified for the name parameter.

hdvmcli AddLUN name=Lun10\ HOST2 model=XP12000 serialnum=14053

4-11-1-3 Conditions for parameters to process commands together

When commands are executed together, there are conditions for the parameter values and
combinations on consecutive command lines. For example, for the AddLun command, commands
for which the port parameter is specified cannot be executed with commands for which the

Advertising