beautypg.com

11 using batch files to execute commands, 11-1 creating batch files, Table 4-138 items output when instance is wwngroup – HP XP Command View Advanced Edition Software User Manual

Page 272: Section

background image




Command line interface commands



272

GetStorageArray

(subtarget=Port) (see section

4-4-17-16

)

ModifyWWNGroup

(see section

4-6-15

)

Table 4-138

lists and describes the attributes of the WWNGroup instance.

Table 4-138

Items output when instance is WWNGroup

Attribute Description

objectID

Object ID of the WWN group

name

Name of the WWN group
This item is output when registered.

nickname

Nickname of the WWN group

4-11 Using batch files to execute commands

The following commands can be used with the batch option (-b or --batch) specified to execute
commands (set in a batch file) together.

AddLun

DeleteLun

AddLUSE

DeleteLUSE

The above commands can be executed with the batch option specified to set and clear settings for
paths of several LDEVs. This is convenient in cases such as when installing a new storage
subsystem.

Up to 1,500 commands can be set in a single batch file. When the batch functionality is used, up to
100 commands are processed together according to the execution conditions. The command
execution results are also output each time they are processed together, in groups of up to 100. If
an error occurs during command execution, processing terminates at that point. If an error occurs
while the batch functionality is executing, commands subsequent to the error are not processed. In
this case, create the batch file again, and then execute the batch functionality. For details about
what to do when errors occur, see

4-11-3

.

NOTE:

When the batch functionality is executed, HP recommends using the

AddArrayReservation

command to lock the target storage subsystem in advance, and prevent

other users from performing a storage subsystem allocation. For details about the
AddArrayReservation

command, see

4-4-1

.

NOTE:

If an error has occurred and the processing has stopped, you should check which parts of

the batch file have been executed. The checking process is easier if you create the batch file as
follows:

Write commands that have the same port or portname on consecutive lines.

Write commands so that the devnum follows the order of the serial number.

4-11-1 Creating batch files

A batch file needs to be created to execute the batch functionality. This section explains the
following items:

Batch file format and input rules

Input rules for each command line

Conditions for parameters to process commands together

Examples of batch file creation