HP Integrity rx1620 SmartSetup Scripting Toolkit Deployment Guide: HP Integrit - Page 77

hwquery, Synopsis, Description, Examples, MY_SYS_RAM=768

Page 77 highlights

10025159 103C12AB hwquery Synopsis hwquery [path]hwdiscfilename [path]allboards.xml variable= ... 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 output of hwquery must be used by the hosting script. The most common way to use it is to write the output to an intermediate script file that is subsequently called by the hosting script. Table 6-20 hwquery Options Command Line Argument Description [path]hwdiscfilename This argument specifies the hardware discovery file used to run the query. [path]allboards.xml This argument specifies the allboards.xmlPCI device list file, which is used to convert PCI IDs found in hardware discovery into device names, such as "Smart Array 6402 Controller." variable= In this argument, variable is the name of an environment variable and is a PCI device name or the name of an element from the hardware discovery file. Arguments must be in quotes if contains spaces. The name is case-sensitive. ... You can specify multiple variable=arguments. Examples • To produce an hwdisc.xml file that contains 768, use the following input at the command line: hwquery hwdisc.xml allboards.xml MY_SYS_RAM=RAM The hwquery utility produces MY_SYS_RAM=768. • To produce an hwdisc.xml file that indicates a Smart Array 6402 Controller is present, use the following input at the command line: hwquery hwdisc.xml allboards.xml "TEST=Smart Array 6402" The hwquery utility produces TEST=Smart Array 6402 Controller. • The hwquery utility is case-sensitive. hwquery hwdisc.xml allboards.xml "TEST=smart array 6402" This command produces TEST=. This behavior is correct even if counter-intuitive. The string is case-sensitive and the argument uses lowercase instead of the title case in the allboards.xml file. • To produce an hwdisc.xml file that contains 768 and 1.10, use the following input at the command line: hwquery hwdisc.xml allboards.xml MYRAM=RAM MYEFIFW=EFIFw hwquery 77

  • 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
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85

<Id>10025159</Id>
<SubId>103C12AB</SubId>
</PCIDevice>
</PCIDevices>
</ServerInformation>
</HWDiscovery>
hwquery
Synopsis
hwquery [
path
]
hwdiscfilename
[
path
]allboards.xml
variable
=<
string
> ...
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
output of
hwquery
must be used by the hosting script. The most common way to use it is to
write the output to an intermediate script file that is subsequently called by the hosting script.
Table 6-20
hwquery
Options
Description
Command Line Argument
This argument specifies the hardware discovery file used to run the query.
[
path
]
hwdiscfilename
This argument specifies the
allboards.xml
PCI device list file, which is used to convert
PCI IDs found in hardware discovery into device names, such as "Smart Array 6402
Controller."
[
path
]allboards.xml
In this argument,
variable
is the name of an environment variable and
<
string
>
is
a PCI device name or the name of an element from the hardware discovery file.
Arguments must be in quotes if
<
string
>
contains spaces. The
<
string
>
name is
case-sensitive.
variable
=<
string
>
You can specify multiple
variable
=<
string
>
arguments.
...
Examples
To produce an
hwdisc.xml
file that contains
<RAM>768</RAM>
, use the following input
at the command line:
hwquery hwdisc.xml allboards.xml MY_SYS_RAM=RAM
The
hwquery
utility produces
MY_SYS_RAM=768
.
To produce an
hwdisc.xml
file that indicates a Smart Array 6402 Controller is present, use
the following input at the command line:
hwquery hwdisc.xml allboards.xml "TEST=Smart Array 6402"
The
hwquery
utility produces
TEST=Smart Array 6402 Controller
.
The
hwquery
utility is case-sensitive.
hwquery hwdisc.xml allboards.xml "TEST=smart array 6402"
This command produces
TEST=
. This behavior is correct even if counter-intuitive. The string
is case-sensitive and the argument uses lowercase instead of the title case in the
allboards.xml
file.
To produce an
hwdisc.xml
file that contains
<RAM>768</RAM>
and
<EFIFw>1.10</
EFIFw>
, use the following input at the command line:
hwquery hwdisc.xml allboards.xml MYRAM=RAM MYEFIFW=EFIFw
hwquery
77