Software Instruction Manual

Advanced topics 23
NOTE: Booting from a USB drive key is supported only on certain ProLiant servers. For more
information, see the HP Insight Foundation suite for ProLiant website
(
http://www.hp.com/go/foundation).
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
(
http://www.hp.com/servers/swdrivers).
With flash system and option ROMs, you can create a script file to perform the following tasks:
1. Use HPDISCOVERY and IFHW to determine the current system or option ROM.
2. Run the Online ROM Flash Smart Component.
3. Check 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
System\ifhw hpdiscovery.xml System\allboards.xml HWL:SystemName eq "ProLiant DL380 G2"
if errorlevel 1 goto NEXT1
REM ----
REM This section performs the System ROM Flash. Online Flash components
REM are kept in a directory called Roms
REM ----
Roms\cp004648.exe /INSTPATH:S:\ROMScratcharea
REM ----
REM Check the error code returned to determine Success or Failure
REM ----
if errorlevel 3 goto HWNOTFOUND
if errorlevel 2 goto REBOOTREQUIRED
if errorlevel 1 goto NEXT2
goto end
NEXT1:
REM Try next system type
System\ifhw hpdiscovery.xml System\allboards.xml HWL:SystemName eq "ProLiant DL380 G3"
if errorlevel 1 goto NEXT2
REM ----
REM This section performs the System ROM Flash. Online Flash components
REM are kept in a directory called Roms
REM ----
Roms\cp005041.exe /INSTPATH:S:\ROMScratcharea
REM ----
REM Check the error code returned to determine Success or Failure