Ifhw Command Line Examples; Expression Operators And Terms; Expression Examples - HP ProLiant DL320e User Manual

Hp scripting toolkit 9.30 for windows user guide
Hide thumbs Also See for ProLiant DL320e:
Table of Contents

Advertisement

IFHW command line examples

Command-line argument
ifhw hpdiscovery.xml allboards.xml
"PCI:Smart Array 5i"

Expression operators and terms

Operator or term
and
or
gt
lt
gte
lte
eq
neq
not
PCI:<string>
HWQ:<string>
<string>
<number>

Expression examples

Expression input
"PCI:Smart Array 5i"
HWQ:TotalRAM gte 512
HWQ:ROMDate neq
"11/12/2004"
HWQ:SystemName eq
"ProLiant DL380 G2"
22
Scripting Toolkit utilities
Result
True if both operands are true
True if either operand is true
True if the first operand is greater than the second
True if the first operand is less than the second
True if the first operand is greater than or equal to the second
True if the first operand is less than or equal to the second
True if the two operands are equal
True if the two operands are not equal
True if the operand is false
True if a PCI device whose name includes <string> is found in the hardware discovery file.
<string> is case-sensitive.
The hardware discovery file is searched for <string>, and the corresponding value is the value
of this term. <string> is case-sensitive.
A literal string, used for comparison
A literal number, used for comparison
Description
This command returns the following error levels:
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
Result
True if the Smart Array 5i Controller is found in the system
True if the amount of RAM in the hardware discovery file
is at least 512 MB
True if the ROM date in the hardware discovery file is not
1 1/12/2004
True if the system name in the hardware discovery file
exactly matches "ProLiant DL380 G2"

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents