Using ifhw, Ifhw command-line syntax, Ifhw command-line arguments – HP Linux Server Management Software User Manual
Page 32: Ifhw return codes
Toolkit utilities 32
NOTE:
Before running HPDISCOVERY, you must install WMI. For details on installing extra
packages in Windows® PE, see the Windows® PE documentation.
Command line argument
Description
hpdiscovery /f
x:\hpdiscovery.xml
This command generates the hpdiscovery.xml file in the
x:\ location.
hpdiscovery /p plugin
storage.dll
This command only loads and executes the storage plug-
in.
hpdiscovery
This command generates the hpdiscovery.xml file in the
current directory.
Using IFHW
IFHW is used from a script file, in conjunction with other utilities, to control the deployment. The IFHW
utility enables you to make intelligent queries against the hardware discovery file. Queries take the form
of a logical expression, and the result of the expression is returned as the return code of the tool, which
the hosting script can use to conditionally perform actions.
IFHW command-line syntax
ifhw [drive:][path]hpdiscoveryfilename
[drive:][path]allboards.xml <expression>
IFHW command-line arguments
Command-line argument
Description
[drive:][path]hpdiscoveryfilenam
e
This argument specifies the hardware discovery file used
to run the query.
[drive:][path]allboards.xml
This argument 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 5i
Controller."
This argument specifies the query expression. Refer to
"Expression operators and terms (on page
)."
IFHW return codes
Value
Meaning
0
The expression is true.
1
The expression is false.
2
The expression was not understood or an argument was invalid.