Quantcast
Channel: VMware Communities : All Content - vSphere Management SDK
Browsing all 1860 articles
Browse latest View live

Need Help on ExtendVirtualDisk_Task on .NET SDK

Hi , I am developing an app to upgrade the hard disk of a VM. ExtendVirtualDisk_Task seems to be the API to extend the hard disk. However it is throwing the below exceptions when trying to upgrade the...

View Article


"code too large" - Javac complains about VimServiceStub.populateFaults method...

Hi, I am trying to genreate jar file from java classes by compiling the Vsphere wsd, using the Axis2 wsdl2java utility.  Java complains that the code is tool large for method populateFaults in...

View Article


Help creating a VApp from perl

So I'm trying to use CreateVAPP to create a new barebones Vapp and I'm running into problems. I have this call:  my $vapp = $rp->CreateVApp(name => "Test_for_DR_Script", configSpec =>...

View Article

Actual memory and CPU usage of ResourcePool managed object - which one is it

Hi, I'm creating a simple web page with jsp and Web Services SDK for monitoring usage of resouce pools.I'm getting usage information from ResourcePool MOR using (ResourcePool...

View Article

Throughput by traffic type on a vSwitch and/or distributed switch

Hello, I am currently working on a piece of software that determines how much of different types of traffic is flowing through switches in my VM environment. I am collecting throughput information...

View Article


datastore.siocActiveTimePercentage.average returning odd values

When you look at the datastore.siocActiveTimePercentage.average value through the vSphere Web Client you see either a 0 or a 100 for each datastore connected to a Host. When I query that same counter...

View Article

VcTag scripting object

I am not sure if I missed the memo or what but it seems that in 5.1 custom fields are now read only and everything needs to be converted to tags.  I am trying to figure out how to programatically...

View Article

Using copyVirtualDisk_Task with ESXi 5.5 API

Hi! So far I used the method "copyVirtualDisk_Task" of the API on an ESXi 5.1 server to copy a vmdk file on the datastore - and it worked well.With an upgrade to version ESXi, 5.5.0, (Build 1331820) it...

View Article


How to find disk usage of a thin provisioned virtual disk?

 Hi  I have a virtual machine having a thin provisioned virtual disk. The disk's allocated size is 8 GB but used size is around 2 GB.  I am interested in knowing is there a why of finding out the used...

View Article


vSphere & SOAP - API from Hell

We are trying to use the vSphere SOAP API to gather some statistics and informations about running systems. During our development we have found so many stupid, useless, and irritating things,that i...

View Article

Directory copy using InitiateFileTransferToGuest ??

Hello experts, I do have the question related to the FileOperation using the vSphere API. Q: How can we use the InitiateFileTransferToGuest() to upload the directory  ?- Do we have to browse through...

View Article

Making Desktop Pool

hi, Everyone. I want to make VMware Desktop Pool with making VM.And I Know There are exist VMware Horizon view Administrator web Page. but There are may step for making the Pool.So, I want to make a...

View Article

How to get VMs from datastore cluster?

Hi,Im trying fetch VMs from specific storage pod (datastore cluster) using ContainerView and PropertyCollector (example code use rbvmomi but I think it's more generic question):  pc =...

View Article


createSnapshotTask with SE-sparse disk type

In Vmware's Horizon View Linked Clones are of a disk type SE-sparse. Is there any programmatic way to take a snapshot (basically linked clone) and to have it use the se-sparse type?We currently use...

View Article

C# vSphere SDK: advanced search with VimClient.FindEntityViews()

Hi, i'd like to do some advanced search with VimClient.FindEntityViews(Type viewType, ManagedObjectReference beginEntity, NameValueCollection filter, string[] properties). Actually i get some VMs based...

View Article


c# exportvm lease never gets past initializing.

I am trying to export an ovf utilizing the powershell tools Vmware.Vim.dll and When I try to create a export job the job just stays in the initialize state and never changes to the ready state and the...

View Article

Image may be NSFW.
Clik here to view.

Way to get HA dedicated failover hosts via java SDK

Hi, I'm using java VMware vSphere SDK 5.0.0  to get properties of managed object. I set two hosts as dedicated failover hosts for HA admission control policy. I wanna this failover host list from SDK...

View Article


Property value getting by PropertyCollector is null but exists in the MOB

Hi, calling createVmfsDatastore(...) needs a MOR to a HostDatastoreSystem MO.I use the PropertyCollector to retrieve the property value of the property...

View Article

RecommendDatastores with C# throws an error - The object has already been...

Hi All, I'm new to VSphere. I have written a C# program to clone VM. Earlier we have used CloneVM_Task and it worked fine but now we are changing our environment to Datastore-clusters so I have...

View Article

instanceUuid from the ServiceContent AboutInfo

 Hi,  I would like to get the instanceUuid that I see in the MOB from the ServiceContent but when I retrieve and look at the returned object, instanceUuid is missing.  I have tried to retrieve the info...

View Article
Browsing all 1860 articles
Browse latest View live