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

Querying the HPDISCOVERY file to determine the presence of a card family

Page 13 highlights

.\SSA\bin\hpssascripting.exe -i .\ArraySettings\SA6iArray.ini :NEXT2 \ifhw .\hpdiscovery.xml allboards.xml PCI:"Smart Array 5312" if errorlevel 1 GOTO NEXT3 .\SSA\bin\hpssascripting.exe -i .\ArraySettings\SA5312Array.ini :NEXT3 Querying the HPDISCOVERY file to determine the presence of a card family IFHW and HWQUERY can perform queries based on partial name information, enabling you to verify the presence of a whole family of cards by using a partial query such as Smart Array. NEXT1: ifhw .\hpdiscovery.xml allboards.xml PCI:"Smart Array" if errorlevel 1 GOTO NEXT2 .\SSA\bin\hpssascripting.exe -i .\ArraySettings\GeneralArrayConfig.ini NEXT2: Before creating a test condition, refer to the allboards.xml file to determine the correct name for the device or group of devices you want to query. IMPORTANT: IFHW is case-sensitive. Incorrect case, misspellings, and incorrect spacing cause the query to fail. Booting Windows PE from a USB drive key Some applications, such as the firmware update components, require the use of a writable medium. A writable file system allows for the expansion of the contents of the components and provides a scratch area for the backup firmware image copied from the device under flash. While using Windows PE on CD is not suitable for this purpose, a USB drive key provides the ideal medium for this type of activity. NOTE: Booting from a USB drive key is supported only on certain HP ProLiant servers. For more information, see the SPP website at http://www.hp.com/go/spp. To boot Windows PE from a USB drive key, see the Microsoft Windows PE documentation. Flashing the ROM in a Windows PE environment You can run the Online ROM Flash Smart Components to flash system and option ROMs in the Windows PE environment, but you must ensure that a writable area is available for the component to use. You can use the Online ROM Flash Smart Components as part of a scripted installation before the operating system installation portion of the deployment. Be sure to download the latest Online ROM Flash Smart Components for the system or option to be flashed. Be sure that the component number and the server name correspond. The latest ROM flash components are available from the HP software and drivers website at http://www.hp.com/ go/HPSC. With flash system and option ROMs, you can create a script file to perform the following tasks: • Use HPDISCOVERY and IFHW to determine the current system or option ROM. • Run the Online ROM Flash Smart Component. • Verify the error level. The following script is provided as an example only and must be modified for your particular environment. Additional checks can be added as needed. Lines in bold type must be modified to customize the script. System\hpdiscovery -f hpdiscovery.xml Booting Windows PE from a USB drive key 13

  • 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

.\SSA\bin\hpssascripting.exe -i .\ArraySettings\SA6iArray.ini
:NEXT2
\ifhw .\hpdiscovery.xml allboards.xml PCI:"Smart Array 5312"
if errorlevel 1 GOTO NEXT3
.\SSA\bin\hpssascripting.exe -i .\ArraySettings\SA5312Array.ini
:NEXT3
Querying the HPDISCOVERY file to determine the presence of a card family
IFHW and HWQUERY can perform queries based on partial name information, enabling you to
verify the presence of a whole family of cards by using a partial query such as Smart Array.
NEXT1:
ifhw .\hpdiscovery.xml allboards.xml PCI:"Smart Array"
if errorlevel 1 GOTO NEXT2
.\SSA\bin\hpssascripting.exe -i .\ArraySettings\GeneralArrayConfig.ini
NEXT2:
Before creating a test condition, refer to the
allboards.xml
file to determine the correct name
for the device or group of devices you want to query.
IMPORTANT:
IFHW is case-sensitive. Incorrect case, misspellings, and incorrect spacing cause
the query to fail.
Booting Windows PE from a USB drive key
Some applications, such as the firmware update components, require the use of a writable medium.
A writable file system allows for the expansion of the contents of the components and provides a
scratch area for the backup firmware image copied from the device under flash. While using
Windows PE on CD is not suitable for this purpose, a USB drive key provides the ideal medium
for this type of activity.
NOTE:
Booting from a USB drive key is supported only on certain HP ProLiant servers. For more
information, see the SPP website at
h
t
tp://w
w
w
.hp
.co
m/go/s
pp
.
To boot Windows PE from a USB drive key, see the Microsoft Windows PE documentation.
Flashing the ROM in a Windows PE environment
You can run the Online ROM Flash Smart Components to flash system and option ROMs in the
Windows PE environment, but you must ensure that a writable area is available for the component
to use. You can use the Online ROM Flash Smart Components as part of a scripted installation
before the operating system installation portion of the deployment.
Be sure to download the latest Online ROM Flash Smart Components for the system or option to
be flashed. Be sure that the component number and the server name correspond. The latest ROM
flash components are available from the HP software and drivers website at
h
t
tp://w
w
w
.hp
.co
m/
go/HP
S
C
.
With flash system and option ROMs, you can create a script file to perform the following tasks:
Use HPDISCOVERY and IFHW to determine the current system or option ROM.
Run the Online ROM Flash Smart Component.
Verify the error level.
The following script is provided as an example only and must be modified for your particular
environment. Additional checks can be added as needed. Lines in
bold
type must be modified to
customize the script.
System\hpdiscovery -f hpdiscovery.xml
Booting Windows PE from a USB drive key
13