CLI Guide

Table 342. Setting Environment
Mandatory Options and
Arguments
Optional Parameters Valid Parameters
Arguments
Description
-se -envn=<string>
-envc=<function>
or
setenvironment
envname=<string>
envcommand=<function
>
NA NA
Sets a user-defined environment variable to
the value returned from the
getcontrollerslots function call. This
option combination is mandatory.
Example:
A:>raidcfg -se -envn=CNTRL -
envc=getcontrollerslots
CNTRL=0 1 2
RAIDCFG Command successful!
-se -envn=<string>
-envc=<function>
or
setenvironment
envname=<string>
envcommand=<function
>
-f or filename
<filename>
Captures the environment output to the given
filename. This option either appends the
information to an existing file or creates a new
file.
-se -envn=<string>
- envc=<function> -
c=id
or
setenvironment
envname=<string>
envcommand=<function
>
controllerid=id
NA NA
Sets a user-defined environment variable to
the value returned from the getfirmware,
getcontrollertype, getadisks,
getadiskcount,
getfreeadisks,getfreeadiskcount,
getfreeadisksize, or gethotspares
function call. This option combination is
mandatory.
Example:
A:>raidcfg -se -envn=FIRMWARE
-envc=getfirmware -c=2
FIRMWARE=531T
RAIDCFG Command successful!
Function Calls of Setenvironment Option
The following table lists the function calls of the setenvironment option.
Table 343. Function Calls of the setenvironment Option
Function Call Description
getfirmware
Returns the firmware version of the specified controllers.
RAIDCFG 183