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

Is there a way to fetch Data Objects properties such as vDS port state in a...

Hi,I am trying to retrieve vDS ports properties such as the state in the most efficient way, not fetching the entire object but just this property. I know about the propertyCollector that can be used...

View Article


A way to get vDS ports for VMs of a certain Host

Hi,I am trying to get a list of vDS ports that have VMs connected from a certain Host.I tried using the vDS.FetchDVPortKeys(criteria) with the scope criteria but besides the fact that this criteria is...

View Article


Re: How do i programtically create a tag category via VIJAVA or vSphere SDK?

I didn't spend enough time on it, just did a few SSL packet captures.  It's basically the SOAP API, just they seem to embed some XPATH operations for the tag management inside the content.  I honestly...

View Article

Re: Is there a way to fetch Data Objects properties such as vDS port state in...

You won't be able to do so for the data objects, but FetchDVPorts does support criteria.  Assuming you have something besides *all* that you care about, that should be more efficient?  Are you seeing...

View Article

Image may be NSFW.
Clik here to view.

Re: Is there a way to fetch Data Objects properties such as vDS port state in...

I care about 80% of the ports and I tried dvs_object.FetchDVPorts(criteria) using as scope criteria the host but this criteria seems to be deprecated in 6.0 and for all ports beside the uplink ones the...

View Article


Image may be NSFW.
Clik here to view.

Re: Is there a way to fetch Data Objects properties such as vDS port state in...

I generally haven't seen much of a gain in parallel queries.  Usually it's just a DB lookup on the backend and the data transfer (at least for what you're working on) shouldn't be that large. Criteria...

View Article

Re: VimException Timeout, Session no longer exist

*Bump* Anyone have any advice?Thanks-Agent

View Article

Image may be NSFW.
Clik here to view.

Re: VimException Timeout, Session no longer exist

Generally you'd want to use SessionIsActive() on SessionManager, or I *think* CurrentTime() on the ServiceInstance object may do it as well.  Some of the property collector calls don't actually trigger...

View Article


C# application using vSphere SDK 5.5 fails to retrieve VM's data from VMware...

Hi,I am using vSphere 5.5  SDK to retrieve hosts and vm's data from VMware ESXi 4. The application successfully fetches data for hosts but it fails with the below exception when I try to retrieve data...

View Article


Image may be NSFW.
Clik here to view.

Re: C# application using vSphere SDK 5.5 fails to retrieve VM's data from...

Without digging too deep, you'll get errors if you ask for properties from the property collector that aren't defined in an older version of the SDK.  You'll have to write code logic to ask for 4.x...

View Article

Re: C# application using vSphere SDK 5.5 fails to retrieve VM's data from...

But when I try to run the below code i.e to extract VM data only, I get no errors while running it.In this code, I am only extracting VM data. But when I use a code in which I extract Host, VM and...

View Article

Re: C# application using vSphere SDK 5.5 fails to retrieve VM's data from...

It all depends on what properties you're requesting.  What properties are you requesting for the non-VM objects?

View Article

Re: C# application using vSphere SDK 5.5 fails to retrieve VM's data from...

I am requesting the below properties for Host Systems. It throws error for the last two properties i.e. vm and datastore (highlighted in red)...

View Article


Re: C# application using vSphere SDK 5.5 fails to retrieve VM's data from...

It's probably the property: config.service.service[\"vmware-vpxa\"].running.  You'll need to request config.service and iterate them yourself to find the key vmware-vpxa.

View Article

Image may be NSFW.
Clik here to view.

Re: C# application using vSphere SDK 5.5 fails to retrieve VM's data from...

No, that property works just fine. It fails for datasore and vm property. And I need them to find out the details of vm associated with each host. I am trying the below logic to handle these...

View Article


Need Create Datastore .NET Code to specify the capacity of datastore

Hi, We are using .NET Vimapi to commuicate to Vmware Server. How can set Datastore Capacity? Can we .NET sample code to specify datastore capacity. Thanks,Sainath

View Article

Image may be NSFW.
Clik here to view.

Re: SSO Client Samples return 400 bad request

Running into the same issue with the latest 6.0 SDK. Did you ever find a solution to this problem? Thanks,

View Article


Add RDM device 0 error

Hii am using c# api to add rdm ,i was able to add new disk(just regular virtual disk) but  when it come to rdm i am getting Device 0 errorthis is my code             var diskSpec = new...

View Article

Image may be NSFW.
Clik here to view.

check if a host is in a HA cluster by pyvmomi

Hi, I am trying to check if a host is in HA cluster.I am using Version 5.5.0 Build 2414847I found that:...

View Article

Image may be NSFW.
Clik here to view.

The problem of writing logs with the web client plugin under vsphere 6.0

I have developed a vSphere web client plugin under vSphere 6.0. In my plugin, I want to write logs using JAVA Logging to the directory c:\test\log\. At first, I ran my plugin on Windows Server 2008 R2,...

View Article
Browsing all 2052 articles
Browse latest View live


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