VMware Cloud Community
RvdNieuwendijk
Leadership
Leadership

Get-VMHostPatch returns nothing for ESXi 5.1 hosts

In my environment the Get-VMHostPatch cmdlet does not return anything for ESXi 5.1 hosts. For ESXi 4.1 the cmdlet runs as expected. I am sure that the ESXi 5.1 hosts have some patches installed. This looks like a bug to me. Does anyone else see this behaviour?

I tested this with PowerShell v2 and PowerCLI 5.1 Release 1 build 793510.

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition
Tags (3)
Reply
0 Kudos
9 Replies
MKguy
Virtuoso
Virtuoso

I first thought you might have forgotten to update the Update Manager PowerCLI package but quickly noticed that Get-VMHostPatch is part of the regular vSphere PowerCLI release.

I can confirm this problem on multiple 5.1 vCenter servers managing 5.0 and 5.1 hosts, directly connected to hosts too:

PowerCLI Version
----------------
   VMware vSphere PowerCLI 5.1 Release 1 build 793510
---------------
Snapin Versions
---------------
   VMWare AutoDeploy PowerCLI Component 5.1 build 768137
   VMWare ImageBuilder PowerCLI Component 5.1 build 768137
   VMware License PowerCLI Component 5.1 build 669840
   VMware VDS vSphere PowerCLI Component 4.1.1 build 000001
   VMware vSphere PowerCLI Component 5.1 build 793489
   VMware vSphere Update Manager PowerCLI 5.1 build 782803

Seems like this isn't quite a new issue either:

http://communities.vmware.com/thread/336323

So it looks like the only reliable check for patches at the moment would be via Get-EsxCli?

-- http://alpacapowered.wordpress.com
Reply
0 Kudos
RvdNieuwendijk
Leadership
Leadership

So it looks like this problem was introduced in vSphere 5.0. Maybe someone from the PowerCLI team can shine a light on this?

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

Thanks for reporting this issue, I have raised a bug for this.

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com
Reply
0 Kudos
anandprakash
Contributor
Contributor

Hi,

Thanks for raising this as bug. Do you have any update on this bug or bug reference so that we can contact VMware Technical Support.

Best Regards,

Anand Prakash

Regards, Anand
Reply
0 Kudos
rcengland
Contributor
Contributor

I'm seeing the same problem.  I am available to provide any information necessary to resolve this issue.

Thank you

Reply
0 Kudos
BRomister
Contributor
Contributor

Thats issue also is for Powercli 5.5 r1

Reply
0 Kudos
IBMWintelDSA
Contributor
Contributor

A new year and still no luck, most current PowerCLI 5.5 still does not return Patch info for vSphere 5 hosts.

Reply
0 Kudos
LucD
Leadership
Leadership

I'm afraid so, and it is mentioned in the help for the Get-VMHostPatch cmdlet.

Like a well-known PM once said, "To ship is to chose".

But did you try the alternative via the Get-EsxCli cmdlet.

I.e. $esxcli.software.vib.list()


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

Reply
0 Kudos
esxi1979
Expert
Expert

Did this fixed ?

BTW i ran,

get-vmhost |get-vmhostpatch |select-object -property vmhost,installdate,id,Description

but it works only for some version of 4.1

But what i am looking for is o/p in below format  :-

Hostname xxxx  - ESXi 5.0 Update 3  -  1311175 (build num)  - Installer Build Number if any



Can someone pls guide .. (I know i can get the build # from get-vmhost ..)

Also 1 more observation... as we know this works only for esxi 4.1... but i checked its not working for

ESX 4.1 GA And ESX 4.1 Update 1 - 348481

I tested for ESXi/ESX 4.1 Patch 10 & it came well.



Reply
0 Kudos