VMware Cloud Community
Kinsey0514
Contributor
Contributor

How to get cpu, memory usage in esxtop batch mode?

Hi,

I am working on the ESXi 5.5performance monitoring,  I want to get cpu/memory usage, my system information is as below( this os do not have any popular tools as it in other linux, like free, iostat and so on. )

/tmp #  vmware -v

VMware ESXi 5.5.0 build-1331820

/tmp # uname -a
VMkernel btodesx1.asiapacific.hpqcorp.net 5.5.0 #1 SMP Release build-1331820 Sep 18 2013 23:08:31 x86_64 GNU/Linux


I When I using "esxtop -b -d 2 -n 1" it returns hundreds of columns, and I have no idea which to pick up. Do anyone knows if there is any tricks to fetch cpu/memory usage?

Also I need to get the disk usags on this ESXi server but when ran "df -h" I got following information, this is not the same as usual as other system information.

Filesystem   Size   Used Available Use% Mounted on
VMFS-5     271.8G 257.6G     14.1G  95% /vmfs/volumes/datastore1
VMFS-5     279.2G 117.8G    161.4G  42% /vmfs/volumes/DS02
vfat         4.0G  26.6M      4.0G   1% /vmfs/volumes/52aeefef-6eb128f8-8307-d8d385d9c9e8
vfat       249.7M 157.0M     92.7M  63% /vmfs/volumes/c3486079-b25a8044-10c8-69cf4470eb62
vfat       249.7M   8.0K    249.7M   0% /vmfs/volumes/efad9e7e-b1eae333-9cc9-0e20b0990d20
vfat       285.8M 191.3M     94.6M  67% /vmfs/volumes/52aeefe3-8f940ab8-3729-d8d385d9c9e8

and "vdf -h" shows below information, so far from the output of these two commands I would like to know how to calculate the disk usage correctly.

Ramdisk              1k-blocks      Used Available Use% Mounted on

root                     32768       512     32256   1% --

etc                      28672       184     28488   0% --

tmp                     196608    168572     28036  85% --

hostdstats              566272      5828    560444   1% --

Any help will be appreciated. Thanks in advance.

Reply
0 Kudos
1 Reply
zXi_Gamer
Virtuoso
Virtuoso

I When I using "esxtop -b -d 2 -n 1" it returns hundreds of columns, and I have no idea which to pick up. Do anyone knows if there is any tricks to fetch cpu/memory usage?

Have a look at VMware vSphere 4 - ESX and vCenter Server and here ESXTOP - Yellow Bricks

"df -h"

Reports file system disk space usage

Whereas vdf is more particular about visorfs, so what you are seeing from vdf, is the usage statistics of ESXi's filesystem.

Reply
0 Kudos