Dear @ll,
Im searching for a powercli (maybe oneliner if short) snippet to get this information here:
Great would be to get the Mount Point with the setup alias instead of the "cryptic" path. But this is not so important.
Thanks Wolfgang
Not really a one-liner (of which I'm not a fan btw :smileygrin:), but this should return the info.
Not sure what you mean by 'setup alias'?
If you mean the symbolic link with the datastore name instead of the GUID, that is only available when the datastore is connected afaik.
$ds.Host | ForEach-Object -Process {
New-Object -TypeName PSObject -Propert ([ordered]@{
Datastore = $ds.Name
Host = (Get-View -Id $_.Key -Property Name).Name
Mounted = if($_.MountInfo.Mounted){'Mounted'}else{'Unmounted'}
'Datastore Connectivity' = if($_.MountInfo.Accessible){'Connected'}else{'Not Connected'}
'Mount Point' = $_.MountInfo.Path
})
}
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Not really a one-liner (of which I'm not a fan btw :smileygrin:), but this should return the info.
Not sure what you mean by 'setup alias'?
If you mean the symbolic link with the datastore name instead of the GUID, that is only available when the datastore is connected afaik.
$ds.Host | ForEach-Object -Process {
New-Object -TypeName PSObject -Propert ([ordered]@{
Datastore = $ds.Name
Host = (Get-View -Id $_.Key -Property Name).Name
Mounted = if($_.MountInfo.Mounted){'Mounted'}else{'Unmounted'}
'Datastore Connectivity' = if($_.MountInfo.Accessible){'Connected'}else{'Not Connected'}
'Mount Point' = $_.MountInfo.Path
})
}
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thank you LucD so much for your help
I thought this should be possible with the get-view cmdlet but I'm absolutely not conform using this in the right way.