Previous Topic

Next Topic

HWQUERY command line examples

Command line argument

Description

hwquery hpdiscovery.xml allboards.xml MY_SYS_RAM=TotalRAM

For a hpdiscovery.xml file that contains <TotalRAM>768</TotalRAM>, HWQUERY produces the following:

MY_SYS_RAM=768

hwquery hpdiscovery.xml allboards.xml "TEST=Smart Array"

For a hpdiscovery.xml file that indicates a Smart Array 5i Controller is present, HWQUERY produces the following:

TEST=Smart Array 5i Controller

hwquery hpdiscovery.xml allboards.xml MYRAM=TotalRAM MYROMDATE=ROMDate

For a hpdiscovery.xml file that contains <TotalRAM>768</TotalRAM> and <ROMDate>11/15/2002</ROMDate>, HWQUERY produces the following:

MYRAM=768

MYROMDATE=11/15/2002

hwquery hpdiscovery.xml allboards.xml "TEST=smart array 5i"

Although the controller is present, HWQUERY produces the following:

TEST=

This behavior is correct. The string is case-sensitive, and the argument uses lowercase lettering instead of the uppercase found in the allboards.xml file.