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

Re: Help speeding up this Vmware Netapp script i wrote - Rdm are mapped to what netapp filer/lun

$
0
0

I am guessing this is what is causing the slow down since it uses get-scsilun over and over.

 

 

Function GetScsiTarget([string]$VMHost,[string]$SCSICanonicalName) {
$Lun = Get-SCSILun $SCSICanonicalName -VMHost $VMHost
$RuntimeName = $Lun | Select -ExpandProperty RuntimeName
  return $RuntimeName

Would it be better to load get-scsilun for all hosts into a $string and search within that?

 

 

 

and i guess the same would be for function SearchFilers. Loading all the filers and their luns into a $string instead of connecting over and over

 

So you would recommend doing this to speed it up?


Viewing all articles
Browse latest Browse all 247646

Trending Articles



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