I am trying to install Windows 2000/2003 with Winpe and the HP Smartstart scripting toolkit (SSSTK32)
I can boot a Winpe Disc with all the HP Drivers intergrated fine start my start.cmd
rem @echo off REM REM This is the first Script called from Startnet.cmd stub in the WinPE REM REM Make sure that the network is fully started... Sometimes it requires a bit of time :REPEAT1 ipconfig ipconfig ipconfig ipconfig ping 25.5.64.108 if errorlevel 1 GOTO REPEAT1 REM Map a drive to the share you are working from. net use s: \\25.5.64.108\deploy REM If none ignore this step and set the drive letter in REM the following statements to appropriate drive REM============================================================ set Tools=s:\deploy\HP\Tools set MSTools=X:\i386\system32 set GlobalData=s:\deploy\HP\DeploymentScripts\datafiles set MSDistribution=s:\deploy\w2kstdsp4 set HPQFlatFiles=s:\deploy\hpqflatfiles set HPQComponents=s:\deploy\ntcsp set SystemScripts=s:\deploy\HP\DeploymentScripts REM============================================================ REM Call the first Script call %SystemScripts%\ServerDetect.cmd echo Done!
This calls ServerDetect.cmd...
rem @echo off cd %tools% %Tools%\System\hwdiscovery .\hwdisc.xml pause REM *** ---------------------------------------------------------------------------------------------------- REM *** Check Server Type Name and Call Server script REM *** ---------------------------------------------------------------------------------------------------- %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML570 G2" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant DL380 G3" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant DL380 G4" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML350 G3" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML310" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML310 G2" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML310 G3" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant DL370 G3" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML530 G2" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant DL580 G2" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML350 G2" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML330 G2" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant DL360 G2" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant DL380 G2" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML370 G2" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML370 G3" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML370 G4" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML330e" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant DL320" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML350" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML330" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant DL580" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML570" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant DL360" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant DL380" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML530" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML370" && call %SystemScripts%\Typical.cmd %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml HWQ:SystemName eq "ProLiant ML350" && call %SystemScripts%\Typical.cmd cd \ goto end
This runs the hwdisc.exe and refers to a .xml file to pick out the right script at the moment I have left them all the same "Typical.cmd"
rem @echo off cls echo [ SCRIPT FOR REMOTE INSTALL OF W2K ON typical server ] 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================================================================================= 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 information REM *** 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-r01.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-r01.ini GOTO NEXT6 :NEXT2 %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml PCI:"Smart Array 5300" if errorlevel 1 GOTO NEXT3 %Tools%\ACU\bin\hpacubin.exe -i %GlobalData%\ArraySettings\pl-r01.ini GOTO NEXT6 :NEXT3 %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml PCI:"Smart Array 641 Controller" if errorlevel 1 GOTO NEXT4 %Tools%\ACU\bin\hpacubin.exe -i %GlobalData%\ArraySettings\pl-r01.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-r01.ini GOTO NEXT6 :NEXT6 pause REM================================================================================= REM *** Configure the iLO if iLo Present REM *** echo configuring iLO REM================================================================================= rem %Tools%\System\ifhw .\hwdisc.xml %Tools%\System\allboards.xml PCI:"Integrated Lights- Out Controller" rem if errorlevel 1 GOTO State2 rem .\iLo\hponcfg -f %GlobalData%\iLoSettings\iloconfig.xml REM================================================================================= echo Setting State Information... Due to Problems with diskpart not picking up new logical volumes REM================================================================================= %Tools%\System\statemgr /w Phase 2 REM *** REBOOT if necessary %Tools%\System\reboot PXE :State2 REM================================================================================= REM *** Create partition by reading content of the script file and REM *** stamping the configuration onto the hard drive in the target server REM================================================================================= echo Creating Disk Partition... %MsTools%\DiskPart /s %GlobalData%\diskPart0.txt echo Formatting Disk Partition... %MsTools%\format c: /FS:NTFS /V:System /Q /y pause %Tools%\System\statemgr /w Phase 3 echo Creating Driver Directory and Copying Drivers... mkdir c:\ntcsp rem xcopy %HPQFlatFiles%\$oem$ c:\$oem$ /s /e xcopy %HPQComponents% c:\ntcsp /s /e pause REM *** Copy the customized UNATTEND.TXT file from the system REM *** configuration area to the root directory of the target server's REM *** hard drive :State3 copy %GlobalData%\unattend.txt c:\ REM================================================================================= REM *** Start installation of the operating system from the hard drive of the REM *** target system, reading unattended installation instructions from the REM *** C:\UNATTEND.TXT file REM================================================================================= %MSDistribution%\i386\winnt32 /s:%MSDistribution%\i386 /unattend:c:\unattend.txt /syspart:c %Tools%\System\reboot c: :State4 echo Nothing to see here... Move along! rem @echo off
This runs conrep.exe and sets the hardware options ie boot order etc from a .xml
It then runs the ACU which sets the raid card up as a raid 0+1.
Then it configs the ILO intergrated lights out used for remote bios flashing, remote control when server is down.
We then have a reboot to pick up the drives properly for diskpart (Want to change this and use MBRfix any input would be great)
Runs diskpart with the following...
rem This file instructs Diskpart.exe to select Disk 1 as target,
rem clean the target, create a primary partition on the disk
rem and mount it to z: for the new partition. The new partition is then
rem ready for format and OS install
rescan
select disk=0
clean
create partition primary
assign letter=c
Formats drive.
Copys Drivers and $OEM$ over.
It then copies ober the unattend file to c:
I then kick off the install with
%MSDistribution%\i386\winnt32 /s:%MSDistribution%\i386 /unattend:c:\unattend.txt /syspart:c
I see it copy all the files across to c:
I do get a error trying to copy some compaq/hp drivers across to $WIN_NT$.~BT but they are all in the right folder structure.
I skip these files and reboot to c: nothing happens.
Any help would be great! and suggestions on how to simplfy the install?
Does any know what part I should use MBRfix so I dont have to reboot my "Tin"
Everything apart from startnet.cmd is run from a networkshare.
within $oem$ is $WIN_NT$.~LS which contains system drivers for net and scsi.
Drivers folder which contain net drivers and scsi drivers.
ntcsp drivers in exe format.



Help

Back to top









