VMware Cloud Community
MJKNIGHT
Hot Shot
Hot Shot

More ESX 3.0.1 03/05/07 Patches......

Anyone dived in and applied the new patches yet.....

....patch adds support for Microsoft Clustering Server (MSCS) with Windows 2003 Service Pack 1 (SP1) and R2 Guest Operating Systems (KB 2021).....[/i]

ESX-3199476 Patch | 03/05/07 | Critical Patch

ESX-5031800 Patch | 03/05/07 | Security Patch

ESX-5885387 Patch | 03/05/07 | Security Patch

ESX-6050503 Patch | 03/05/07 | General Patch

ESX-6856573 Patch | 03/05/07 | Security Patch

ESX-9865995 Patch | 03/05/07 | General Patch

Please provide feedback below if you have any issues....

Cheers,

Michael.

Reply
0 Kudos
104 Replies
jlalvarado
Contributor
Contributor

Michael,

Thank you very much for your post, the script helped tremedously.

Kudos to your efforts!

Reply
0 Kudos
EclipseAgent
Enthusiast
Enthusiast

Michael,

Thank you very much for your post, the script helped

tremedously.

Kudos to your efforts!

Michael,

Thank you very much for your post, the script helped

tremedously.

Kudos to your efforts!

IMO.. It's way too much..

What I will typically do is:

#Untars all packages

for i in *; do cd $i; for j in *.tgz; do tar -xvzf $j; done; rm -rf *.tgz; cd ..; done

Be aware that for "Bundles", you'll either have to add an if statement that looks for a directory ESX*, change directory to it, then mv all directories within that to the directory below, but I just did this manually.

#Installs all packages

for i in \*; do cd $i; for j in ESX*; do cd $j; esxupdate --noreboot update; cd ..; done; cd ..; done

Here is how I do it..

I have a folder on the fileserver named 3.0.1 within that I have the date of the updates released (ie. 11-30-06, 03-05-07 etc).

The above script does it chroniclogilly(sp?) from the oldest to newest, and within each months folder.

Not sure if I am explaining myself good..

Message was edited by:

EclipseAgent

Reply
0 Kudos
guser
Contributor
Contributor

Hello,

I've run into an error when applying the patches using MichaelJKnights script.

22/06/07 11:07:50 Patch ESX-3199476 17 of 41 Installation Started

INFO: No repository URL specified, going with file:/var/updates/ESX-3199476

INFO: Configuring...

INFO: Preparing to install VMware ESX Server ESX-3199476...

ERROR: Error (123) executing \[ls /boot/grub/grub.conf /boot/grub/device.map /boot/initrdvmnix.img | xargs tar -P -czf /var/spool/esxupdate/systemfilesbackup.tar.gz /etc/vmware/*]

tar: /etc/vmware/esx.conf.READLOCK: Cannot stat: No such file or directory

tar: Error exit delayed from previous errors

22/06/07 11:07:57 Patch ESX-3199476 Installation Completed

In this thread, http://www.vmware.com/community/thread.jspa?messageID=624674&#624674 Svantes says: "It seems what happened was that the script was running too fast, and started the next patch when lockfiles were still in place?"[/i]

If this is true, maybe a delay should be added in the script after each call to esxupdate. Can you confirm that this would be the correct addition to the script?

\# Update patch bundle script with patches now in release date equence....

pcount=1

echo

for i in `ls -ltr 2>/dev/null | awk '\{ print $9} '`

do

echo Sequencing $i into patch bundle script

echo cd $localinstall/`echo $i |cut -f1 -d. `>> $localinstall/patchbundle.sh

echo echo ' `date +%e/%m/%y" "%H:%M:%S` ' "Patch `echo $i |cut -f1 -d. ` ` echo $pcount of $esxpatches ` Installation Started " >> $localinstall/patc$

echo "/usr/sbin/esxupdate -v 20 -n update" >> $localinstall/patchbundle.sh

echo echo ' `date +%e/%m/%y" "%H:%M:%S` ' "Patch `echo $i |cut -f1 -d. ` Installation Completed " >> $localinstall/patchbundle.sh

  1. *** ADDED - delay between calls to esxupdate ***

echo "sleep 5" >> $localinstall/patchbundle.sh

let "pcount = $pcount + 1"

done

thank you,

/guser

Reply
0 Kudos
Edt
Contributor
Contributor

Hi Michael,

I tried your code, but have not been successful. I got errors:

"bad interpreter: No such file of directory"

I ran the following:

sh ./file.sh --->shows an error on line 26

line 26: syntax error near unexpected token 'fi'

line 26: 'fi

Also, I did the following:

which sh --> and got the following /bin/sh {which seems OK}

hope you can help

Ed

Reply
0 Kudos
jlmale0
Contributor
Contributor

I'm having difficulties when I cut&paste the script. In particular line 81 setting the tstamp variable seems to have a mismatched back tick(`).

Digging into the logic, it seems something got missed entirely. The whole point of the line is to pull out the patch date so as to update the timestamp of the file/directory. I would expect to see the timestamp update accomplished with /bin/touch, but I never see this called.

Am I missing some wonderful magic, and the task is being accomplished, or did the code get corrupted somewhere along the way?

ps Any luck on getting a more permenant home for this script? Downloading directly may have circumvented this issue entirely.

Reply
0 Kudos