Ignite-UX Reference (March 2010, B3921-90005)
instl_adm(4) instl_adm(4)
| Logical or operator.
Variables in logic expressions must use one of the comparison operators to result in a boolean value. Use
model names may appear in logic expressions and are treated as a single boolean value.
Following the set of statements surrounded by {}you may supply an else clause followed by a set of
statements enclosed in {}brackets. You may also specify conditional statements within conditional
statements. For example:
(num_disks > 1 & disk[_hp_root_disk].size < 500MB) | "Use all the disks"
| hardware_model ˜ "9000/8.*" | LLA[] == "080009150315" |
(_my_var > 20MB & _my_str_var ˜ "Y.*")
{
statements
(num_disks > 2)
{
statements
} else {
statements
}
}
Mathematical Operations
The configuration file supports the use of the *, /, +, and - operators when dealing with integer con-
stants, variables, or system attributes that evaluate to an integer value. For example:
init _hp_pri_swap = MEMORY * 2
System Attribute Keywords
The system attribute keywords that may be used in logic expression comparisons, mathematical operations
(those with integer values), or in complex strings are:
disk[hw_path|index|dev_spec].size
Evaluates to the size (in KB units) of the disk corresponding to the hardware path, index
value or device specifier specified. A full hardware path, a single index integer (or integer
variable), or a device specifier may be used to specify the disk. The index value may
range from 0 to num_disks-1.Ifanindex is specified greater than or equal to
num_disks, the size value is zero. For example:
disk[2/0/1.6.0].size
disk[_hp_root_disk].size
disk[0].size
disk["HW_PATH=’2/0/1.6.0’"].size
disk[hw_path|index|dev_spec].model
Evaluates to the model string as reported by the disk specified by the hardware address
path, index value or device specifier.
disk[hw_path|index|dev_spec].driver
Evaluates to the device driver used to support the disk specified by the hardware address
path, index value or device specifier.
disk[hw_path|index|dev_spec].wwid
Evaluates to the world-wide identifier of the disk specified by the hardware address path,
index value or device specifier. For disk devices that do not have a unique wwid, Ignite-
UX or the install kernel will fabricate a wwid. See the I/O Configuration section for more
information.
disk[hw_path|index|dev_spec].phys_loc
Evaluates to the physical location of the disk specified by the hardware address path,
index value or device specifier. Note that not all disks have a physical location, only SAS
10