Jump to content

B.Bill

Member
  • Posts

    14
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

About B.Bill

B.Bill's Achievements

0

Reputation

  1. I want to be able to specify the size of C: during the install. For example, if I have a 100Meg Drive, I would like to specify C: to use 30Meg of the drive, and leave the rest unparitioned. The only thing I have found that looked similar is ExtendOemPartition and I dont believe that is what I want. Any ideas? Thanks in advance.
  2. A little more info. I added a log to the batch file and it is complaining about a hotfix not being applied. I added the hotfix to the image with the /integrate option. The batch file calls a vbs script that looks for the hotfixes that have been applied here: cscript /nologo hotfix.vbs | find /i "908980" this portion must be failing when running via RunOnceex.cmd. hotfix.vbs is on the %systemdrive% in the same dir as sanupdate.bat. After the system logs in the first time, if I run this by hand, it finds the hotfix with no issues. Any ideas?
  3. Here are the contents of sanupdate. I just didnt post it because it was large. @echo off set rtn=0 set hbaqlcnt=0 set hbaemxcnt=0 set hbacnt=0 set temp=%systemdrive%\temp set ver=SANDec-14-05 if NOT exist %temp% mkdir %temp% >NUl 2>NUL if "%1" == "" goto doit if NOT "%1" == "/f" ( echo Usage - echo sanupdate echo or echo sanupdate /f echo /f - force update all components echo. goto done ) :doit echo. > %temp%\SAN_UPDATES.log echo Log file for SAN updates created on %date% %time% Version %ver% >> %temp%\SAN_UPDATES.log echo.>> %temp%\SAN_UPDATES.log systeminfo | find /I "os name" | find /I "2003" >> %temp%\SAN_UPDATES.log if NOT "%errorlevel%" == "0" ( echo Package not for this system. echo Package not for this system >> %temp%\SAN_UPDATES.log set rtn=5 goto done ) echo. >> %temp%\SAN_UPDATES.log rem Check for hotfix cscript /nologo hotfix.vbs | find /i "908980" if NOT "%errorlevel%" EQU "0" ( echo Hotfix Q908980 not installed. Updated Aborted. echo Install hotfix , reboot and then rerun updates. echo Hotfix Q908980 not installed. Updated Aborted. >> %temp%\SAN_UPDATES.log echo Install hotfix , reboot and then reun updates. >> %temp%\SAN_UPDATES.log set rtn=4 goto done ) echo Performing SAN Updates For Emulex HBA's...>> %temp%\SAN_UPDATES.log echo.>> %temp%\SAN_UPDATES.log :common echo. echo. >> %temp%\SAN_UPDATES.log echo Installing/Updating Common Applications.. echo Installing/Updating Common Applications.. >> %temp%\SAN_UPDATES.log echo. >> %temp%\SAN_UPDATES.log echo Quering All HBA's ... device count allhba-ids.txt set hbacnt=%errorlevel% echo Number of HBA cards detected : %hbacnt% if "%hbacnt%" == "0" ( echo No HBA controllers found in this server. echo No HBA controllers found in this server. >> %temp%\SAN_UPDATES.log echo. >> %temp%\SAN_UPDATES.log echo SAN update not performed. echo SAN update not performed. >> %temp%\SAN_UPDATES.log set rtn=5 goto done ) if /I "%PROCESSOR_ARCHITECTURE%" == "x86" ( set snapacks=pe-Navisphere_agent pe-powerpath32 ) else if /I "%PROCESSOR_ARCHITECTURE%" == "AMD64" ( set snapacks=pe-Navisphere_agent pe-powerpath64 ) else if /I "%PROCESSOR_ARCHITECTURE%" == "IA64" ( set snapacks=pe-Navisphere_agent pe-powerpathia64 ) else ( echo Package not for this system. echo Package not for this system >> %temp%\SAN_UPDATES.log set rtn=5 goto done ) set displaynames=Navisphere_Agent PowerPath REM back up navisphere configuration file if exist %temp%\agent.config ( del /S /Q %temp%\agent.config 2>NUl 1>NUL ) if exist "%ProgramFiles%\EMC\Navisphere Agent\agent.config" ( copy "%ProgramFiles%\EMC\Navisphere Agent\agent.config" %temp%\agent.config 2>NUl 1>NUL ) set lice= if %hbaqlcnt% GTR 1 (set lice=XXXX-XXXX-XXXX-XXXX-XXXX) if %hbaemxcnt% GTR 1 (set lice=XXXX-XXXX-XXXX-XXXX-XXXX) Rem execute all the update packs for %%i in (%snapacks%) do call :execpacks %%i %lice% if "%rtn%" == "" goto EOF REM restore navisphere configuration file copy /Y agent.config "%ProgramFiles%\EMC\Navisphere Agent" 2>NUl 1>NUL ::if /I "%PROCESSOR_ARCHITECTURE%" == "x86" ( :: rem installing powerpath patch :: start /wait EMCPP.W2003_32.4.3.1.P1.b114.exe /s /fe /v"/q REBOOT=ReallySuppress" ::) else if /I "%PROCESSOR_ARCHITECTURE%" == "ia64" ( :: start /wait EMCPP.W2003_64.4.3.1.P1.b114.exe /s /fe /v"/q REBOOT=ReallySuppress" ::) ) rem installing powerpath efix if /I "%PROCESSOR_ARCHITECTURE%" == "x86" ( echo Installing PowerPath Efix echo. >> %temp%\SAN_UPDATES.log echo Installing PowerPath Efix >> %temp%\SAN_UPDATES.log start /wait EMCPower.W2003_32.4.5.0.EF1.GA.exe /s /fe /v"/q REBOOT=ReallySuppress" ) else if /I "%PROCESSOR_ARCHITECTURE%" == "AMD64" ( echo Installing PowerPath Efix echo. >> %temp%\SAN_UPDATES.log echo Installing PowerPath Efix >> %temp%\SAN_UPDATES.log start /wait EMCPower.W2003_X64.4.5.0.EF1.GA.exe /s /fe /v"/q REBOOT=ReallySuppress" ) Rem install Solutions Enabler :done set err= set hbacnt= set hbaemxcnt= set hbaqlcnt= set lice= echo return code : %rtn% echo return code : %rtn% >> %temp%\SAN_UPDATES.log seterror %rtn% set rtn= goto EOF :execpacks if "%rtn%" == "" goto EOF if not exist "%~n1.exe" goto EOF echo Installing/Updating %~n1 ... start /wait %1 /s %2 set err=%errorlevel% type %temp%\%1.log >> %temp%\SAN_UPDATES.log echo.>> %temp%\SAN_UPDATES.log if "%err%" == "1" ( echo Error updating %1. echo Exiting with return code : 1 set rtn=1 goto done ) :EOF
  4. The batch files are being found, but arent completing. Could it bebecause something the batch file is looking for under the \SanKit\ directory hasnt been completely copied over yet? (its about 300Meg). Is there a better place to run the batch files automatically?
  5. I have the directories in the $oem$\$1\ folder: $oem$\$1\AP\ $oem$\$1\SanKit\ I must be confused about the GuiRunOnce. I thought the RunOncecmd was GuiRunOnce (disregard my ignorance). The code at the top is from the RunOnceex.cmd file. The sanupdate.bat runs fine if ran manually, so I dont think its something with the script. I just need these 2 batch files to run to install the san software on the machines. Is this not the place to do it?
  6. Maybe I am confused. Here is the contents of my cmdlines.txt: [COMMANDS] "RunOnceEx.cmd" It just kicks off RunOnceex.cmd, which I posted earlier. RunOnceex.cmd will run install.bat and sanupdate.bat on first logon (I have autologon enabled and autologoncount set to 1). Shouldnt this just run install.bat and sanupdate.bat?
  7. I am running a batch file from GuiRunOnce. The batch file takes about 2 minutes or so to complete if ran by hand, and completes with no issues. It installs several pieces of software, and does some quick checks to see if certain hotfixes are installed. When GuiRunOnce comes up after install, I see it kick off the batch file, but it finishes very quickly, with no obvious errors, and none of the software is installed. Here are the contents of the RunOnceEx.cmd: @echo off SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY% /V TITLE /D "Installing Applications" /f REG ADD %KEY%\005 /VE /D "install.bat" /f REG ADD %KEY%\005 /V 1 /D "%systemdrive%\AP\install.bat" /f REG ADD %KEY%\010 /VE /D "Sanupdate.bat" /f REG ADD %KEY%\010 /V 1 /D "%systemdrive%\SanKit\5.26\InstallScript\sanupdate.bat" /f EXIT sanupdate.bat is the one that is having the issue.
  8. Nice... It is working great. Thanks for the info!
  9. I am installing many machines with RIS with no problems. Each machine comes up with a random hostname that is generated based on the username that I used to install with. (i.e. if my username is bill, the machines will be named bill1, bill2, bill3, etc.) Now each machine will need to be renamed to what the final hostame will be (cumbersome). Is there an easier way to do this? For example each machine that is imaged using the db image will receive a hostname like db1-test, db2-test, etc, and machines imaged with the web image will be named web1-test, web2-test, etc., so when the machine is done installing the final hostname is correct. Worst case scenario would be to script the changing of the hostname somehow in GuiRunOnce, but I havent found a way to change the hostname on the command line either (OS is win 2003 btw).
  10. If I have an $oem$ directory structure set up, and put a directory under the $1 directory, the directory should be copied over to the system drive during install and be there after the OS is installed correct? i.e. D:\RemoteInstall\Setup\English\Images\WINDOWS\i386\$oem$\$1\TestDir\, there should be a directory named c:\TestDir\ on the machine once the install is complete. Am I understanding this correctly?
  11. It looks like the information in $oem$ is not being read. I added several drivers to the D:\RemoteInstall\Setup\English\Images\WINDOWS\i386\$oem$\$1\Drivers directory, and updated the .sif file with their associated paths: OemPnpDriversPath = "Drivers\Nic;Drivers\FC;Drivers\mngint;Drivers\LP1150E" and no drivers for these devices get installed. The drivers install manually without fail after the OS installs. I also added a "net" directory under $1 (D:\RemoteInstall\Setup\English\Images\WINDOWS\i386\$oem$\$1\net) to at least copy the folder containing the nic drivers to c: during install, but the folder doesnt show up on the c: drive once the install is complete. Anyone have any ideas? Here are the contents of my .sif: [data] floppyless = "1" msdosinitiated = "1" OriSrc = "\\%SERVERNAME%\RemInst\%INSTALLPATH%\%MACHINETYPE%" OriTyp = "4" LocalSourceOnCD = 1 DisableAdminAccountOnDomainJoin = 1 [setupData] OsLoadOptions = "/noguiboot /fastdetect" SetupSourceDevice = "\Device\LanmanRedirector\%SERVERNAME%\RemInst\%INSTALLPATH%" [unattended] OemPreinstall = yes OemPnpDriversPath = "\Drivers\Nic;\Drivers\FC;\Drivers\mngint;\Drivers\LP1150E" DriverSigningPolicy=Ignore FileSystem = LeaveAlone ExtendOEMPartition = 0 TargetPath = \WINDOWS OemSkipEula = yes InstallFilesPath = "\\%SERVERNAME%\RemInst\%INSTALLPATH%\%MACHINETYPE%" [userData] [userData] ProductKey= <Key goes here> FullName = %USERNAME% OrgName = %ORGNAME% ComputerName = %MACHINENAME% [GuiUnattended] OemSkipWelcome = 1 OemSkipRegional = 1 TimeZone = 4 AdminPassword = <password goes here> [LicenseFilePrintData] AutoMode = PerSeat [Display] BitsPerPel = 16 XResolution = 800 YResolution = 600 VRefresh = 60 [Networking] InstallDefaultComponents=Yes [NetServices] MS_Server=params.MS_PSched [identification] JoinDomain = %MACHINEDOMAIN% DoOldStyleDomainJoin = Yes [RemoteInstall] Repartition = Yes UseWholeDisk = Yes [TerminalServices] AllowConnections=1 [OSChooser] Description ="Windows Server 2003, Enterprise" Help ="Automatically installs Windows Server 2003, Enterprise without prompting the user for input." LaunchFile = "%INSTALLPATH%\%MACHINETYPE%\templates\startrom.com" ImageType =Flat Version="5.2 (3790)"
  12. I removed the LegacyNIC=1 entry and reinstalled. I get the same thing. When the machine is up, I can install the driver via device manager fine with no warnings.
  13. In the D:\RemoteInstall\Setup\English\Images\WINDOWS\i386 directory, my b57xp32.inf contains the following changes per http://bink.nu/Article2180.bink : [Manufacturer] %BRCM% = Broadcom [ControlFlags] ExcludeFromSelect = * [broadcom] The driver (b57xp32.inf) located in D:\RemoteInstall\Setup\English\Images\WINDOWS\i386\$oem$\$1\Drivers\NIC contains the original, unedited driver supplied by broadcom: [Manufacturer] %BRCM% = Broadcom, NTx86.5.1 [ControlFlags] ExcludeFromSelect = * [broadcom.NTx86.5.1] %BCM5700% = BCM5700.XpInst, PCI\VEN_14e4&DEV_1644 %BCM5700% = BCM5700CX.XpInst, PCI\VEN_14e4&DEV_1644&REV_21 My D:\RemoteInstall\Setup\English\Images\WINDOWS\i386\templates\ristndrd.sif file unattended section contains: [unattended] OemPreinstall = yes OemPnpDriversPath = "Drivers\NIC" FileSystem = LeaveAlone ExtendOEMPartition = 0 TargetPath = \WINDOWS OemSkipEula = yes InstallFilesPath = "\\%SERVERNAME%\RemInst\%INSTALLPATH%\%MACHINETYPE%" LegacyNIC = 1 It sounds like it should work based on your description. Anything else I could be doing wrong?
  14. Hi Guys, I am doing RIS installation on an HP server, of windows 2003 server. I found some helpful information on putting the drivers for the broadcom NIC into the image so I didnt get the PXE boot errors etc, and I have been able to successfully install the OS, but when the OS comes up, the NIC drivers are not installed (obviously the drivers worked in text mode for the install, but arent installing after the OS is installed). I have the drivers in the OemPnpDriversPath = "Drivers\NIC" directory. Anyone have any idea? Thanks in advance for any help.
×
×
  • Create New...