Hpdiscovery return codes, Hpdiscovery command line examples, Using ifhw – HP ProLiant DL380 Server User Manual

Page 28: Ifhw command-line syntax, Ifhw command-line arguments

Advertising
background image

Description

Command-line argument

filename is not in the current directory, then the full path
must be specified.

This argument chooses the name and location of the output
file. If the user does not pass in this parameter, then the

/f

default filename will be hpdiscovery.xml, and it will be
saved in the current directory.

HPDISCOVERY return codes

Meaning

Value

The command was completed successfully. A usage
message might appear.

0

An error has occurred. See error message for details.

1..255

HPDISCOVERY command line examples

NOTE:

Before running HPDISCOVERY, you must install WMI. For more information on installing

extra packages in Windows PE, see the Windows PE documentation.

Description

Command line argument

This command generates the hpdiscovery.xml file in the
x:\ location.

hpdiscovery /f x:\hpdiscovery.xml

This command only loads and executes the storage plug-in.

hpdiscovery /p plugin storage.dll

This command generates the hpdiscovery.xml file in the
current directory.

hpdiscovery

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

Description

Command-line argument

This argument specifies the hardware discovery file used
to run the query.

[drive:][path]hpdiscoveryfilename

This argument specifies the allboards.xml PCI device list
file, which is used to convert PCI IDs found in hardware

[drive:][path]allboards.xml

discovery into device names, such as "Smart Array 5i
Controller."

This argument specifies the query expression. See
"Expression operators and terms (

(page 29)

)."

<expression>

28

Toolkit utilities

Advertising