VMware Cloud Community
jithinraj
Contributor
Contributor

How to get list of VMs from ESX CLI?

Hi All,

Can anyone please let me know the ESX command to list the VMs on ESX with performance data?

thanks

Jithin

0 Kudos
6 Replies
LucD
Leadership
Leadership

Not sure what exactly you are asking but with the Get-Stat cmdlet you retrieve performance data for VMs.


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

0 Kudos
jithinraj
Contributor
Contributor

I was looking for the command to list VMs from ESX host with VM's performance data, includes CPU, Memory utilization etc...thanks

0 Kudos
LucD
Leadership
Leadership

You can check if there is performance data for Historical Interval 1 by doing

Get-VM | Select Name,
    @{N="Perf data available";E={if(Get-Stat -Entity $_ -MaxSamples 1){"Yes"}}}

For the other historical intervals you will have to specify a Start and Finish parameter.

Have a look at my Statistics posts for an intro to performance data with PowerCLI. Start with Part 1.


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

0 Kudos
jithinraj
Contributor
Contributor

I was looking for VMs list from ESX server using service console command with VMs performance data.

Not sure whther I can use ESXTOP...

thanks

Jithin

0 Kudos
LucD
Leadership
Leadership

You can use the Get-EsxTop cmdlet.

But be warned, the interpretation of the output is not for the faint of heart Smiley Wink

I did a couple of posts on the Get-EsxTop cmdlet.

Perhaps these can help you on your way.


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

0 Kudos
jithinraj
Contributor
Contributor

Thanks very much for the information...

0 Kudos