#!/bin/sh ############################################################ # Proliant Support Pack - Setup script # # Version history: # 2006Nov29 : TLS : Added chkconfig hp-vtd off # 2006Nov27 : TLS : Move the LSOPTIONS from the config file to the command line # because the LSOPTIONS do not seem to work anymore # 2006Nov24 : TLS : Updated cma.conf settings, added rpms # 2006Nov16 : TLS : Many changes, pathing comp # 2006Oct27 : TLS : Created from RHEL setup script # # Notes: # - This hppldu.cfg file must be in the same dir as this script ############################################################ set -v set -x ######################### # Variables LOCAL_DIR=/sa/psp CALLINGPATH=`dirname $0` ORIGINALPATH=$PWD PSPINSTALLER=install752.sh DEFAUTCFG=hppldu-ocsr-nc.cfg # Get the build dir path cd ${CALLINGPATH}/.. BUILD_DIR=`pwd` ## Includes ## . ${BUILD_DIR}/include/vars.sh . ${BUILD_DIR}/include/functions.sh ############################################################ # Main # Make sure this dir does not exist if [ -d "${LOCAL_DIR}" ]; then rm -rf "${LOCALDIR}"; fi # Workaround for a bug in psp where it needs write access to the source files mkdir -p ${LOCAL_DIR} cp -R ${BUILD_DIR}/hp/hpasm ${LOCAL_DIR}/ # If a config file was provided, use it if [ ${1} ]; then DEFAUTCFG=${1}; fi ######################### # Run the PSP install # unset this because /usr/sbin/cpqacuxe contains a ref to /usr/bin/X11/xterm export XAUTHORITY= # This may be fixed by now, need to test cd "${LOCAL_DIR}/hpasm" ./${PSPINSTALLER} -v --nui --inputfile ./${DEFAUTCFG} cd ${BUILD_DIR} ######################### # System Management Homepage # This was added because the SMH settings in the psp install config file do not # appear to be working mv /opt/hp/hpsmh/conf/smhpd.xml /opt/hp/hpsmh/conf/smhpd.xml.orig cp ${LOCAL_DIR}/hp/smhpd.xml /opt/hp/hpsmh/conf/smhpd.xml /etc/init.d/hpsmhd restart ######################### # remove this service /sbin/chkconfig vlan off /sbin/chkconfig hp-vtd off ######################### # Install Addon and Updated drivers # Install rpms in directory for RPM in `ls -1 ${BUILD_DIR}/hp/rpms/${ARCH}/*.rpm` do rpm -ivh ${RPM} done ######################### # Install iLO firmware ${BUILD_DIR}/hp/ilo/ILO2-1.22-CP006747.scexe -s ${BUILD_DIR}/hp/ilo/ILO-1.87-CP006786.scexe -s ######################### # Install System firmware for FIRMWARE in `ls -1 ${BUILD_DIR}/hp/firmware/*.scexe` do ${FIRMWARE} -s done ######################### # ILO configuration ${BUILD_DIR}/scripts/ilo-setup.sh --reset ######################### # Configure Alerts sed -i.orig 's/^trapmail/#trapmail/g' /opt/compaq/cma.conf echo 'trapemail /bin/mail -s "HP Insight Management Agents Trap Alarm" rootmail' >> /opt/compaq/cma.conf echo 'trapemail /usr/bin/logger -t CMA -ip local0.crit' >> /opt/compaq/cma.conf ######################### # Clean-up rm -rf /sa/psp cd ${ORIGINALPATH} echo The system should now be rebooted.