HP Integrity rx2800 Smart Setup Scripting Toolkit Administrator's Guide 4.0 - Page 56

hwquery, Synopsis, Description, Options, Examples, hwdisc.dat, allboards.xml

Page 56 highlights

hwquery Synopsis hwquery hwdisc.dat allboards.xml [query]... Description The hwquery utility is executed from a script file, in conjunction with other utilities, to control the install process. The hwquery utility uses data from the hardware discovery file in your own scripts. The hwquery utility cannot alter environment variables directly. To set the variable, the hosting script must use the output of hwquery. Typically, the script writes the output to an intermediate script file that is subsequently called by the hosting script. The hwquery utility returns a string to standard output in the following format: set variable=XML tag value You can redirect the output to a batch script to set the variable value. Options hwdisc.dat allboards.xml query Specifies the hardware discovery XML output file. Specifies the file that contains descriptions of all supported PCI devices. Specifies the query to perform on the hardware discovery file in the following format: variable=string Where: string is case sensitive, and matches either a tag in the hardware discovery output file or a description of a PCI device in the allboards.xml file. If string contains spaces, enclose the string in quotation marks. Examples y:\utilities>hwquery y:\data_files\hwdisc.dat allboards.xml ARRAY_CTRL="Smart Array" set ARRAY_CTRL=Smart Array 6402 Controller [A9890A] 56 Utilities reference

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65

hwquery
Synopsis
hwquery
hwdisc.dat allboards.xml [
query
]...
Description
The
hwquery
utility is executed from a script file, in conjunction with other utilities, to control
the install process. The
hwquery
utility uses data from the hardware discovery file in your own
scripts. The
hwquery
utility cannot alter environment variables directly. To set the variable, the
hosting script must use the output of
hwquery
. Typically, the script writes the output to an
intermediate script file that is subsequently called by the hosting script.
The
hwquery
utility returns a string to standard output in the following format:
set
variable
=
XML tag value
You can redirect the output to a batch script to set the variable value.
Options
hwdisc.dat
Specifies the hardware discovery XML output file.
allboards.xml
Specifies the file that contains descriptions of all supported PCI devices.
query
Specifies the query to perform on the hardware discovery file in the
following format:
variable
=
string
Where:
string
is case sensitive, and matches either a tag in the hardware
discovery output file or a description of a PCI device in the
allboards.xml
file. If
string
contains spaces, enclose the string in
quotation marks.
Examples
y:\utilities>
hwquery y:\data_files\hwdisc.dat allboards.xml ARRAY_CTRL="Smart Array"
set ARRAY_CTRL=Smart Array 6402 Controller [A9890A]
56
Utilities reference