HP Insight Control server provisioning Adding Drivers to OS Build Plans
11
echo "Include Path= $includepath"
wget --include $includepath --mirror --execute robots=off --no-host\
-directories --cut-dirs=$noofcutdir --reject="index.html*"\
--continue $downloadurl
if [ $? != 0 ]; then
echo "Download failed"
exit 99
fi
if [ `ls |wc -l` -eq 0 ] ; then
echo "No files download, Exiting"
exit 99
fi
# Install all RPMs in that temporary directory.
for rpmfile in `find . -name "*.rpm"`
do
rpm -Uvh $rpmfile
if [ $? != 0 ]; then
echo " $rpmfile RPM Install failed"
else
echo "$rpmfile RPM Install successful"
fi
done
5. To include with the operating system installation, edit a saved copy of the required Linux build plan and add
the following three script steps to the end of it in the same order listed, or create a new OSBP with the three
script steps in the same order listed.
a. Add the new Post OS Driver Installation – Linux script created in step 4. The Parameter field should
have @__OPSW-Media-LinURI@/lpfc.
b. Add Reboot script with no parameters.
c. Add Wait for SA Agent with the script parameters --production --atLeast=3 --
atMost=30
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:
rpm –qa | grep xxxx
where xxxx is a keyword in the driver name.