Examples - HP BL860c Administrator's Manual

Microsoft windows server 2008 sp2 and windows server 2008 r2 on integrity servers
Hide thumbs Also See for BL860c:
Table of Contents

Advertisement

[path]allboards.xml
expression

Examples

The ifhw utility can use XML files as input to query the hardware discovery file. For example:
ifhw hwdisc.dat allboards.xml "PCI:Smart Array 6402"
0 (True) if the Smart Array 6402 is present
1 (False) if the device is not present
2 (Error) if the expression could not be understood
- 1 or 255 if incorrect number of parameters given
The following expressions used as shown in the Synopsis return the indicated result:
"PCI:Smart Array 6402"
Returns True if the Smart Array 5i Controller is found in the system.
HWQ:RAM gte 512
Returns True if the amount of RAM in the hardware discovery file is at least 512.
HWQ:EFIFw neq "1.10"
Returns True if the EFI Firmware version in the hardware discovery file is not 1.10.
HWQ:SystemName eq "Server rx4640"
Returns True if the system name in the hardware discovery file exactly matches Server
rx4640.
"PCI:Smart Array 6402" or "PCI:Smart Array 6404"
Returns True if the system contains a Smart Array 6402 Controller or a Smart Array 6404
Controller
Table 7 ifhw Operators
Operator or
term
and
or
gt
lt
gte
lte
eq
neq
not
PCI:string
HWQ:string
48
Utilities reference
Specifies the allboards.xml PCI device list file, which is used
to convert PCI IDs found in hardware discovery into device names,
such as "Smart Array 6402 Controller."
Specifies the query expression.
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.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Smartsetup scripting toolkit

Table of Contents