VMware Cloud Community
ankitkushwaha95
Contributor
Contributor

Can we show cpu utilization,disk usage, and Ram capacity in ESXi machiene through powercli cmdlet

I want to check CPU utilization , disk usage and RAM capacity in ESXi though powerCLI pwershell cmdlet throgh script.

Tags (1)
0 Kudos
5 Replies
LucD
Leadership
Leadership

Have a look at the Get-Stat cmdlet.

I published some blogpost on statistics and PowerCLI, have a look.


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

0 Kudos
ankitkushwaha95
Contributor
Contributor

i want to check the performance of bare metal machine in which ESXi is running not on VM.

0 Kudos
LucD
Leadership
Leadership

Then you should do the Get-Stat for the ESXi node entities.

A simple example

$esx = Get-VMHost

Get-Stat -Entity $esx


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

0 Kudos
ankitkushwaha95
Contributor
Contributor

HOw to get disk space capacity of VMhost .

0 Kudos
LucD
Leadership
Leadership

That depends on which type of storage you want to see.

Datastores can be monitored with the Get-Stat cmdet (see for example Datastore usage statistics).

For storage used the by the ESXi itself there is afaik no statistical data captured and stored.

You can see the current utilisation through an SSH session to the ESXi and then a du or a df command.


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

0 Kudos