instl_adm.4 (2012 03)
i
instl_adm(4) instl_adm(4)
()Parentheses may be used to group expressions to force precedence.
! Logical not operator.
== != ~
Comparison operators: equal, not-equal and regular expression match, respectively. The
== and
!= operators compare strings in a case-insensitive manner. The
˜ character is a regular expression
comparison operator. The right side of
˜
is treated as an extended regular expression string when
compared to the left side string. (See regexp(5).)
><>=<=
Comparison operators: greater than, less than, greater or equal, and less or equal, respectively.
& Logical and operator.
| 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 opera-
tions (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
HP-UX 11i Version 3: March 2012 − 9 − Hewlett-Packard Company 9