Quick Reference Guide
Mandatory Options and
Arguments
Optional Parameters Valid Parameters
Arguments
Description
-envc=<function>
or
setenvironment
envname=<string>
envcommand=<funct
ion>
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 69. Function Calls of the setenvironment Option
Function Call Description
getfirmware
Returns the firmware version of the specified controllers.
Example:
A:>raidcfg -se -envn=FIRMWARE -envc=
getfirmware -c=2
FIRMWARE=531T
RAIDCFG Command successful!
getcontrollertype
Returns LSI for LSI controllers and ADAP for Adaptec controllers.
Example:
A:>raidcfg -se -envn=CONTROLLERTYPE -envc=
getcontrollertype -c=2
CONTROLLERTYPE=LSI
RAIDCFG Command successful!
getadisks
Returns the array disks attached to the controller.
Example:
A:>raidcfg -se -envn=ADISKS -envc=getadisks -c=2
ADISKS=0:0:1,0:1:1,0:2:1
RAIDCFG Command successful!
getfreeadiskcount
Returns the number of free array disks found in the specified controller.
130