Ifhw return codes, Ifhw command-line examples, Expression operators and terms – HP ProLiant DL380 Server User Manual
Page 27
Description
Command-line argument
discovery into device names, such as "Smart Array 5i
Controller."
This argument specifies the query expression. See
“Expression operators and terms” (page 27)
.
IFHW return codes
Meaning
Value
The expression is true.
0
The expression is false.
1
The expression was not understood or an argument was invalid.
2
IFHW command-line examples
Description
Command-line argument
This command returns the following error levels:
ifhw hpdiscovery.xml allboards.xml
"PCI:Smart Array 5i"
•
ERRORLEVEL 0 (True) if the Smart Array 5i is present
•
ERRORLEVEL 1 (False) if the device is not present
•
ERRORLEVEL 2 (Error) if the expression could not be
understood
Expression operators and terms
Result
Operator or term
True if both operands are true
and
True if either operand is true
or
True if the first operand is greater than the second
gt
True if the first operand is less than the second
lt
True if the first operand is greater than or equal to the second
gte
True if the first operand is less than or equal to the second
lte
True if the two operands are equal
eq
True if the two operands are not equal
neq
True if the operand is false
not
True if a PCI device whose name includes <string> is found in the hardware discovery file.
<string> is case-sensitive.
PCI:
The hardware discovery file is searched for <string>, and the corresponding value is the value
of this term. <string> is case-sensitive.
HWQ:
A literal string, used for comparison
A literal number, used for comparison
Using IFHW
27
- ProLiant BL465c Server Blade ProLiant BL2x220c G5 Server-Blade ProLiant BL2x220c G6 Server-Blade ProLiant SL390s G7 Server ProLiant BL280c G6 Server-Blade ProLiant ML370 Server ProLiant DL360p Gen8 Server ProLiant BL680c G5 Server-Blade ProLiant BL480c Server-Blade ProLiant DL370 G6 Server ProLiant SL230s Gen8 Server ProLiant SL250s Gen8 Server ProLiant SL335s G7 Server ProLiant BL260c G5 Server-Blade ProLiant DL365 G5 Server ProLiant BL490c G6 Server-Blade ProLiant BL460c Gen8 Server Blade ProLiant ML350 Server ProLiant DL160 Gen8 Server ProLiant DL585 Server ProLiant BL620c G7 Server-Blade ProLiant ML330 G6 Server ProLiant BL685c Server-Blade ProLiant DL320 Server ProLiant BL680c G7 Server-Blade Intelligent Provisioning ProLiant DL120 G7 Server ProLiant BL495c G6 Server-Blade ProLiant DL580 Server ProLiant DL380p Gen8 Server ProLiant BL2x220c G7 Server-Blade ProLiant DL785 G6 Server ProLiant BL460c Server-Blade ProLiant BL495c G5 Server-Blade ProLiant BL490c G7 Server-Blade ProLiant DL360 Server ProLiant ML310 G5 Server ProLiant DL385 Server ProLiant DL785 G5 Server ProLiant ML350p Gen8 Server