Quantcast
Channel: VMware Communities: Message List - vSphere Management SDK
Browsing all 2052 articles
Browse latest View live

Issue with retrieveProperties

Hi, I am using VMWare SDK Web Service API to monitor and collect the performance statistics. I am trying to retrieve performance statistics (Historical Intervals) from vCenter. Here is the piece of...

View Article


Re: vpshere5 sdk: building vim25 dlls with VS2010 fails

Check out this blog post... could be your answer.

View Article


Adding hosts against 5.1 now failing due to SSL requirements

I have some WebServices C# code that used to switch off the vCenter Server advanced setting client.VerifySLLCertificates (set to false) then use the .AddStandaloneHost_Task to add a host. This was...

View Article

Re: Adding hosts against 5.1 now failing due to SSL requirements

You'll need to generate an SSL thumbprint.  You can get it by trying to add the host and failing (error will contain the thumbprint), or you can get the certificate and generate it yourself. Here's an...

View Article

Image may be NSFW.
Clik here to view.

Re: Adding hosts against 5.1 now failing due to SSL requirements

Thanks - had been wondering about how to get the thumbprint from the self signed certs on the new hosts. Will give that a try. Might try to extract from the fault first but already have code to upload...

View Article


vmFolder Not listing all VMs

Hey Gang, this is my first post so please forgive me if I ask any obvious questions.  I'm currently developing an app that interfaces with a VC via the rbvmomi library (ruby), which uses the vsphere...

View Article

Re: vmFolder Not listing all VMs

You're only getting the count from the that folder, not including the child folders and their vms.  You'll have to loop all the childEntities, if it's a folder, then you recurse down and count all VMs...

View Article

Re: duplicate TraversalSpec name (get MORef of host by its name)

It is solved now. The transversal spec was changed by changing the private static TraversalSpec getHostTraversalSpec() by public static TraversalSpec getHostSystemTraversalSpec() as shown below./**  *...

View Article


Re: Adding hosts against 5.1 now failing due to SSL requirements

Yeah, if you're managing the certs you can generate the thumbprints. If using the self-signed have to dig into the system to get them to get the thumbprint (or use the fault error message, which is a...

View Article


Image may be NSFW.
Clik here to view.

Re: Adding hosts against 5.1 now failing due to SSL requirements

Thanks again for pointing me in right direction... all sorted! All done in C#I connect direct to the new host using System.Net.WebClient and download the default SSL cert from host/ssl_certThen read...

View Article

Re: vmFolder Not listing all VMs

Hmm ok so I tried looking for subfolders, and didn't find any: dc.vmFolder.childEntity.grep(RbVmomi::VIM::VirtualMachine).size=> 63 dc.vmFolder.childEntity.grep(RbVmomi::VIM::Folder).size=> 0 Any...

View Article

Re: vmFolder Not listing all VMs

I also checked and made sure that I had permission to view each and every VM. I'm not sure what's going on here. I can't find any difference between those that show up and those that are missing.  They...

View Article

Browsing to https:///sdk gives blank page ?

We are running vCenter 5.1 (VCenter Server Appliance)  A programmer is attempting to utilize the API to pull information on ESXi hosts and VM's. When we point a web browser at...

View Article


Which Api to use?Beginner

Hello and nice to meet you.After reading http://stackoverflow.com/questions/5493697/which-vmware-api-should-i-use i'm not quit sureif i have to use assembly Vmware.Vim or VimService51.Of course...

View Article

Re: Browsing to https:///sdk gives blank page ?

That's normal.  Unless you send a proper REST request to the /sdk uri, you will get a blank page--if I recall correctly. The mob is there for a visual API browser.

View Article


Re: vmFolder Not listing all VMs

Not sure about the Ruby specifics, but haven't seen issues with Perl, Java, or dotNET.  Perhaps the childEntity (as it is in the SDK) is a moref, not the recursively extracted folder object, so your...

View Article

Re: Browsing to https:///sdk gives blank page ?

Thanks stumpr. Sure enough, I was able to throw together a quick python script using pysphere and it did return the info we were looking for.

View Article


Fault VimApi.InvalidArgument

Hello.I'm trying to run the example VMCreate2010 and i get this error.I'm using 5.1.I have tried to pass useroptions[8] = newOptionSpec("VimApi", "String", 0, "version...", "vmx-07");but i don't know...

View Article

Is any method really invoked when using CreateTaskAction and set a TaskTypeId

Hi All, I'm trying to create a task to invoke my own method/script and hoping it can show in the task list.  I add the taskInfo when register the extension like:        String myPkg =...

View Article

SRM Recoveryplan method issue please help

Hello all, We are using the SRM API 5.0 and trying to start a recovery plan in a disaster recovery mode. What we want to do is provide a button for the customer in our portal where he can push it and...

View Article
Browsing all 2052 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>