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

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 RAID Manager before supporting P9500, an error was returned when the syntax of a command
to be executed was not correct. With this precheck function, the command syntax can be checked
before the command is issued. This function can be specified using either the -checkmode
precheck
option or the -zt option.
The following table shows the summary of checking function combinations between precheck
function and the transaction mode.
Table 1 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 -cnt 65280 -store<work_file>
raidcom -zt <script_file> -load <work_file>
10
Overview