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
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.
Why do you need to usage percentage on shell?
There are some free monitoring solution for that such as Zabbix.