Click or drag to resize

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.

Syntax

Get-DtLatestFailoverReport [-JobId] <Guid> [-ServiceHost] <Server> [<CommonParameters>]

Parameters
-JobId<Guid>

Specify the job GUID returned from the New-DtJob cmdlet or the Id within the job information returned from the Get-DtJob cmdlet.

Required?

true

Position?

2

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ServiceHost<Server>

Specify the server object returned from the New-DtServer cmdlet.

Required?

true

Position?

1

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.

Examples

------------------EXAMPLE------------------

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