Ever found patching ESX 3.0.1 annoying?
Well I did until today when I decided I was bored trying to repair my vmts for the fifth time.
So me and a colleague came up with a simple script:
#!/bin/sh
patch_this () {
echo "Patching " $x
cd $x
esxupdate -n update
cd $CWD
}
CWD=`pwd` ; export CWD
for x in `cat /var/updates/install_order.txt`
do
patch_this $x
done
Couple of things. We chose the suggested patch directory (/var/updates) VMware posts on their patch web page to upload all the patch directories too, and we created a list of patches in date order so that they went on cleanly without any error messages regarding downgrading.
Here it is if you want to cut and paste:
ESX-2158032
ESX-1410076
ESX-1006511
ESX-9986131
ESX-8173580
ESX-6921838
ESX-2066306
ESX-6075798
ESX-5497987
ESX-3996003
ESX-2092658
ESX-2031037
ESX-1917602
ESX-1271657
ESX-9865995
ESX-6856573
ESX-6050503
ESX-5885387
ESX-5031800
ESX-3199476
ESX-9916286
ESX-6431040
ESX-2559638
ESX-2257739
ESX-1541239
ESX-7557441
ESX-7408807
ESX-7302867
ESX-7281356
ESX-6704314
ESX-6657345
ESX-5140477
ESX-5095559
ESX-4825991
ESX-1000073
ESX-1000070
ESX-1000039
-Binwooke

