I need more information related to SRM Protection Groups and associated Recovery Plans that the below script provides. For output I'd like to include more information such as the datastore group or datastores in the Protection Group. Associated Recovery Plans.
Anybody know what outputs are available? Or have a better script to give me what I'm looking for?
Get-SrmProtectionGroup | %{
$pg = $_
Get-SrmProtectedVM -ProtectionGroup $pg } | %{
$output = "" | select VmName, PgName
$output.VmName = $_.Vm.Name
$output.PgName = $pg.GetInfo().Name
$output
} | Format-Table @{Label="VM Name"; Expression={$_.VmName} },
@{Label="Protection group name"; Expression={$_.PgName}
}
Have a look at Re: SRM Reporting using PowerCLI
That provides quite a bit of the info you are looking at I think.
---------------------------------------------------------------------------------------------------------
Was it helpful? Let us know by completing this short survey here.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Isn't the following providing that info?
$pg.ListProtectedDatastores()
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Have a look at Re: SRM Reporting using PowerCLI
That provides quite a bit of the info you are looking at I think.
---------------------------------------------------------------------------------------------------------
Was it helpful? Let us know by completing this short survey here.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference