Software Instruction Manual

Advanced topics 24
REM ----
if errorlevel 3 goto HWNOTFOUND
if errorlevel 2 goto REBOOTREQUIRED
if errorlevel 1 goto NEXT2
goto end
NEXT2:
REM ----
REM Example of Option Rom Flash for a SmartArray 5i Controller
REM ----
System\ifhw hpdiscovery.xml System\allboards.xml PCI:"Smart Array 5i Controller"
if errorlevel 1 goto NEXT3
REM ----
REM This section performs the Option ROM Flash. Online Flash components
REM are kept in a directory called Roms
REM ----
Roms\cp002238.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 NEXT3
goto end
NEXT3:
REM ----
REM DONE
REM ----
REBOOTREQUIRED:
System\reboot PXE
HWNOTFOUND:
End:
For more information about Online ROM Flash Smart Components, see the HP Online ROM Flash User
Guide in the HP Software and Driver Downloads website
(
http://welcome.hp.com/country/us/en/support.html?pageDisplay=drivers
).
Erasing array configurations
Before beginning the deployment process, you might want to erase the current array configuration. The
commands in the following examples can be run as part of a script or alone.
To erase the array configuration:
1. Use the Microsoft® DiskPart utility to clear the partition table:
a. Create a script file called ErasePart.txt that contains the following commands:
REM This file instructs Diskpart.exe to select the first disk as
REM target, then clean the target.
rescan
select disk=0
clean
b. Run the Microsoft® DiskPart utility to clear the partition table:
diskpart /s .\ErasePart.txt