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

Re: Need a script to get Datastore with naa identifier

$
0
0

Since this is for a cluster and most datastores will be shared I would do something like this

 

Get-Clustercluster|Get-VMHost|Get-Datastore|SelectName,
@{N="Hosts";E={[string]::Join(',',($_.ExtensionData.Host|%{Get-View$_.Key|Select-ExpandPropertyName}))}},
@{N='Naa';E={[string]::Join(',',($_.ExtensionData.Info.Vmfs.Extent|Select-ExpandPropertyDiskName))}} |
fl

Viewing all articles
Browse latest Browse all 245504

Trending Articles



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