Solved

How To get Host OS Processor count using VIX API

Posted on 2010-11-09
4
843 Views
Last Modified: 2012-05-11
Hi,

I need to get No of processor available in the Host OS. Im using VIX API to automate my virtual machines. I can easily get the properties of Guest OS using VIX API, but dont know how to get the properties of host os. Can any one tell me how to do that, is there any function call for this?

Its urgent. Thanx in advance

0
Comment
Question by:ilava
4 Comments
 
LVL 30

Accepted Solution

by:
Zoppo earned 63 total points
ID: 34099773
Hi ilava,

sorry, I have no experience with this API, but searching the web I found a link where some java code is shown which may be helpful: http://communities.vmware.com/message/840068;jsessionid=036FCCF54E7B1547AE131DAD77B81E47

Maybe you can use this to find out how it is done in C++

Hope that helps,

ZOPPO
0
 
LVL 40

Expert Comment

by:coolsport00
ID: 34101184
Do you need to get the amt in coding? You can easily see processors while logged into the vSphere Client to vCenter or the host directly, click on the host in question, then the Summary tab.

Regards,
~coolsport00
0
 
LVL 28

Assisted Solution

by:bgoering
bgoering earned 62 total points
ID: 34101951
VIX API is for virtual machine automation and will not collect statistics on the actual ESX or ESXi host. You can use the powershell Get-VMHost to get those kinds of details. See http://communities.vmware.com/thread/261745 for some examples.

Good Luck
0
 
LVL 3

Author Comment

by:ilava
ID: 34221493
Thanks to all,

I have done this using php and soap client. anyway u ppl gave me  an idea how to get it out.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now