thinking sysadmin

qstat -u aleonard -s z

Archive for the ‘scripting’ tag

Quick and Dirty VMware ESX Patching

leave a comment

On the ESX console, do the following:

  • Read the documentation for each patch.
  • Group patches that can be installed together into a directory, possibly an NFS mount available on all your ESX hosts.
  • Cd into the patch directory and untar the patches:

    for i in `ls *.tgz`; do
    tar -xvzf $i
    done

  • Install the patches:

    for i in `ls`; do
    if [ -d $i ]; then
    cd $i
    esxupdate --noreboot update
    cd ..
    fi
    done

  • Reboot.

Written by Andy

July 31st, 2008 at 1:41 pm