Command execution modes, Precheck function, Command execution modes precheck function – HP XP P9500 Storage User Manual

Page 10

Advertising
background image

Command execution modes

RAID Manager provides two command execution modes: transaction mode that executes by
specifying a script file with the -zt option, and line-by-line mode that executes a command row-by-row
for the configuration setting commands (raidcom commands). The transaction mode can execute
the following checking.

Context check: This check is executed when a script file is specified by the -zt option. It checks
the context of preceding commands and determines whether a subsequent command can be
executed.

Specifying example:

> raidcom -zt <script_file>

Configuration check: This check verifies that the actual storage system confirmation is valid
(implemented) for the resources specified in the commands (LDEVs, ports, pools, etc.).

Syntax example:

> raidcom get ldev -ldev_id -cnt 65280 -store<work_file>

> raidcom -zt <script_file> -load<work_file>

Precheck function

RAID Manager provides a precheck function that checks a configuration command before executing
the command for the configuration setting commands (raidcom commands):

In previous versions of RAID Manager, an error was returned when the syntax of a command to
be executed was not correct. Now the precheck function checks the command syntax before the
command is issued. To use this function, specify either the -checkmode precheck option or the
-zt

option.

The following table shows the checking function combinations between the precheck function and
the transaction mode.

Table 2 Summary of the checking functions

Execution

Config check

Context check

Syntax check

Command syntax

Executed

Not executed

Not executed

Executed

raidcom <command>

Not executed

Not executed

Not executed

Executed

raidcom <command> -checkmode precheck

Executed

Not executed

Executed

Executed

raidcom -zt <script file>

Executed

Executed

Executed

Executed

raidcom get ldev -ldev_id -cnt 65280 -store<work_file>

raidcom -zt <script_file> -load <work_file>

10

Overview

Advertising
This manual is related to the following products: