Spectrum1981
Enthusiast
Enthusiast

PowerCli install-vmhostpatch webpatch

Hello!

I just download and extract the hotfixes for the esx. After that i upload the extractet Folders to my external webserver.

So can i use the command:

Install-VMHostPatch -WebPath http://myEXTERNALWebServer/esx40/E
SX400-200906001/metadata.zip


Or is it only for internal use?

Thanks for help.

Rainer
0 Kudos
3 Replies
LucD
Leadership
Leadership

No, that is for general use.

As an alternative have a look at Import host patches into Update Manager. It provides a script to import a patch file into the Update Manager repository.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
Spectrum1981
Enthusiast
Enthusiast

Hi!

That doesn´t work. I get the following Message:

[vSphere PowerCLI] C:\Programme\VMware\Infrastructure\vSphere PowerCLI> Install-
VMHostPatch -WebPath http://vmware.domain.net/esx/ESX410-201104001/metadata.z
ip
Install-VMHostPatch : 04.06.2011 13:04:03    Install-VMHostPatch        The fol
lowing error occured while updating host '192.168.112.2': [Errno 4] IOError: <u
rlopen error (111, 'Connection refused')>
Bei Zeile:1 Zeichen:20
+ Install-VMHostPatch <<<<  -WebPath http://vmware.domain.net/esx/ESX410-201
104001/metadata.zip
    + CategoryInfo          : InvalidArgument: (:) [Install-VMHostPatch], VimE
   xception
    + FullyQualifiedErrorId : Client20_SystemManagementServiceImpl_InstallVMHo
   stPatch40_InstallError,VMware.VimAutomation.ViCore.Cmdlets.Commands.Host.I
  nstallVMHostPatch

I can access the metadata.zip frm the Webbrowser. The ESX has the permission to access the internet over http, https and ftp.

So where ist the fault?

0 Kudos
RvdNieuwendijk
Leadership
Leadership

The main error message you get is: 'Connection refused'. You can try to specify credentials using the HostUsername and HostPassword or the HostCredential parameters. E.g.:

Install-VMHostPatch -WebPath http://vmware.domain.net/esx/ESX410-201104001/metadata.zip -HostUsername root -HostPassword secret


Regards, Robert

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition
0 Kudos