Link to home
Start Free TrialLog in
Avatar of compdigit44
compdigit44

asked on

ESXi 5.1 Host CPU and Memory Summary From Cli

Can you display the current CPU and memory usage on a host via the Cli. I have noticed sometime the GUI is slow to refresh and wanted to see if the Cli would provide more accurate information faster.
Avatar of REIT
REIT

What you need is a script to do this. We've used a .ps1 script which utilizes a PS command line to execute and get live stats on memory/cpu usage.

Hopefully the following Vmware post will be what you're looking for.

https://communities.vmware.com/thread/500545
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of compdigit44

ASKER

Thank you hancock.... so you can use Powercli to get the realtime stats of a VM and not the host???? Why  is this Oh great one... LOL :-)
So you want the CPU and Memory of the host, not the VMs on a host ?

 esxtop on the host (at console or via SSH) or resxtop (via vMA)

or event simplier, a single command

 get-vmhost

Open in new window


or

 get-vmhost | fl

Open in new window