VMware Cloud Community
dominic7
Virtuoso
Virtuoso

esx automatic patching

I've been out of touch with the ESX community for a while as I worked on a 6 month project, but I've freed up some time and can work on more fun stuff again ( yay ).

Anyway, I've written a script to take care of one of the more tedious parts of ESX v3, patching. I was inspired by this gentleman (http://virtrix.blogspot.com/2007/03/vmware-autopatching-your-esx-host.html), but his process didn't quite fit all my needs. I wanted something that would work via ftp, and all check the integrity of the patches before they were installed. The result is this:

Script:

http://www.vmprofessional.com/material/esx-autopatch.pl

Pre-compiled patchlist.txt

http://www.vmprofessional.com/material/3.0.1/patchlist.txt

http://www.vmprofessional.com/material/3.0.0/patchlist.txt

If you like it, please drop me a line at dominic@vmprofessional.com, if you don't like it email me and let me know \*why* you don't like it.

Cheers,

Dominic

0 Kudos
102 Replies
Optic_Nerve
Enthusiast
Enthusiast

Hi DigitalVoodoo,

Did you transfer the script to your ESX server with FTP? I had this problem when I transferred it using FTP from a Windows box. It had something to do with the codes for carriage return being changed to the wrong type.

Try downloading the script again, and this time zip it up before you transfer it to the ESX server. That way you can be sure nothing changes during the transfer.

Cheers,

Optic

0 Kudos
Svante
Enthusiast
Enthusiast

DigitalVoodoo,

You also want to make sure you use "binary mode" if using FTP (wether you zip it up or not).

0 Kudos
DigitalVoodoo
Enthusiast
Enthusiast

Thanks gents! After redownloading it, verifying binary mode transfer, and editing the file it on the host it works great. I appreciate the quick help!!!

0 Kudos
chandlm
Expert
Expert

I definitely want to add my thanks to you Dominic!

I finally had a chance to give this a shot and even for someone who isn't even close to a linux admin you made this simple. Thanks for the script, and my keyboard thanks you since I don't have to go to each box and run the updates. If I could give you points on this thread I would! Smiley Happy

Mark

0 Kudos
dmehringer
Contributor
Contributor

I keep running into an error with one of my hosts...

Installing patch ESX-2066306

INFO: Configuring...

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

INFO: 1 packages need to be downgraded.

Please use the --force option and try again.

Verifying installation: \[failed]

Patch ESX-2066306 failed to install.

So I try it manually:

\[root@stlvm01t ESX-2066306]# esxupdate -n update

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

INFO: Configuring...

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

INFO: 1 packages need to be downgraded.

Please use the --force option and try again.

Doesn't work:

\[root@stlvm01t ESX-2066306]# ls

descriptor.xml headers VMware-esx-vmx-3.0.1-35804.i386.rpm

\[root@stlvm01t ESX-2066306]# rpm -Uvh VMware-esx-vmx-3.0.1-35804.i386.rpm

Preparing... ########################################### \[100%]

package VMware-esx-vmx-3.0.1-42368 (which is newer than VMware-esx-vmx-3.0.1-35804) is already installed

\[root@stlvm01t ESX-2066306]#

Yet the script still thinks I need it....

\[root@stlvm01t ESX-2066306]# esxupdate query

Installed software bundles:

\---- Name \---- --- Install Date --- --- Summary ---

3.0.1-32039 06:51:30 12/03/06 Full 3.0.1 release of VMware ESX Server

ESX-1006511 15:18:06 02/20/07 Fixing TX hang in 80003ES2LAN Controller

ESX-2158032 15:28:25 02/20/07 Add LFENCE for RWO on AMD K8 before RevF

ESX-1410076 15:36:10 02/20/07 BSOD 0x109 during 64-bit Windows install

ESX-1271657 15:46:09 02/20/07 Open IPMI improvement for slowness.

ESX-1917602 15:53:05 02/20/07 To improve compatibility for Windows NT.

ESX-2031037 15:54:38 02/20/07 To provide LUN an unique ID Name

ESX-2092658 15:58:27 02/20/07 SNMP agent returns full VM config file.

ESX-3996003 16:04:32 02/20/07 To support the latest time zone rules.

ESX-5497987 16:08:49 02/20/07 Fixes a misleading locking message.

ESX-6075798 16:18:59 02/20/07 Force vmxnet module to be installed 1st.

ESX-6921838 16:27:19 02/20/07 hot removal of a virtual disk thru SDK

ESX-9986131 16:35:04 02/20/07 Updated openssh, python, and openssl

ESX-9865995 11:58:10 03/09/07 LUNs of MSA Array disappear and reappear

ESX-6856573 12:12:30 03/09/07 PhysMem_Get() accesses wrong pages

ESX-6050503 12:14:58 03/09/07 Error on "network adapters" tab in VC UI

ESX-5885387 12:15:39 03/09/07 RedHat Moderate: gzip security update

ESX-5031800 12:16:17 03/09/07 RHSA-2006:0749 tar security update

ESX-3199476 12:17:26 03/09/07 VMXNET shutdown may lead to BSOD

ESX-9916286 11:51:49 04/03/07 To update zlib library for ESX 3.0.1

ESX-2559638 11:52:18 04/03/07 Update info rpm for ESX 3.0.1.

ESX-2257739 11:53:32 04/03/07 To deliver several fixes in vmkernel.

ESX-1541239 11:54:10 04/03/07 Updates Emulex Fibre Channel driver.

ESX-3416571 07:44:13 04/04/07 Potential Buffer Overflow.

ESX-5011126 07:44:44 04/04/07 Potential Buffer Overflow.

ESX-7737432 07:45:13 04/04/07 Potential Buffer Overflow.

ESX-7780490 07:45:39 04/04/07 Potential Buffer Overflow.

ESX-8174018 07:46:09 04/04/07 Potential Buffer Overflow.

ESX-8852210 07:48:17 04/04/07 Potential Buffer Overflow.

ESX-9617902 07:49:15 04/04/07 Potential Buffer Overflow.

ESX-4825991 11:07:05 05/17/07 To deliver several fixes in vmkernel.

ESX-5095559 11:13:58 05/17/07 This patch contains several fixes.

ESX-5140477 11:16:57 05/17/07 SSL certificate verified by MKS plugins.

ESX-1161870 11:18:09 05/17/07 Several bug fixes in vmware-vmx.

ESX-6657345 12:38:25 05/17/07 iSCSI device failed with check condition

ESX-6704314 12:39:19 05/17/07 Memory leaks in VMware Tools.

ESX-7281356 12:40:03 05/17/07 To update tzdata rpm from Red Hat.

ESX-7302867 12:40:53 05/17/07 console OS oops after aacraid_esx30 load

ESX-7408807 12:41:38 05/17/07 Hang when booting with one local mirror.

ESX-7557441 12:42:41 05/17/07 Each mgmt-vmware restart impacts all VMs

Any thoughts?

0 Kudos
dominic7
Virtuoso
Virtuoso

The script still thinks you need it because it's not installed. It seems that you installed at least1 patch out of order which is what the script was designed to keep people from doing in the first place. The esx-autopatch.pl looks at the output of 'esxupdate -l query' to determine if the patch is installed, it doesn't have the intelligence to know if you have a superseding patch.

0 Kudos
dmehringer
Contributor
Contributor

So what's my recourse now? I beleive I patched some of these systems before I had your script and perhaps some did get apllied in the wrong order. Do I have to rebuild?

0 Kudos
dominic7
Virtuoso
Virtuoso

There are a few options.

1. Live with it the way that it is... it won't hurt your system.

2. Force the re-install of all patches, and make sure that they are in order.

3. Rebuild.

There is no way ( right now ) to have the script force the reinstall of all patches, but you could alter the script to do that. I would personally rebuild the host, but for me a rebuild is just 10 minutes of a scripted install and 25 minutes of patches so I take that road whenever possible anyway.

