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 ArticleGetting 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 ArticleCreate 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 ArticleCustom 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 ArticleBuilding 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 ArticlevSphere4.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 ArticleHow 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 ArticleHow 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 ArticleResolveMultipleUnresolvedVmfsVolumesEx_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 ArticleHow 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 ArticleCreating 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 ArticleThe 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 ArticleHow 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 ArticleCreate 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 ArticleObject 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 ArticleHow 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 ArticleSSO 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 ArticleFailure 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 ArticleExecute 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 ArticleGetting 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