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

Re: How do I find the location of a cluster?

$
0
0

Try something like this

 

$clusterName="MyCluster"

$path=@()
$cluster=Get-Cluster-Name$clusterName
$parent=Get-View$cluster.ExtensionData.ResourcePool
while ($parent.parent){
 
$parent=Get-View$parent.parent
 
$path+=$parent.Name
}
[
array]::Reverse($path)
[
string]::Join('/',$path)

Viewing all articles
Browse latest Browse all 228891

Trending Articles



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