This script will allow you to install the updates (
DUPs - Dell Update Packages) from the
SUU (Server Update Utility) DVD image mounted on your ESX 3.x host in the service console. Copy and paste to a file and be sure to chmod +x to make it executable.
Update Script
#!/bin/sh
# scott_hanson@dell.com
#
# Script to apply DUPs (Dell Update Packages) on ESX 3.x hosts
# PreReqs : SUU (Server Update Utility) DVD image mounted on /mnt/cdrom
#
# WARNING : This script applys updates with no user interaction or
# WARNING : prompting. Make sure this is what you want done. See below
# WARNING : for the line to un-comment to make it work.
#
echo 'Creating SUU Comparison report .... patience is a virtue'
/mnt/cdrom/suu -c > /tmp/suu_comparison_report
# Pull out the .BIN file names from the report - dump everything else
for i in `grep -i '.bin' < /tmp/suu_comparison_report | perl -pi -e 's/.*\s(.*?.bin).*/$1/gi'`
do
echo '----------------------------------------------'
echo 'Applying package '$i
# Apply DUPs with -q option to update silently with no user prompts
# Un-comment out the line below when done testing to apply updates.
# As-is the script just list updates it **would** have installed.
# /mnt/cdrom/repository/$i -q
done
echo ' '
echo ' '
echo 'Updates applied'
echo 'Now would be a good time to reboot the system.'
echo 'This script brought to you by the Dell Enterprise TechCenter'
echo 'Join us at www.delltechcenter.com'