I'm writing a perl script using Labmanager SOAP API to deploy multiple configs in Labmanger. After deploying the Config/VM, I would like to interact with the VMs in each config. To do this I am using the VIX Perl API. My issue is that I need to know the datastore path of each VM as soon as it is deployed so that VIX commands can be ran on it.
The script is multi-threaded. Each thread represents one configuration with one vm.
I know how to list all the datastores for all registered VMs. The VM name is not unique so I cannot parse this list for that. Does anyone know a way to reliably get the datastore path for a VM knowing either the MachineId or ConfigID/MachineID combo? Ideall I would be able to do sometype of search for the ID that will yield the datastore path.
I'm open to VI Toolkit, VIX or anything else out there that will allow me to get this info (preferably using Perl).
Thanks.