0 Kudos
Svante
Enthusiast
Enthusiast

Hi,

I had a go at adressing the issue where the script sees patch bundles (ESX-6431040 so far) as uninstalled. Basically I extended the patchlist.txt to include info on every subpatch contained (from the official description page for the patch). As you can see, I added an extra field that list all patch numbers in the bundle, separated by ":".

I wrote my patch to be generic, so if there is a similar issue, all that should be needed is adding the extra info in patchlist.txt for the specific bundle. The new version of patchlist.txt should work with the old version of the script btw (but you of course won't get the bundle excluded since there is no logic to use the extra info without the patch)

The logic is: Check in "esxupdate query" for every sub-patch. If any of them are missing, install the whole bundle again. If all of them are installed, remove the bundle from install list.

It would probably be wise to wait for a official/tested update to the script from Dominic7, if he finds my patch useful, before trying it on a production system. It works fine here though.

---

First, change patch 24 in patchlist.txt:

024,ESX-6431040,ef6bc745b3d556e0736fd39b8ddc8087

This should be changed to:

024,ESX-6431040,ef6bc745b3d556e0736fd39b8ddc8087,1161870:3416571:5011126:7737432:7780490:8174018:8852210:9617902

Here is the patch for the script:

\--- esx-autopatch.pl 2007-05-18 12:02:59.000000000 +0200

\+++ esx-autopatch-new.pl 2007-05-18 12:02:27.000000000 +0200

@@ -176,6 +176,26 @@

}

}

+# Separate check for subpatches in bundled patches

+foreach ( sort keys %patch ) {

+ my $patch_no = $_;

+ if (my $subp = $patch\{$patch_no}\{subpatches}) {

+ my $subp_ok = 1;

+ my @subpatches = split(/\:/, $subp);

+ # Check that every subpatch is found in output from "esxupdate query"

+ foreach (@subpatches) {

+ if (!( $output =~ m/ESX-$_ / )) {

+ # This subpatch was not found! Flag that we need to reinstall parent patch

+ $subp_ok = 0;

+ }

+ }

+ # If we passed the checking of all subpatches, delete parent patch

+ if ($subp_ok eq 1) {

+ print "$patch\{$patch_no}\{name} already installed, removing from install list.\n";

+ delete $patch\{$patch_no};

+ }

+ }

+}

if ( $dry_run ){

  1. Print details about execution

@@ -296,9 +316,10 @@

s/
s+$//; # remove trailing spaces

if ( /^#/ ) \{ next; } # Skip commented lines

if ( $_ eq "" ) \{ next; } # Skip blank lines

\- my ( $patch_no, $patch_name, $md5sum ) = (split(','))\[0,1,2];

+ my ( $patch_no, $patch_name, $md5sum, $subp ) = (split(','))\[0,1,2,3];

$patch\{$patch_no}\{name} = $patch_name;

$patch\{$patch_no}\{md5sum} = $md5sum;

+ $patch\{$patch_no}\{subpatches} = $subp;

}

}

Save the above to a file called "esxautopatch.patch", in the same directory as esx-autopatch.pl resides in. Then execute:

patch < esxautopatch.patch

Done!

0 Kudos
EricSc
Contributor
Contributor

Is there a easy way to script in to rm all the tgz's after they are unpacked in the /var/updates directory before the installs begin?

0 Kudos
MBrownHenn
Contributor
Contributor

Dominic,

Great script. I had it working perfectly on some other esx hosts, but now I can not get it to work on one of my new ones. I am getting the error:

Can't call method "login" on an undefined value at ./esx-autopatch.pl line 142.

Here is line "142"

$ftp->login($ftp_user,$ftp_password) or die "Could not establish FTP connection with $ftp_host\n";

I verified the ftp site and authentication work perfectly.

0 Kudos
jsnyder
Contributor
Contributor

I have opened the firewall manually and commented out the script and still get the following error:

Downloading updates from http://xxxxxxx/VIPatches/3.0.1

Could not open file:

./patchlist.txt.

The patchlist is in the directory with the updates and I am using the http method.

