HP Intelligent Provisioning User Manual
Page 16

c.
Edit the DEPLOYSERVER.CMD file for your specific environment.
NOTE:
The IFHW and HWQUERY utilities can be used to assist in customizing the
DEPLOYSERVER.CMD script for your environment. For more information about these
utilities, see
“Scripting Toolkit utilities” (page 23)
.
The DEPLOYSERVER.CMD file is similar to the following:
rem @echo off
cls
echo [ SCRIPT FOR REMOTE INSTALL OF W2K3 ON TYPICAL SERVER ]
REM pause
echo Retrieving State Information...
%Tools%\System\statemgr /r phase
if errorlevel 3 goto State3
if errorlevel 2 goto State2
if errorlevel 1 goto State1
if errorlevel 0 goto State0
:State0
REM *** Configure the target server hardware by reading the
REM *** configuration 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
REM *** configuration information in the script file and stamping
REM *** it onto the array controllers of the target server
REM===============================================================
echo Configuring the Array Controllers...
%Tools%\System\ifhw hpdiscovery.xml %Tools%\System\allboards.xml PCI:"Smart Array 5i Controller"
if errorlevel 1 GOTO NEXT1
%Tools%\ACU\bin\hpacuscripting.exe -i %GlobalData%\ArraySettings\pl-r0.ini
GOTO NEXT5
:NEXT1
%Tools%\System\ifhw hpdiscovery.xml %Tools%\System\allboards.xml PCI:"Smart Array 6i Controller"
if errorlevel 1 GOTO NEXT2
%Tools%\ACU\bin\hpacuscripting.exe -i %GlobalData%\ArraySettings\pl-r1.ini
GOTO NEXT5
:NEXT2
%Tools%\System\ifhw hpdiscovery.xml %Tools%\System\allboards.xml PCI:"Smart Array 5312"
if errorlevel 1 GOTO NEXT3
%Tools%\ACU\bin\hpacuscripting.exe -i %GlobalData%\ArraySettings\pl-r1.ini
GOTO NEXT5
:NEXT3
%Tools%\System\ifhw hpdiscovery.xml %Tools%\System\allboards.xml PCI:"Smart Array 640X Controller"
if errorlevel 1 GOTO NEXT4
%Tools%\ACU\bin\hpacuscripting.exe -i %GlobalData%\ArraySettings\pl-r5.ini
GOTO NEXT5
16
Advanced topics