VMware Cloud Community
vmhyperv
Contributor
Contributor
Jump to solution

ESX version no in Vcenter

Hi,

Can we find the list of ESX with version no in VCenter server though Power Cli.Please help me with the scriptto pullout the info in CSV format

In my my environment there are 200 ESX host.I need to find out ESX version for all.As some are 3.5,4.0 and 4.1 and ESXi4.1

Thanks

Kumar

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

I attached a file with all the lines


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

View solution in original post

0 Kudos
10 Replies
andreasbrunner
Contributor
Contributor
Jump to solution

I just made a short google search

http://www.vmdev.info/?p=88

http://ict-freak.nl/2009/06/09/powercli-get-esx-version-info/

Is this what you need?

regards

Andreas

vmhyperv
Contributor
Contributor
Jump to solution

Hi Andrea,

I appcreciate your help.i will check in office.Thanks for prompt help.

Thanks

Kumar

0 Kudos
LucD
Leadership
Leadership
Jump to solution

In the current PowerCLI build you can just do

Get-VMHost | Select Name,Version,Build

And when you also want to see the product, you can do

Get-VMHost | Select Name,@{N="Product";E={$_.Extensiondata.Config.Product.Name}},Version,Build


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

vmhyperv
Contributor
Contributor
Jump to solution

LucD,

  Perfectly working.Can this out put exported to CSV format.Please let me know the script.

Thanks

Kumar

0 Kudos
LucD
Leadership
Leadership
Jump to solution

Sure, try this

Get-VMHost | Select Name,Version,Build | Export-Csv "C:\report.csv" -NoTypeInformation -UseCulture


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

0 Kudos
vmhyperv
Contributor
Contributor
Jump to solution

LucD,

Is it possible to filter Which Host is ESXi and ESX with Name,version no,Build becuase right now (Mixed Env)we are in migration process from ESX to ESXi.

Thanks

Kumar

0 Kudos
LucD
Leadership
Leadership
Jump to solution

The 2nd version, the one that also shows the Product property, will show you if it is ESX or ESXi.


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

0 Kudos
vmhyperv
Contributor
Contributor
Jump to solution

Sorry i cant see any reply from you. Its blank.  Smiley Sad

Can you again reply with script for both the cases.

Thanks

Kumar

0 Kudos
LucD
Leadership
Leadership
Jump to solution

I attached a file with all the lines


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

0 Kudos
vmhyperv
Contributor
Contributor
Jump to solution

LucD,

    Thanks once again.Its perfectly meets my requirement. Smiley Happy

Thanks

Kumar

0 Kudos