beautypg.com

12 environment variable subcommands – Hitachi TAGMASTORE MK-90RD011-25 User Manual

Page 297

background image

Hitachi Command Control Interface (CCI) User and Reference Guide

279

4.13.12 Environment Variable Subcommands

If no environment variables are set in the execution environment, the environment variable
subcommand sets or cancels an environment variable within the CCI command. The setenv
subcommand sets the specified environment variable(s). The usetenv subcommand deletes
the specified environment variable(s). The env subcommand command displays the
environment variable(s). The sleep subcommand causes CCI to wait for the specified time.
Table 4.45 lists and describes the environment variable subcommands and their parameters.

Table 4.45 Environment Variable Subcommand Parameters

Parameter

Value

Command

Name

setenv

usetenv

env

sleep

Format

-x setenv vaname value

-x usetenv vaname

-x env

-x sleep time

Argument

Vaname: Specifies the environment variable to be set or canceled.
Value: Specifies the value or character string of the environment variable to be set.
Time: Specifies the sleep time in seconds.

Restriction

The environment variables must be set before connecting to HORCM, and must be specified during interactive

mode (-z option). Changing an environment variable after a CCI command execution error is invalid.

Figure 4.59 shows an example of the setenv and usetenv subcommands used as an option of
the raidscan command. This example changes from “HORC” to “HOMRCF” an execution
environment of the raidscan command which makes a dialog mode, because of establishing
“HORCC_MRCF” as an environment variable.

raidscan[HORC]: -x setenv HORCC_MRCF 1
raidscan[MRCF]:

raidscan[MRCF]: -x usetenv HORCC_MRCF
raidscan[HORC]:

Figure 4.59 Environment Variable Subcommand Examples