Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 208720

Re: Advice to overcome stalls on VcPlugin.getAllVirtualMachines()

$
0
0

Hi cdecanini_,
Thanks for your helpful info!  Here's what I decided on doing...

 

  1. Read VC.xml to get all the configured vCenters (aka: virtual-infrastructure-host)
  2. Capture into an array all vCenters that are disabled, enable the vCenter and write the updated XML back to VC.xml (if any are disabled)
  3. For each vCenter, execute a separate workflow as you suggested above with a timeout loop
    1. If a vCenter connection test fails or needs to be cancelled, add that vCenter to the array of disabled vCenters from #2 above
    2. If a vCenter connection test passes, remove that vCenter from the array of disabled vCenters from #2 above (if it exists)
  4. Write the XML back to VC.xml

 

 

The issue that I'm now running into is that once I enable a vCenter, in #2 above, I'm unable to programmatically refresh the vCenter Server Inventory so that "VcPlugin.allSdkConnections" will see the newly enabled vCenter.

Any ideas on this as well as my approach?

Thanks!


Viewing all articles
Browse latest Browse all 208720

Trending Articles



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