HP Scripting Toolkit 9.30 for Linux User Guide

Processor information
NIC information
PCI devices present in the system
HP Smart Array controller information
User process decisions can be made based on data that is in the file created by this utility.
NOTE: Information may not be as detailed on HP ProLiant 100 series servers.
HPDISCOVERY command-line syntax
hpdiscovery [-f filename] [/?]
HPDISCOVERY command-line arguments
DescriptionCommand-line argument
This argument specifies the location and name of the
Hardware Discovery data file.
-f filename
This argument displays help information.
-?
HPDISCOVERY return codes
MeaningValue
The command was completed successfully. A usage
message might appear.
0
The command contained an invalid parameter.
1
HPDISCOVERY command-line examples
DescriptionCommand-line argument
This command generates the file hpdiscovery.xml in the
/toolkit directory.
hpdiscovery -f /toolkit/hpdiscovery.xml
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 [path]hpdiscoveryfilename [path]allboards.xml <expression>
IFHW command-line arguments
DescriptionCommand-line argument
This argument specifies the hardware discovery file used
to run the query.
[path]hpdiscoveryfilename
This argument specifies the allboards.xml PCI device
list file, which is used to convert PCI IDs found in hardware
[path]allboards.xml
Using IFHW 27