HP (Hewlett-Packard) HP SmartStart Scripting Toolkit Win32 Edition Best Practices Manuale Utente

Pagina di 22
 
Configuring HP ProLiant systems with Windows PE  12 
if errorlevel 0 goto State0 
 
:State0 
 
REM *** Configure the target server hardware by reading the configuration 
REM *** information in the script file 
 
echo Running Configuration Replication Utility... 
%Tools%\System\conrep -l -f%GlobalData%\HardwareSettings\hwconfig.xml -
x%Tools%\System\conrep.xml 
 
echo Setting State Information... 
%Tools%\System\statemgr /w Phase 1 
 
:State1 
REM======================================================================== 
REM *** Configure the array controllers by reading the configuration  
REM *** information in the script file and stamping it onto the array 
REM *** controllers of the target server 
REM======================================================================== 
 
echo Configuring the Array Controllers... 
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml PCI:"Smart 
Array 5i Controller" 
if errorlevel 1 GOTO NEXT1 
%Tools%\ACU\bin\hpacubin.exe -i %GlobalData%\ArraySettings\pl-r0.ini 
GOTO NEXT6 
 
:NEXT1 
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml PCI:"Smart 
Array 6i Controller" 
if errorlevel 1 GOTO NEXT2 
%Tools%\ACU\bin\hpacubin.exe -i %GlobalData%\ArraySettings\pl-r1.ini 
GOTO NEXT6 
 
:NEXT2 
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml PCI:"Smart 
Array 5312" 
if errorlevel 1 GOTO NEXT3 
%Tools%\ACU\bin\hpacubin.exe -i %GlobalData%\ArraySettings\pl-r1.ini 
GOTO NEXT6 
 
:NEXT3 
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml PCI:"Smart 
Array 640X Controller" 
if errorlevel 1 GOTO NEXT4 
%Tools%\ACU\bin\hpacubin.exe -i %GlobalData%\ArraySettings\pl-r5.ini 
GOTO NEXT6 
 
:NEXT4 
%Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml PCI:"Smart 
Array P600 Controller" 
if errorlevel 1 GOTO NEXT5 
%Tools%\ACU\bin\hpacubin.exe -i %GlobalData%\ArraySettings\pl-r1r5.ini 
GOTO NEXT6