SmartSetup Scripting Toolkit Administrator's Guide

Table Of Contents
Table 7 ifhw Operators (continued)
ResultOperator or
term
A literal string, used for comparison.string
A literal number, used for comparison.number
Return Codes
Table 8 ifhw return codes
DescriptionValue
The device is present.0 (True)
The device is not present.1 (False)
The expression was not understood.
1
2 (Error)
An incorrect number of parameters was specified.-1 or 255
1 Because of known issue TT1000754871, error code 2 is never returned. If an invalid expression is found, 1 is returned
instead. This will be fixed in a future release of the SSTK.
sethbaini
Synopsis
sethbaini [c_wwid] [wwid] [lun] [vendor] [hba_ini_file]
Description
When the sethbabootdevice SSTK action is called, the SetHbaBootDevice.cmd script uses the
sethbaini tool. The tool receives parameters generated by hpqlarep or hplpcfg that identify
a SAN disk, SAN vendor, and an hba_ini_file with HBA configurations. Then, it processes
and changes the hba_ini_file and sets the boot device to the specified disk.
Options
c_wwid Specifies the controller WWID retrieved by hpshowdisk.
wwid Specifies the disk WWID retrieved by hpshowdisk.
lun Specifies the LUN number retrieved by hpshowdisk.
vendor Specifies the SAN vendor. Valid values are emulex or qlogic.
hba_ini_file Specifies the path to the .INI file generated by the hpqlarep or hplpcfg
tools.
Example
The following is a sample command line:
sethbaini 10000000c9537540 500805f3000d91111 3 emulex %Path%\hba-emulex.ini
The following is a sample hba-emulex.ini file:
.
.
.
[HBAX]
WWID=10000000c9537540
SelectiveLogin=0
EnableSelectiveLUN=0
BootDeviceWWPN=500805f3000d91111
sethbaini 49