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

Re: Script Slow: VCD Pulling External/Internal IP from Org/vApp

$
0
0

I am not familiar with the VCD cmdlets at all, but I can provide maybe a couple of tips in general that could help.

 

 

The one thing you may want to take a look at though is the number of  "Get" commands you are running.... Namely that you are doing a Get-CINetworkAdapter for each and every $vm and  a Get-CIVM for every vapp... that is probably where most of your slowness is coming from....

 

It would be must faster to do those Gets before the FOREach statements, and then just do a filter,  or a where-object in the foreach...

 

 

I hope this helps


Viewing all articles
Browse latest Browse all 232869

Trending Articles



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