Sample scripts – HP SmartStart-Software User Manual
Page 25

Smart Update Firmware DVD Automatic Deployment Mode 25
Sample scripts
The sample script is used to control updating firmware on blades in an enclosure. This script connects
virtual media to each iLO in the enclosure. The script can either invoke the RIBCL script directly or invoke
a wrapper script containing an invocation of the RIBCL script. The "for" loop at the bottom of this file
contains two lines, one of which has been commented out. Comment in or out the line for the desired
mode of operation.
After you have flashed the server blades, you can use the BB2.sh script to disconnect the Virtual Media by
passing it the Eject_Virtual_Media.xml file as the RIBCL script to execute or Eject_Virtual_Media.sh script
based on the state of the commented out lines.
#
# check for args
#
if [ "$TMP" == "" ]
then
echo "Please set the TMP environment variable"
exit
fi
usage ()
{
echo "usage: Used to connect Virtual Media and execute a RIBCL script on
each Blade in an enclosure"
echo " BB1.sh <OA_ipaddress> <OA_username> <OA_password>
<script_filename>"
}
if [ "$4" = "" ]
then
usage
exit
fi
host=$1
user=$2
passwd=$3
script=$4
hostfile="hostlist.txt"