VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 1 "helpful" answer available (6 pts)
4 Replies Last post: Jul 26, 2009 11:12 PM by arpitmpatel13  

How to get the summary information (like the os, memory, etc) of a VM on the ESX using the visdk4.0? posted: Jul 26, 2009 6:40 PM

Click to view dikang85's profile Novice 7 posts since
Jul 26, 2009

As per subject.

And I will appreciate it if you can supply some sample code to me.

Thanks

Dikang

Click to view lamw's profile Champion 2,818 posts since
Nov 27, 2007
If you're looking to utilize the vSphere SDK, you won't be extracting this information from within the ESX Service Console, you'll be remotely connecting from either a Linux/Windows system and called from variety of languages (Powershell,Perl,C#, Java, etc.)

If you want to extract this using the Perl bindings (vSphere SDK for Perl), take a look at this vSphere health report which extracts this information: VMware vSphere Health Check Report v1.3

You'll be able to find the majority of VM information using these two sections:
http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.vm.Summary.html
http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.vm.GuestInfo.html


=========================================================================
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
http://twitter.com/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,818 posts since
Nov 27, 2007
Take a look at: vSphere SDK for Java and http://communities.vmware.com/blogs/DeveloperCenter/2009/07/17/introduction-to-the-vsphere-sdk-vi-sdk-in-java-and-c which has plenty of samples from the vSphere SDK for Java

=========================================================================
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
http://twitter.com/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 arpitmpatel13's profile Enthusiast 50 posts since
Oct 31, 2007

Hi,

You can also check samples.jar file, which contains number of sample programs for sdk4.

It is located in sdk/samples/Axis/Java directory.

Thanks

Developer Social Media

Communities