Any suggestions?

0 Kudos
moberle
Contributor
Contributor

Dominic this is a great script.

I modified it to be able to update the version number as part of a start parameter. We have both 3.0.0 and 3.0.1 in our environment and it is easier to start with a parameter than to change the code for each Host.

We have run into the timing issue but a peculiar thing has popped up. We dont get the problem on our 1855's but we do on our 1955's The 1955's are Dual Core CPU's the 1855's are not. This is more of a nuisance than anything because of the built in error catching that you have included (great work) so we just restart the script if it fails. But we dont want to have to. My suggestion is to do a check for the availability of the files listed below in a loop before starting the next update. This would ensure that the previous update had finished before starting the next one. Or check for this error and do a retry loop 3 times at a 30 second interval the first time a 90 second interval the second time and a 300 second interval on the 3rd and fail on the 4th.

My Perl experience is very limited so I dont know what the best approach to doing this is. But I will have a go at it if someone else doesnt.

Here is the error message.

Verifying installation: \[ok]

Installing patch ESX-5031800

INFO: Configuring...

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

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

Verifying installation: \[failed]

Patch ESX-5031800 failed to install.

\[root@dmz-esx9a Utils]#

regards,

Michael

Optic Nerve -

I've updated the script so that I think it should

eliminate this behavior. Of course I can't be sure

because I've never seen it myself. Would you be

willing to test it out for me and let me know if you

get better results?

-Dominic

0 Kudos
bprins
Contributor
Contributor

This script below will work very fine!!!!

Between each patch you need to sleep for about 30 seconds, because the services restart by the previous patch are starting in the background. If the next patch is executed to early it will fail. For example 5 seconds are not enough!!!

I tested it on a few ESX server without any problems anymore!!

Good luck

Bjorn

\# ************************************************************************************************

\# List of all ESX 3.0.1 patches included in this script

\# VMWare ESX Updates till: 05/15/07

#

\# IMPORTANT: Use the same order for installation as on the website (reverse order of release date)

\# If dir does not exist create the directory for example: /var/updates and upload all patches to /var/updates/

\# Make this script executable with: "chmod +x patch.sh"

#

\# MAKE SURE THE VOLUME HAS MORE THAN 1200 MB OF FREE SPACE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

#

\# ************************************************************************************************

\# Written by Bjorn Prins

\# Last edited on June 7 2007

\# Revision history:

\# 2007-06-07 - Initial release

\# ************************************************************************************************

\# Patches included:

\# ESX-4825991 Patch | 05/15/07 | Critical Patch

\# ESX-5095559 Patch | 05/15/07 | Security Patch

\# ESX-5140477 Patch | 05/15/07 | Security Patch

\# ESX-6657345 Patch | 05/15/07 | General Patch

\# ESX-6704314 Patch | 05/15/07 | Security Patch

\# ESX-7281356 Patch | 05/15/07 | General Patch

\# ESX-7302867 Patch | 05/15/07 | Critical Patch

\# ESX-7408807 Patch | 05/15/07 | General Patch

\# ESX-7557441 Patch | 05/15/07 | General Patch

\# ESX-1541239 Patch | 03/29/07 | Critical Patch

\# ESX-2257739 Patch | 03/29/07 | Critical Patch

\# ESX-2559638 Patch | 03/29/07 | Security Patch

\# ESX-6431040 Patch | 03/29/07 | Security Patch | This patch consists of 8 patches

\# ESX-9916286 Patch | 03/29/07 | Security Patch

\# 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

\# ESX-1271657 Patch | 01/31/07 | General Patch

\# ESX-1917602 Patch | 01/31/07 | General Patch

\# ESX-2031037 Patch | 01/31/07 | General Patch

\# ESX-2092658 Patch | 01/31/07 | General Patch

\# ESX-3996003 Patch | 01/31/07 | General Patch

\# ESX-5497987 Patch | 01/31/07 | General Patch

\# ESX-6075798 Patch | 01/31/07 | General Patch

