VMware Cloud Community
coolajay22
Contributor
Contributor

Discovery of virtual machines thro esxtop scripts

Hi buddy,

I like to discover virtual machine inventory of an esx server thro esxtop scripts, Please let me know if there is a possibility to automate this by shell or perl scripting ?

Thanks & regards

Ajay

Reply
0 Kudos
1 Reply
lamw
Community Manager
Community Manager

esxtop is primarily used for monitoring and collection of data for all system resources: CPU, memory, disk and network.

If you're using vCLI hence the forum you're posting in ... you have quite a few choices if you just want to "list" all the VMs for a given host:

1) /usr/bin/vmware-cmd

2) vminfo.pl

3)

4)

5)

or any other variation as you can write your own vSphere SDK for Perl scripts against the vSphere API:

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

If you find this information useful, please award points for "correct" or "helpful".

Reply
0 Kudos