HP ProLiant ML310e HP Scripting Toolkit 9.30 for Windows User Guide - Page 14

Roms\cp004648.exe /INSTPATH:S:\ROMScratcharea

Page 14 highlights

System\ifhw hpdiscovery.xml System\allboards.xml HWQ: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 HWQ: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 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 14 Advanced topics

  • 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

System\ifhw hpdiscovery.xml System\allboards.xml HWQ: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 HWQ: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
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
14
Advanced topics