VMware Cloud Community
SCharchouf
Hot Shot
Hot Shot

Get All information regarding ESXi Firmware Driver installed VIB

Hello

I'm looking for a script that can allow me to get all the below details from differentes hosts managed by differentes vCenter

Firmware

Drivers

ESXi version

installed VIB

Patches

Any idea? help?

54 Replies
SCharchouf
Hot Shot
Hot Shot

you are the best Smiley Happy

0 Kudos
SCharchouf
Hot Shot
Hot Shot

I'm trying also to add Release Name to my script is that Possible?

0 Kudos
LucD
Leadership
Leadership

Yes, something like this

            Select-Object @{N = 'vCenter'; E = { ([uri]$esx.ExtensionData.Client.ServiceUrl).Host } },

            @{N = 'vCenter Product'; E = { $esx.ExtensionData.Client.ServiceContent.About.Name } },

            @{N = 'vCenter Version'; E = { $esx.ExtensionData.Client.ServiceContent.About.Version } },

            @{N = 'vCenter Build'; E = { $esx.ExtensionData.Client.ServiceContent.About.Build } },

            @{N = 'VMHost'; E = { $esx.Name } },

            @{N = 'VMHost Product'; E = { $esx.ExtensionData.Config.Product.Name } },

            @{N = 'VMHost Version'; E = { $esx.Version } },

            @{N = 'VMHost Build'; E = { $esx.Build } },


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

SCharchouf
Hot Shot
Hot Shot

Smiley HappySmiley Happy

thx but not able to retrieve the Relase name for example ESXi 6.0 Update 2

0 Kudos
LucD
Leadership
Leadership

No, not directly.
That is a known issue since years.
There is no API or official resource where the link between build and Release Name is available.

There is 1 external file that I know of that has this information.

See ESXi Version Information now available as JSON

The drawback, you need an Internet connection, at least once to get to that JSON file.

Btw, this thread keeps going on.
I propose to close this thread, and if you have additional questions/requirements open a new thread, with a link to this thread.


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

SCharchouf
Hot Shot
Hot Shot

Oh yep yep sure

thank you for your assistance Smiley Happy

vmk2014
Expert
Expert

LucD,

After running the script, i didnt see any output. Am i missing something ?

pastedImage_0.png

Thanks

V

0 Kudos
LucD
Leadership
Leadership

The result is written to an XLSX file, see $fileName


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

vmk2014
Expert
Expert

Lucd,

I can see the report.xls.

Thanks

V

0 Kudos
winsolo
Enthusiast
Enthusiast

Hey LucD​,

Please, would you mind if I asked you to share the complete script? The bits and pieces are scattered across 4 pages.:smileyconfused: and I'm little bit skeptical about what's working and what's not, although I'll install the excel modules as you described, if not already done.

Sorry to have jumped in this conversation.

0 Kudos
LucD
Leadership
Leadership

Can you start from this version Re: Get All information regarding ESXi Firmware Driver installed VIB

And say what you are missing?


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

winsolo
Enthusiast
Enthusiast

Although there were errors, the script did run and generate the report I wanted.

Snag_754fe6f.png

0 Kudos
LucD
Leadership
Leadership

Looks like the $esx variable points to a node that is in a 'funny' state.

Do you have any ghost ESXi nodes in one of your vCenters?

Does Get-VMHost return valid data for all ESXi nodes?


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

0 Kudos
winsolo
Enthusiast
Enthusiast

Yes, there is. An ESXi host based on VMware Mobility Platform is part of this vCenter for a testing purpose.

Get-VMHost does produce this list with the "VMware Mobility Platform" (top 1)

Snag_766fa22.png

0 Kudos
LucD
Leadership
Leadership

Ok, then that probably explains the error message


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