CLI Guide
Setting Environment Variables
The following table lists the RAIDCFG options, parameters, and pre-dened arguments for setting the CLI environment.
Table 345. 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-dened 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
lename. This option either appends the
information to an existing le or creates a new le.
-se -envn=<string>
- envc=<function> -
c=id
or
setenvironment
envname=<string>
envcommand=<function>
controllerid=id
NA NA
Sets a user-dened 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 346. Function Calls of the setenvironment Option
Function Call Description
getfirmware
Returns the rmware version of the specied controllers.
202 RAIDCFG