Solved

How To get Host OS Processor count using VIX API

Posted on 2010-11-09
4
854 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 31

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

734 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