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

vVol disk WWN ?

Hello Experts,Is there a way (in MOB) to identify the VM disk WWN when the disk is using the vVols as Datastore ?Thanks,Balu

View Article


Getting CBT Change ID using vSphere API

Hi, I am using following vSphere API to get the changed areas  vimPortType.queryChangedDiskAreas() the change ID is passed as parameter to this API and I am giving as "*" initially.Now for incremental...

View Article


Create a VmGroup in DRS and populate with VM (pyVmomi)

Hello,I'm trying to create a VmGroup and populate it with some VM in order to configure DRS to keep some virtual machines together.I wrote it in this way:def add_vm_to_vm_group(self, vm, cluster): #...

View Article

Custom Task setTaskState Error example

I'm trying to set error messages for my custom tasks when some unexpected error occurs.   From the vSphere 5.5 docs, I understand I need to invoke Task.setTaskState with the following parameters:...

View Article

Building and Running Samples (vSphere Web Services SDK 6.0 and JDK 8...

What are the necessary actions in order to build and run vSphere Management SDK 6.0 samples using Java JDK 8 (1.8.0_x) I have followed the Developer's setup guide. Aparently samples and stubs are...

View Article


vSphere4.x SDK compatiabilty with vSphere6

hello,Does product buit on VMware vsphere sdk 4.x works on the newly released vSphere6?it works fine on 5.1 and 5.5 but not sure about vSphere6.

View Article

How to configure VLAN in VSWITCH from VM?

I know how to configure VLAN in vswitch through vsphere client. But i want to know if it is possible to add vlan in vswitch from a virtual machine running in ESX server. Is there a way to use any...

View Article

How to install bundle on ESXi 5 using VI SDK 4.0/5.0

Hi, I am trying to install a bundle on ESXi 5 machine remotely using vSphere SDK but it seems VMware no longer supports "esxupdate" command. VMware says to use esxcli instead of esxupdate but for...

View Article


Image may be NSFW.
Clik here to view.

ResolveMultipleUnresolvedVmfsVolumesEx_Task() - VMware vSphere Web Services...

ResolveMultipleUnresolvedVmfsVolumesEx_Task() - VMware vSphere Web Services API displays "host.StorageSystem.resolveMultipleUnresolvedVmfsVolumesEx" as task name. There is no specification object,...

View Article


How do I determine the age of a virtual machine?

I've seen some Powershell to go through all the events and find the creation event, but this method doesn't seem ideal, as I understand it can get confused by software version upgrades, and the events...

View Article

Creating a VMFS Datastore using Vi Perl Toolkit Question

 Hello,  I am trying to use the VI PerlToolkit to create a VMFS datastore on an ESX Sever.  I found a method called CreateVmfsDatastore which is a managed object of type HostDatastoreSystem.  (See...

View Article

Image may be NSFW.
Clik here to view.

The variable String of the fault message in customized task can not be...

I registered a customized Task to my web client Extension with the task id: com.test.my_task.After that, I also registered the Extension Fault for this Task, the content of the fault.vmsg is as...

View Article

Image may be NSFW.
Clik here to view.

How to get performance data from CIM/SMASH for processor, memory etc. ?

I need to get some data for monitoring purposes concerning processor usage, memory usage, storage and similar. Right now, I'm using a system which manages its own Http packets and uses WS Management to...

View Article


Create Schedule task throwing invalid argument error.

Hi, Currently we are using DailyTaskScheduler for SOME activity in our plugin. Code Snip :     taskSpec details :                name : "task name"                description : "some desc"...

View Article

Object is NULL if querying a VM with brackets in DisplayName

Hello everybody, I just started using the VimClient with C#/.NETI have the following code:         VimClient client = new VimClient();        client.Connect(serviceUrl);        client.Login(userName,...

View Article


Image may be NSFW.
Clik here to view.

How to get ESXi information from vCenter via scripts

Hello Guru's,How do I collect all the ESXi hosts information in a cluster by doing SSH to vCenter. Basically, I want to do SSH to vCenter and get the host version, enic, fnic driver versions. I have a...

View Article

Image may be NSFW.
Clik here to view.

SSO Client Samples return 400 bad request

I'm using VMware-vSphere-SDK-6.0.0-2561048 and trying to obtain a token from vSphere SSO. Both the Java and .NET samples for AcquireHoKTokenByUserCredentialSample return a 400 http error code. I've...

View Article


Failure in CreateVM_Task: The request refers to an unexpected or unknown type.

I am trying to create a VM by constructing my own VirtualMachineConfigSpec object and calling CreateVM_Task but the operation is failing with the error: The request refers to an unexpected or unknown...

View Article

Image may be NSFW.
Clik here to view.

Execute SOAP request to Add Virtual Machine to DRS Group

Hi, I've been working with SOAP messages and the vSphere vimService lately. I've ran into a snag. I want to add a virtual machine to an existing DRS group by send a soap call to the API. Here's what...

View Article

Getting Tags Assigned to a Virtual Machine via the API

Hey All, By reading about various posts i see that until version 6 the tags assigned via the web client is only available to the web client is that true? I currently have a script to iterate each of...

View Article
Browsing all 1860 articles
Browse latest View live


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