HP Insight Control server provisioning Capturing and Installing Linux System Images

10
uname -a | grep 86_64
if [ $? -eq 1 ] ; then
echo "Cannot migrate x86 target" >> $logfile
exit "11"
fi
if [ -e /etc/redhat-release ] ; then
cat /etc/redhat-release | grep "6.*"
if [ $? -eq 0 ] ; then
echo "found RHEL6" >> $logfile
filename="opsware-agent-LINUX-6SERVER-X86_64"
fi
cat /etc/redhat-release | grep "5.*"
if [ $? -eq 0 ] ; then
echo "found RHEL5" >> $logfile
filename="opsware-agent-LINUX-5SERVER-X86_64"
fi
fi
if [ -e /etc/SuSE-release ] ; then
cat /etc/SuSE-release | grep -i "version = 11"
if [ $? -eq 0 ] ; then
echo "found sles11" >> $logfile
filename="opsware-agent-LINUX-SLES-11-X86_64"
fi
cat /etc/SuSE-release | grep -i "version = 10"
if [ $? -eq 0 ] ; then
echo "found sles10" >> $logfile
filename="opsware-agent-LINUX-SLES-10-X86_64"
fi
fi
echo "File to Download -> $filename" >> $logfile
if [ -n "$filename" ] ; then
wget http://$icspip:8081/$filename >> $logfile
if [ -e "$filename" ] ; then
chmod +x $filename
echo "Execute ./$filename -s --opsw_gw_list $icspip:3001" \
>> $logfile
./$filename -s --settime --force_full_hw_reg \
--force_sw_reg --opsw_gw_list $icspip:3001 >> $logfile
else
echo "Download failed for http://$icspip:8081/$filename" \
>> $logfile
exit "1"
fi
else
echo "Download failed for http://$icspip:8081/$filename" \
>> $logfile
exit "1"
fi
exit 0
3. Click OK to save the script.
Create the Install Red Hat Linux Image OS Build Plan
Once the scripts from the Creating the Install Linux Image OS Build Plans sections have been created, the Linux install
OSBP can be created.
To create the Install Red Hat Linux System Image OSBP:
1. Make a copy of the ProLiant HW - Boot Linux Service OS OSBP by selecting Actions and Save As from the OS
Build Plan view.
2. Edit the new OSBP with the following: