HP ProLiant SL2500 HP Scripting Toolkit 9.60 for Windows User Guide - Page 24

HWQUERY return codes, HWQUERY command-line examples, Using CONREP

Page 24 highlights

HWQUERY return codes Value 0 n HWQUERY command-line examples Meaning The command was completed successfully. N arguments were ignored because they were not in the variable= format. Command-line argument hwquery hpdiscovery.xml allboards.xml MY_SYS_RAM=TotalRAM hwquery hpdiscovery.xml allboards.xml "TEST=Smart Array" hwquery hpdiscovery.xml allboards.xml MYRAM=TotalRAM MYROMDATE=ROMDate hwquery hpdiscovery.xml allboards.xml "TEST=smart array 5i" Description For a hpdiscovery.xml file that contains 768, HWQUERY produces the following: MY_SYS_RAM=768 For a hpdiscovery.xml file that indicates a Smart Array 5i Controller is present, HWQUERY produces the following: TEST=Smart Array 5i Controller For a hpdiscovery.xml file that contains 768 and 11/15/2002, HWQUERY produces the following: MYRAM=768 MYROMDATE=11/15/2002 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. 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 can change the default using the -x option. The actual system configuration file is captured as an XML data file. The default name is conrep.dat. CAUTION: Improper modification of the CONREP data files can result in the loss of critical data. Only experienced users of the Scripting Toolkit should attempt to modify the data files. Because of the potential risk of data loss, take all necessary precautions to ensure that mission-critical systems remain online if a failure occurs. The CONREP utility reads the state of the system environment settings to determine the server configuration and writes the results to a file that you can edit. The CONREP utility uses the data in the generated file to configure the target server hardware. The CONREP utility uses an XML definition file to determine what information to retrieve from and restore to the server. You can modify this file to update new features or restrict features when capturing configurations. The default conrep.xml file contains common hardware configuration settings for most HP ProLiant series servers other than HP ProLiant 100 series servers using the Oxx ROM family. Some platforms require special settings that are contained in other XML files. These files are included in the Scripting Toolkit and are available from the HP website at http:// 24 Scripting Toolkit utilities

  • 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

HWQUERY return codes
Meaning
Value
The command was completed successfully.
0
N
arguments were ignored because they were not in the
variable=<string>
format.
n
HWQUERY command-line examples
Description
Command-line argument
For a
hpdiscovery.xml
file that contains
<TotalRAM>768</TotalRAM>, 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
<TotalRAM>768</TotalRAM> and
hwquery hpdiscovery.xml allboards.xml
MYRAM=TotalRAM MYROMDATE=ROMDate
<ROMDate>11/15/2002</ROMDate>,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
can change the default using the -x option. The actual system configuration file is captured as an
XML data file. The default name is
conrep.dat
.
CAUTION:
Improper modification of the CONREP data files can result in the loss of critical data.
Only experienced users of the Scripting Toolkit should attempt to modify the data files. Because
of the potential risk of data loss, take all necessary precautions to ensure that mission-critical systems
remain online if a failure occurs.
The CONREP utility reads the state of the system environment settings to determine the server
configuration and writes the results to a file that you can edit. The CONREP utility uses the data in
the generated file to configure the target server hardware.
The CONREP utility uses an XML definition file to determine what information to retrieve from and
restore to the server. You can modify this file to update new features or restrict features when
capturing configurations. The default
conrep.xml
file contains common hardware configuration
settings for most HP ProLiant series servers other than HP ProLiant 100 series servers using the Oxx
ROM family. Some platforms require special settings that are contained in other XML files. These
files are included in the Scripting Toolkit and are available from the HP website at
h
t
tp://
24
Scripting Toolkit utilities