how to see if a particular patch has been applied to my Esxi host

Hello,

I wouldl like to have powercli script to check if a particular patch has been applied to all of my esxi host.

The patch number is ESXi510-201412101-SG
fireburn11Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Alessandro ScafariaInfrastructure Premier Field AdministratorCommented:
This worked for me:

http://www.lucd.info/2010/06/21/script-esxupdate-query/

Let me know....
0
fireburn11Author Commented:
doesnt work for me , i dont have root username and password to esxi host. I was hoping using powercli to vcenter will give me what I need.
0
Alessandro ScafariaInfrastructure Premier Field AdministratorCommented:
I don't know if I'm pushing you anymore.....Can you reset your ESXi root password or you're forced to bypass it?
0
Uni KittyCommented:
This is for 4.0 but I think it will work for 5.x.  You probably still need admin access to use this method as well.

To determine the system level and build number of an ESX host using PowerCLI:
Open the PowerCLI command prompt.
Connect to the ESX or ESXi host using the command:

Connect-VIServer -Server ESXHostnameOrIPAddress

Note: Authenticate using an administrative user, such as root.

Run this command:

get-view -ViewType HostSystem -Property Name, Config.Product | select Name,{$_.Config.Product.FullName},{$_.Config.Product.Build} | ft -auto
 
To determine the patches or updates applied on the host, run this command:
Get-VMHost hostname | Get-VMHostPatch | Select Id,InstallDate,Description | ft -auto

If this doesn't work, you can compare it to the information about esxupdate commands in vCLI, in the vSphere Command-Line Interface Reference for version 5.x.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
ESXi510-201412101-SG from the patch portal is Build Number: 2323236

which is commonly known as ESXi 5.5 U3

https://www.vmware.com/patchmgr/findPatch.portal

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2086288

So what is the current build number of your ESXi 5.5, which can be found, in the Summary Page when checked with vSphere Client.

PowerCLI, why not use the

VMware Community Pack
http://www.virtu-al.net/featured-scripts/vmware-powerpack/

or use RV Tools - http://www.robware.net/

Both will report the Build Number!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.