beautypg.com

Hwquery return codes, Hwquery command-line examples, Using conrep – HP Scripting Toolkit for Linux 9.60 User Manual

Page 30: Hwquery return codes hwquery command-line examples

background image

Description

Command-line argument

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

In this argument, variable is the name of an environment
variable and <string> is a PCI device name or the name

variable=

of an element from the hardware discovery file. Arguments
must be in quotes if <string> contains spaces. <string> is
case-sensitive.

You can specify multiple variable=<string> arguments.

...

HWQUERY return codes

Meaning

Value

The command was completed successfully.

0

N arguments were ignored because they were not in the
variable= format.

n

HWQUERY command-line examples

Description

Command-line argument

For a hpdiscovery.xml file that contains
768

, HWQUERY produces

the following:

hwquery hpdiscovery.xml allboards.xml
MY_SYS_RAM=TotalRAM

MY_SYS_RAM=768

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

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

TEST=Smart Array 5i Controller

For a hpdiscovery.xml file that contains
768 and

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

11/15/2002, HWQUERY
produces the following:

MYRAM=768

MYROMDATE=11/15/2002

Although the controller is present, HWQUERY produces
the following:

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

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.

Using CONREP

The CONREP utility generates a system configuration XML file used to duplicate the hardware
configuration of one HP ProLiant server onto another. The CONREP utility uses the hardware
configuration XML file to identify and configure the system, which defaults to conrep.xml. You

30

Scripting Toolkit utilities