VMware

This Question is Answered

1 "helpful" answer available (6 pts)
4 Replies Last post: Oct 22, 2009 5:39 PM by davidsulock  

Need dynamic updates on VM's Status... is vMA right for me? posted: Oct 22, 2009 4:25 PM

Click to view davidsulock's profile Novice 3 posts since
Oct 22, 2009
Hi,

First of all I would like to say vSphere is amazing.

Secondly, my goal is this: To get real time updates about the CPU usage, disk i/o, and memory on a per-VM basis, not just for an overall ESX server. I will send this information to another machine (possibly a VM on the same ESX server, but not necessarily).


Is vMA the right tool for me?

Click to view lamw's profile Champion 2,814 posts since
Nov 27, 2007
vMA is just a management appliance that provides the vSphere SDK for Perl (which are the Perl bindings to the vSphere API)

I think what you're looking for is what SDK/API you could get this information and it would be the vSphere SDK and the language of choice is up to you based on whether you want to create PowerCLI, Perl, .NET, vbscript, C#, etc. application to monitor and query for this information.

Take a look at this document to help get you started on the SDK/API: Getting Started with vSphere SDKs

Also regarding performance monitoring with the vSphere API, take a look at: Learn and to the right there is further documentation vSphere APIs for Performance Monitoring

=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
vGhetto Script Repository
VMware Code Central - Scripts/Sample code for Developers and Administrators
VMware Developer Comuunity
Twitter: @lamw

http://engineering.ucsb.edu/~duonglt/vmware/vexpert_silver_icon.jpg

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

Click to view lamw's profile Champion 2,814 posts since
Nov 27, 2007
If you're monitoring VMs that run on VMware's enterprise hypervisor ESX(i) and their management system vCenter, then you'll be using the vSphere SDK (vSphere) and VI SDK (VI 3.5) to do so. VMware exposes their API as a set of web services interface (SOAP) and in that sense, any scripting or programming language that can communicate via SOAP can utilize the API to do pretty much any task you can using the vSphere Client from querying basic system information, performance stats from both VMs and host, provisioning, etc.

VMware also provides a set of toolkits or "bindings" which are language specific to allow administrators and developers to create simple scripts or complex applications. These consists of PowerCLI using Powershell for Windows, vSphere SDK for Perl using Perl, vSphere SDK for Java using Java and for C#/.net. The actual API is built and exposed from both ESX(i) and vCenter and you would just use these toolkits and your credentials to connect to the web services.

You need to decide which of these languages you would like to use, but the performance metrics you're referring to are available using the vSphere SDK and that is what you'll want to use. I would recommend you taking some time to go over the two documents I reference, especially if you're new to the SDK/API from VMware, it should answer majority of your questions and how to get started based on the language you choose. Once you feel comfortable with the basics, you can also visit the developers community http://communities.vmware.com/community/developer which includes various forums for the different language binding SDK's, including a sample code repository for the various languages.

=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
vGhetto Script Repository
VMware Code Central - Scripts/Sample code for Developers and Administrators
VMware Developer Comuunity
Twitter: @lamw

http://engineering.ucsb.edu/~duonglt/vmware/vexpert_silver_icon.jpg

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

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities