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

Image may be NSFW.
Clik here to view.

To fetch if a lun belongs to USB from MOB Query

Hi , We have a requirement of getting all the ScsiDisk luns , but we need to ignore the luns which are of USB type . Can someone please help me how can I get the information from MOB . --Regards,Shu

View Article


Image may be NSFW.
Clik here to view.

Retrieving physical disk/lun mapping to DataStore / RDM

Is it possible to find the DataStore or VM(RDM) to which a Physical Disk/Lun is mapped?I could not find an applicable API for this. I can enumerate the VM's and Datastores to find the associated disks,...

View Article


Image may be NSFW.
Clik here to view.

A general system error occurred: internal error

I am using RegisterVM_Task API to register Virtual Machines on VCenter 6.5 (managed ESXs are also 6.5).However, at times, the RegisterVM_Task fails with SystemError and the message is: "A general...

View Article

Image may be NSFW.
Clik here to view.

Instant clone pool creation fails

My Environment:vCenter: 6.5U1 (build 7515524)Horizon: 7.5.0 (I have 5 connection server 3 of then in domain domain1.com and two other in domain2.com) I have a test server with ESXi 6.5 and local flash...

View Article

Image may be NSFW.
Clik here to view.

Custom Task - setTaskState to error - problem setting MethodFault

Hi I've found this question in lots of places, but it never seems to be answered.  I'm optimistic... I am using custom tasks, and am able to set the progress, and the state to "TaskInfoState.SUCCESS"...

View Article


Image may be NSFW.
Clik here to view.

Group level roles not propagating to user

We are implementing RBAC in our plugin where,I am using vSphere 6.5 and accessing roles from API's instead UI.I am having a user group with an admin role assigned to it in my vCenter.I have added a...

View Article

Performance manager query (QueryPerf) not returning performance counter values

We have a single vcenter out of a larger set that is not returning any performance counter values for any of its virtual machines.  There are VMs on the vcenter that do have the proper tools installed...

View Article

Image may be NSFW.
Clik here to view.

Read Tags from a VirtualMachine

How to get tags from a virtual machine in the example below:  // Get reference to the PropertyCollectorpropertyCollector = serviceContent.getPropertyCollector(); // Create a new ManagedObjectReference...

View Article


Image may be NSFW.
Clik here to view.

Cannot Set BIOS Boot Order Using VIM25 API From C#

(I did find a reference to a similar post about this from 2013 but no answers AFAICT and no code https://code.vmware.com/forums/2416/vsphere-management-sdk#463881|2319617)I am using the C# (targetting...

View Article


"Cannot compute changes for disk " error for disk attached after first snapshot

Hi,I 'm facing this error when we call queryChangedDiskAreas with changeID as '*' for a disk attached to a VM (which already had a snapshot and then deleted). Steps:Vm has one disk D1. Take snapshot...

View Article

Image may be NSFW.
Clik here to view.

How to find management IP(s) of ESXi host from VcHostSystem (vRO 7.3 and...

I am trying to find the ESXi host to which a virtual machine is registered. From the vm I am able to find the host (VcHostSystem) in vRO. Searching the API it would appear that I need...

View Article

Image may be NSFW.
Clik here to view.

How to upload a ovf template to vCenter in URL ?

In vcenter, when you try to import a ovf, u can input the url, then , let vcenter do the download work, but, I can not find a way to do it via SDK,  anyone knows how? thanks.

View Article

Image may be NSFW.
Clik here to view.

ESXi host local Disk IO performance data fetching through API

Suppose I do not have vROPS involved, could I get the following average/Peak disk bandwidth and IOPS performance data for every ESXi host with specifc time slot through vCenter API or PowerCLI ?Disk...

View Article


Image may be NSFW.
Clik here to view.

Setting environment for vsphere-automation-sdk-python on Red Hat 7.3

Hi,I tried to setup environment for python3.5 according to https://github.com/vmware/vsphere-automation-sdk-python. When I runpip install --upgrade --force-reinstall -r requirements.txt...

View Article

Image may be NSFW.
Clik here to view.

how get total and used disk space of a vm using disk path

Hi,How get VM's disk size using storage url or disk path ?does VMware API has this feature ?

View Article


Image may be NSFW.
Clik here to view.

Fetching Cluster Events using VI Java API

Hi,Can someone help me in connecting to vCenter server and retrieve only Cluster related events using VI Java API?Using below snippet I'm able to retrieve Cluster details of my interest say name etc......

View Article

Image may be NSFW.
Clik here to view.

How to saving/export VM's configuration?

I have a requirement to create a new VM(different location) using exactly the same configurations as of existing VM. I have copy of its virtual disks and so I am only interested in VM's configurations....

View Article


Image may be NSFW.
Clik here to view.

Import and Export of alarms in vCenter - utility application

Finding an easier way of managing alarms within vCenter has been bugging me for a while. I know there are the following VMware KBs to help:Restoring the default vCenter Server alarmsRestoring and...

View Article

Image may be NSFW.
Clik here to view.

VMware SDK with Java 10

Has anyone tried using the VMware SDK with Java 10? The samples work fine with Java 1.7 and 1.8 but i have challenges with 10.0.2 and 11.0.13. Connection to vCenter fails with the following...

View Article

Problem with host name setting when customize a Linux VM

 I am customizing an existing vm with Linux OS cloned by VC with VMWare SDK. In the customization, I want to set the host name of that vm in the form of FQDN. I can successfully set the host name as...

View Article
Browsing all 1860 articles
Browse latest View live


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