HP Insight Control server provisioning Adding Drivers to OS Build Plans

5
if NOT %ERRORLEVEL% == 0 (
echo "No driver files found"
exit %ERRORLEVEL%
)
:: Echo Order Of Installs
for /f "delims=" %%a in ('dir/b %PnP%') do (
echo == Installing PnP Drivers == "%%a"
:: Delay
ping -n 3 localhost 1>nul
start "" %PnP%\%%a
)
cls
echo. * Installation Done *
exit
5. To include with the operating system installation, edit any Windows build plan and add the following four
script steps to the end of it in the same order listed, or create a new OSBP with the four script steps in the same
order listed.
a. Add Set Media Source script with the script Parameter @__OPSW-Media-WinUser@@__OPSW-
Media-WinPassword@@__OPSW-Media-WinPath@/media/postinstalldrivers#k
b. Add the new Post OS Driver Installation Windows script created in step 4. The Parameter field
should have K:
c. Add Reboot script with no parameters.
d. Add Wait for SA Agent with the script parameters --production --atLeast=3 --
atMost=30
NOTE: k in the new added steps represents a free drive letter and will be mounted to the Media Server.
The OSBP is complete and ready to deploy to a target server.
To verify the driver was installed, at a command prompt on the target server, run the following command:
driverquery | findstr xxxx
where xxxx is a keyword in the driver name.
Adding Linux Drivers
Adding drivers during execution of a Linux OS Build Plan is essentially the same for each of the supported Linux
distributions. The only real difference is in how the driver package is modified. That process is different for each
supported Linux distribution. This document explains how to do this for Red Hat Enterprise Linux (RHEL) 6.3 x64, RHEL
6.4 x64, SUSE Linux Enterprise Server (SLES) 11 SP2 x64 and RHEL 5.9 x64.
To modify the Linux packages, requires servers running the appropriate Linux OS. For example, to modify the RHEL 6.3
x64 driver package, a server running Red Hat 6.3 x64 is required. The driver package is obtained from the IC server
provisioning appliance database and then manually copied to the server running the appropriate Linux OS.
This section presumes that the reader is familiar with executing Linux commands and developing a Perl script.