Please, I beg you! Need a c# example on how to get the list of all host ESX via SDK... I can connect... etc...

Hello

I am train to figure this out for a few hours now... and all I find is some examples related to the properties of the VM or something else.

Now I am able to connect to the server and retrieve things like: Server date and time, version of the API etc...

I would like to get a code example that would give me the list of ESX servers include within a Virtual Center Server... the last thing I used I got something like: If. Content.searchIndex.ToMo & lt; Indexderecherche & gt; (so). FindEntities & lt; HostSystem & gt; (null, null);...

This well liked not... Maybe it was too easy...; (o)

And if you also have a quick way to let me know how to retrieve a simple thing as a host network adapter config... as if I want to know if it is a static address or dhcp etc...

PS. I have created also a ref to the service instance and service content.

Here's an example to get the version of the API: (I want that same thing as host nic for setting... but have not yet found the correct syntax)

var test = SERVICE_CONTENT.about.apiVersion.ToString ();

MessageBox.Show ("test");

Also... YES, I'm looking at the SDK prog. Guide... but all of the examples in which are in java... and a little far, the syntax is the same as c#

Jon

Thank you and I will award points to a significant response...

consoleVnic is an array of HostVirtualNic. Therefore, you must print a specific item from the array and not the array itself. It seems that this is the problem.

Tags: VMware

Similar Questions

Maybe you are looking for