
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 <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
ExecutionConfig checkContext checkSyntax checkCommand syntax
ExecutedNot executedNot executedExecutedraidcom <command>
Not executedNot executedNot executedExecutedraidcom <command> -checkmode precheck
ExecutedNot executedExecutedExecutedraidcom -zt <script file>
ExecutedExecutedExecutedExecutedraidcom get ldev -ldev_id -cnt 65280 -store<work_file>
raidcom -zt <script_file> -load <work_file>
RAID Manager functions 11
Comentários a estes Manuais