Query 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### 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 ArticleRe: How to get VirtualMachine moid
Real paranoia greying out half of screen.. but answer to the point
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 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 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 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 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: "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 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 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 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 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 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: 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 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: Account lockout on vsphere web client and ssh
Hi splebdCheck Cannot Login to WebAccess but to ESXi console
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: 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 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 Article