How to find datastore of a VM from VM Name - VMWare.Vim.dll - C#
Hi,Is there anyone that can tell me how to find vm details from the VM Name in C# ?I tried using VMWare.Vim.dll but could not link existing datastore properties to an existing VM.For VM, i could link...
View ArticleRe: VirtualDisk VDiskId always null
The same problem with same environment versions here. Did you find the cause or workaround for this problem yet?
View ArticleRe: VirtualDisk VDiskId always null
No, I never got anywhere with it so I ended up abandoning the idea. Having abysmal documentation doesn't help either. I'm also starting to think this forum is dead, looking at the post to reply counts....
View ArticleRe: VirtualDisk VDiskId always null
I have looked at this problem again and i have found information which put me in the right direction.With the below code i can now extend the disk of a VM, i hope you can use it too....
View ArticleRe: How to copy Thin Provisioned Disk(vmdk file) from one data store to...
Hi, Do you found the answer? we meet the same problem. Thanks! --Haiwei
View ArticleRe: Cannot Set BIOS Boot Order Using VIM25 API From C#
I know this question is a little old but I'm going to reply anyway. When I built my app to automate VM builds, I was always frustrated because I couldn't find examples in C#. I believe your issue is...
View ArticleVsphere Automation rest API
Is there a way to fetch permissions or roles defined vsphere client through Vsphere Automation rest API
View ArticleRe: Vsphere Automation rest API
The vRA REST API has no connection to or knowledge of vCenter permissions or roles.
View Articlewhy CustomizationIPSettings not setNicSettingMap method?
vsphere web service sdk 6.7 public static CustomizationSpec createCustomizations(){ CustomizationSpec spec=new CustomizationSpec(); //创建文件类型windows CustomizationWinOptions...
View ArticleIssue with Remote Console over API after upgrade from vCenter 6.5U1 to...
Hi,We have issue with opening Remote Console over API after upgrade vCenter to 6.5 U2e from 6.5 U1g. On vCenter 6.5 U1g everything worked fine. Remote Console works fine from vCenter server 6.5 U2e...
View ArticleHow do get maxTotalLatency data
Hi I have managed two ESXi on my VCenter, and there are some virtual machines on these two ESXi. i used vijava.jar monitoring VCenter. I need the data marked in the image above. How should i get this...
View ArticleCan anyone explain why Performance Metric Keys differ in Deployments
In the process of monitoring Datastores, we track the total Read and Write latency of Datastores. Historically speaking, we would use performance metric keys 182 and 183. Based on a bit of code that...
View ArticleRe: VIsdk with C++
Hi..I am not able to generate "soapVimBindingProxy.h" with soapcpp2 -i -C -I\C:\Usr\gsoap\import vimService.hCan you please tell how to resolve this?
View ArticleInstanceUUID details
I've referred below articles in order to determine how to prevent this issue. According to those articles, the VM property value named "instanceUUID" is the easiest way to uniquely identify a VM in...
View ArticleVMWare VSphere SDK 6.7 - MOB - VpxSettings and LicenseManager
Hi All,I am trying to access , ServiceContent = > LicenseManager = > licensedEdition property .Have generated the files using wsdl available in SDK .Neither the LicenseMAnager class is present...
View ArticleRe: Looking for sample C++ code to create a vm guest
Hi..were you able to Create VM using c++? I have been able to establish a connection and list the available VMs.
View ArticleRe: CreateVM_Task failure during restore process.
Hi..I am also trying out to create VM using c++.Can you please share the code snippet of how you created the vm using config spec file?
View Articleconfig.vpxd.stats.collectPreAggregatedIntervalFactor parameter not present in...
Hi, There is a parameter config.vpxd.stats.collectPreAggregatedIntervalFactor parameter that needs to be set so that collection gets completed within 5 minutes.This parameter was present for 5.5 and...
View ArticleRe: Execute SOAP request to Add Virtual Machine to DRS Group
I spent almost a day figuring this out: You need to set the API version in the HTTP header: SOAPAction: "urn:vim25/6.5" If you don't do that you end up with an older API version, which does not support...
View ArticleTracking vmotions externally
So, I need to track where some of my vms move around to for Oracle compliance. I was scraping syslog with Splunk or plain old syslog, but that broke with the 6.7u3 update so I'm trying to find a...
View ArticleRe: Tracking vmotions externally
Ok, so its a Virtual Machine alarm, not a Datacenter one. I was looking at the wrong part when I read that. I'm thinking it would be one of these:- DRS VM Migrated- VM in Emigrating- VM is Hot...
View ArticleVMware remote plugin vCenter support matrix
Hi There,are there any official document or files for vmware remote plugin vCenter support matrix?it means the remote plugin is supported from which vCenter version. I saw there is an remote plugin...
View ArticleThe verification of VimPortType.cloneSession() failed even with a new clone...
We have a critical problem when using the new vSphere authentication in our remote plugin server, the below steps of new authentication approach are following the remote plugin sample from the SDK...
View ArticleTake the VMware Developer Survey for a Chance to Win a Sonos Move
Hello everyone, VMware is conducting our annual Developer Survey and we want to hear from YOU so we can assess and improve our developer program to better serve your needs. PLUS, we will be giving away...
View ArticleWindows vSphere Client (HTML5) service fails to start
My situation is 6.5 upgrade to 6.7u3SymptomsAccessing the vSphere Client (HTML5) of vCenter server in browser is failed with error message:503 Service Unavailable (Failed to connect to endpoint: [class...
View ArticleRe: Windows vSphere Client (HTML5) service fails to start
Hi, look at this KBVMware Knowledge Base ARomeo
View ArticleRe: Windows vSphere Client (HTML5) service fails to start
Mine is windows vcenter server not vCenter Server Appliance
View ArticleRe: Windows vSphere Client (HTML5) service fails to start
Mine is windows vcenter server not vCenter Server Appliance This doesn't work for me
View ArticleWhat is the difference between Vsphere Management SDK and Automation SDK?
What is the difference between Vsphere Management SDK and Automation SDK?
View ArticleAre there any maven repositories for vim25
Hi, Anyone knows which maven repository to use inorder to include vim25 jar the local project?Thanks in advance.
View ArticleRe: How to get VirtualMachine moid
Assuming ssh access is enabled you can ssh into your esx server from a bash terminal i.e... ssh {ESX IP Address} Once logged you can run the following command... vim-cmd vmsvc/getallvms Which will...
View ArticleAccount lockout on vsphere web client and ssh
Hello friends: I have the following concern: I have a stand alone esxi version 6.7 server; I had to manage via ssh on the server to set up a trust relationship, and after a while the session ended....
View ArticleRe: Account lockout on vsphere web client and ssh
Hi splebdCheck Cannot Login to WebAccess but to ESXi console
View ArticleRe: Account lockout on vsphere web client and ssh
Hi Asajm: I was looking at the thread that you recommended, but I can't find any solution there. The server does not have session lock configured. As I mentioned before, the only problem is that I...
View ArticleRe: Perl API Silent Install
Thank for figuring this out! And to complete the unattended install for Perl SDK, here's the one-liner to modify:perl -i -0pe 's/(?<a>\$gOption.*)(0;)(.*\n.*)(show)/$+{a}0;\3#\4/'...
View ArticleCannot extract VMs from VRealize with Api WeB
Hello,I have a PowerShell script that uses the Web API to extract data from host, cluster and VMs on VRealize but since I installed version 6.7 of VSphere, I have data from host, cluster but not those...
View ArticleRe: Refresh Network Information
Hi Doug, Quesiton , I want to use your script but just to get the refresh information for 1 HOST, could you please make me a script where I can enter the host name please? thanks!! Call it on the...
View ArticleVM Folder Name
Greetings,Is there a simple way for me to get the folder name of a vm? I am using the https://github.com/vmware/vsphere-automation-sdk-restThanks!
View ArticleSession not Authenticated - Client received SOAP Fault from server
Hello, I am attempting to retrieve HostSystem and VirtualMachine data with the web services API after using the vimport.login() method. I seem to be logging in just fine and retrieving the...
View ArticleRe: Session not Authenticated - Client received SOAP Fault from server
UPDATE I was able to retrieve the "Set-cookie" from the responseContext after using the _vimport.login() method and not before as the example code suggests. I am using the following code to add the...
View ArticleRe: "vDS dvs port cannot be found" when deleting a port mirroring session
Try removing the offending VM from the inventory (make a note of it's location beforehand) and re-adding back. /Tim
View ArticleGetting Properties from a ManagedObjectReference
I am trying to figure out how to get a subset of properties from a ManagedObjectReference to HostSystem. My current use case is that I am using a property collector to retrieve all VirtualMachines. One...
View ArticleRe: Getting Properties from a ManagedObjectReference
I was able to figure this out. In the vSphere Web Services SDK Programming Guide - VMware vSphere 6.7 starting on page 75, there is an Example: Inventory Traversal in Java that shows how to extend the...
View ArticleHow to map VirtualMachine virtualDisk metric instance id like scsi0:0 to...
I am querying virtual machine and its virtual disk..later getting virtual disk metrics for VM but I am having problem in mapping between VirtualDisk objectId and Virtual machine virtualDisk metric...
View ArticleFind hostsystem by findbyip
Hello,how to retrieve the information about hostsystem object by using searchindex.findbyip for ipv6,Findbyip works fine for ipv4. Is there any workaround to ger hostsystem object by using ipv6...
View ArticleRe: VIsdk with C++
Hi, you wrote the command wrong. In your case, the correct command will look like this: soapcpp2 -i -C -I C:\Usr\gsoap\import -d <path_to_generated_sources> vimService.hFor example: soapcpp2 -i...
View ArticleRe: How to get VirtualMachine moid
Real paranoia greying out half of screen.. but answer to the point
View Article### Not able to capture VMware event Lost network connectivity for DVSPort
I tried the following code. I am able to see the event in vSphere but not able to capture with code.I am able to see the descriptions related to event on this particular vCenter. To my understanding...
View ArticleQuery information from VCenter / Host / VMs
Hello friends, are you okay?I am working on a system that will read information from VCenter / Host / VMs. I identified some existing APIs, they are the API Rest and SOAP (vimService). However, I am...
View Article