\# ESX-2066306 Patch | 12/28/06 | Critical Patch

\# ESX-6921838 Patch | 12/28/06 | General Patch

\# ESX-8173580 Patch | 12/28/06 | General Patch

\# ESX-9986131 Patch | 12/28/06 | Security Patch

\# ESX-1006511 Patch | 11/30/06 | Critical Patch

\# ESX-1410076 Patch | 11/30/06 | Critical Patch

\# ESX-2158032 Patch | 11/30/06 | Critical Patch

\# ************************************************************************************************

tar -xvzf ESX-2158032.tgz

cd ESX-2158032

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-2158032

tar -xvzf ESX-1410076.tgz

cd ESX-1410076

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-1410076

tar -xvzf ESX-1006511.tgz

cd ESX-1006511

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-1006511

tar -xvzf ESX-9986131.tgz

cd ESX-9986131

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-9986131

tar -xvzf ESX-8173580.tgz

cd ESX-8173580

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-8173580

tar -xvzf ESX-6921838.tgz

cd ESX-6921838

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-6921838

tar -xvzf ESX-2066306.tgz

cd ESX-2066306

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-2066306

tar -xvzf ESX-6075798.tgz

cd ESX-6075798

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-6075798

tar -xvzf ESX-5497987.tgz

cd ESX-5497987

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-5497987

tar -xvzf ESX-3996003.tgz

cd ESX-3996003

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-3996003

tar -xvzf ESX-2092658.tgz

cd ESX-2092658

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-2092658

tar -xvzf ESX-2031037.tgz

cd ESX-2031037

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-2031037

tar -xvzf ESX-1917602.tgz

cd ESX-1917602

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-1917602

tar -xvzf ESX-1271657.tgz

cd ESX-1271657

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-1271657

tar -xvzf ESX-9865995.tgz

cd ESX-9865995

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-9865995

tar -xvzf ESX-6856573.tgz

cd ESX-6856573

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-6856573

tar -xvzf ESX-6050503.tgz

cd ESX-6050503

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-6050503

tar -xvzf ESX-5885387.tgz

cd ESX-5885387

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-5885387

tar -xvzf ESX-5031800.tgz

cd ESX-5031800

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-5031800

tar -xvzf ESX-3199476.tgz

cd ESX-3199476

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-3199476

tar -xvzf ESX-9916286.tgz

cd ESX-9916286

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-9916286

tar -xvzf ESX-6431040.tgz

cd ESX-6431040

export PATCHES=$PWD

esxupdate -n -f -r file:$PATCHES/ESX-1161870 update

sleep 30

esxupdate -n -f -r file:$PATCHES/ESX-3416571 update

sleep 30

esxupdate -n -f -r file:$PATCHES/ESX-5011126 update

sleep 30

esxupdate -n -f -r file:$PATCHES/ESX-7737432 update

sleep 30

esxupdate -n -f -r file:$PATCHES/ESX-7780490 update

sleep 30

esxupdate -n -f -r file:$PATCHES/ESX-8174018 update

sleep 30

esxupdate -n -f -r file:$PATCHES/ESX-8852210 update

sleep 30

esxupdate -n -f -r file:$PATCHES/ESX-9617902 update

cd ..

sleep 30

rm -rf ESX-6431040

tar -xvzf ESX-2559638.tgz

cd ESX-2559638

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-2559638

tar -xvzf ESX-2257739.tgz

cd ESX-2257739

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-2257739

tar -xvzf ESX-1541239.tgz

cd ESX-1541239

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-1541239

tar -xvzf ESX-7557441.tgz

cd ESX-7557441

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-7557441

tar -xvzf ESX-7408807.tgz

cd ESX-7408807

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-7408807

tar -xvzf ESX-7302867.tgz

cd ESX-7302867

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-7302867

tar -xvzf ESX-7281356.tgz

cd ESX-7281356

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-7281356

tar -xvzf ESX-6704314.tgz

cd ESX-6704314

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-6704314

tar -xvzf ESX-6657345.tgz

