Quick Reference Guide

Setting Environment Variables
The following table lists the RAIDCFG options, parameters, and pre-defined arguments for setting the CLI environment.
Table 65. Setting Environment
Mandatory Options and
Arguments
Optional Parameters Valid Parameters
Arguments
Description
-se -
envn=<string>
-envc=<function>
or
setenvironment
envname=<
string>
envcommand=<funct
ion
>
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=<funct
ion>
-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=<funct
ion>
controllerid=id
NA NA
Sets a user-defined environment variable to
the value returned from the
getfirmware,
getcontrollertype, getadisks,
getadiskcount,
getfreeadisks,getfreeadiskcou
nt, 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 66. Function Calls of the setenvironment Option
Function Call Description
getfirmware
Returns the firmware version of the specified controllers.
130