VMware Cloud Community
gdmersh
Enthusiast
Enthusiast

esx cli command to find physical cpu and memory usage

Hi

I need to know a cli command that I can run on esx host shell to find the cpu and memory usage.

I tried using
export TERM=xterm 
esxtop "-n 1"  > 
 out.csv    to capture just one iteration of esxtop

But it shows garbage. It works on the terminal without redirection to a file. But how do I capture in a file?

Also what command I should use to get physical memory usage as esxtop does not show %mem

Would really appreciate the response.

Thank you 

.

0 Kudos
1 Reply
DavoudTeimouri
Virtuoso
Virtuoso

Why do you need to usage percentage on shell?

There are some free monitoring solution for that such as Zabbix.

-------------------------------------------------------------------------------------
Davoud Teimouri - https://www.teimouri.net - Twitter: @davoud_teimouri Facebook: https://www.facebook.com/teimouri.net/
0 Kudos