Command execution modes, Precheck function, Command execution modes precheck function – HP XP7 Storage User Manual
Page 11
Command execution modes
RAID Manager provides two command execution modes: transaction mode that executes by
specifying a script file with -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 -zt option. It checks
the context of preceding commands and determines whether a subsequent command can be
executed.
Specifying example:
> raidcom -zt
•
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
> raidcom -zt
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
Not executed
Not executed
Not executed
Executed
raidcom
Executed
Not executed
Executed
Executed
raidcom -zt
Executed
Executed
Executed
Executed
raidcom get ldev -ldev_id -cnt 65280 -store
raidcom -zt
RAID Manager functions
11