cd ESX-6657345

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-6657345

tar -xvzf ESX-5140477.tgz

cd ESX-5140477

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-5140477

tar -xvzf ESX-5095559.tgz

cd ESX-5095559

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-5095559

tar -xvzf ESX-4825991.tgz

cd ESX-4825991

esxupdate -nf update

cd ..

sleep 30

rm -rf ESX-4825991

clear

grep Final state: /var/log/vmware/esxupdate.log

********************************************

Message was edited by:

bprins

Message was edited by:

bprins

0 Kudos
dominic7
Virtuoso
Virtuoso

I've posted a new version of esx-autopatch.pl ( v1.2 )

\# Version 1.2

\# - Automatically determine esx version number

\# - Handle patches like ESX-6431040 more gracefully, won't show up as uninstalled ( requires newer patchlist.txt )

\# - Better error handling for md5sum

\# - Color Output and formatting changes

\# - Will only install patches when server is in maintenance mode unless --no-mm specified

\# - Download patch, verify, install, delete source package install process to reduce space requirements

\# - Option to install local updates and not delete source

\# - Option to have local installs not unpack each update

Get the new version here:

http://vmprofessional.com/material/esx-autopatch.html

0 Kudos
rspieterick
Enthusiast
Enthusiast

Great script. This is going to make staying up to date on patches a lot easier.

Couple suggestions:

\* Add support for the patches being in an ftp sub directory. For instance /dir1/subdir1/3.0.1

\* Add logic to only install those patches that exist on the http/ftp source. Instead of having to remove lines from patchlist.txt or comment them out, the script would skip patches that aren't present in the source directory.

0 Kudos
rspieterick
Enthusiast
Enthusiast

Has anyone encountered issues with the script aborting after patch 6431040 installs? I'm using the ftp method and for some reason it fails to download the next patch after it completes the install of 6431040. If I rerun the script it successfully downloads the patch it failed on and finishes installing the rest of the patches. This has happened on multiple servers.

INFO: | Configuring the VMware VmPerl Scripting API.

INFO: |

INFO: | Building the VMware VmPerl Scripting API.

INFO: |

INFO: | Using compiler "/usr/bin/gcc". Use environment variable CC to override.

INFO: |

INFO: | Installing the VMware VmPerl Scripting API.

INFO: |

INFO: | The installation of the VMware VmPerl Scripting API succeeded.

INFO: |

INFO: | The configuration of VMware ESX Server 3.0.1 build-42368 for this running

INFO: | kernel completed successfully.

INFO: |

INFO: | Completing update for VMware-esx-srvrmgmt - 2/2

INFO: | Updated: VMware-esx-srvrmgmt 3.0.1-42368.i386

INFO: | Transaction(s) Complete

INFO: Shutting down hostd...

INFO: Running esxcfg-boot to regenerate initrds...

INFO: Restarting hostd...

INFO: --- TOTALS: 2 packages installed, 0 pending or failed, 0 excluded ---

INFO: Install succeeded - please come again.

Verifying installation: \[ OK ]

Deleting the source Package ESX-6431040.tgz \[ OK ]

Deleting the source Package /var/updates/ESX-6431040 \[ OK ]

Patch ESX-9916286 \[ OK ]

md5sum: /var/updates/ESX-9916286.tgz: No such file or directory

Checking md5sum \[ FAILED ]

0 Kudos
Johnret
Contributor
Contributor

Question: I installed the scripted and patches, along with the patchlist.txt. Ran the script from local /var/updates and the dry-run is reporting that all the patches are missing. I compared the report with the patches that are sitting in /var/updates and they are all the same, why is it reporting them as missing? or am I suppose to have the patches in a different directory for the script to decompress them prior to installing from /var/updates?

Thanks

John

0 Kudos
dominic7
Virtuoso
Virtuoso

missing is a misnomer, it means they aren't installed on the system.

-Dominic

0 Kudos
Johnret
Contributor
Contributor

Thanks, it seems to be working now, and WOW will this script save me allot of work... Thanks again

0 Kudos