![]() |
Get-DtLatestFailoverReport |
This cmdlet returns the latest failover report associated with the specified job. For this cmdlet, the -ServiceHost should be your target server for the failover.
Get-DtLatestFailoverReport [-JobId] <Guid> [-ServiceHost] <Server> [<CommonParameters>]
Required? |
true |
Position? |
2 |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Required? |
true |
Position? |
1 |
Accept Pipeline Input? |
true (ByPropertyName) |
Accept Wildcard Characters? |
false |
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters. |
A report is retrieved for a job from the target server. The returned report is the latest for the machine.
$DtServerObjectAlpha= New-DtServer -Name alpha -UserName domain\administrator -Password password
$DtServerObjectBeta = New-DtServer -Name beta -UserName domain\administrator -Password password
$DtJob = Get-DtJob -ServiceHost $DtServerObjectBeta
$DtReport = Get-DtLatestFailoverReport -ServiceHost $DtServerObjectBeta -JobId $DtJob.Id
Disconnect-DtServer -ServiceHost $DtServerObjectAlpha
Disconnect-DtServer -ServiceHost $DtServerObjectBeta