Click or drag to resize
Get-DtLogMessage

This cmdlet returns messages from the Double-Take log file and the Double-Take Management Service log file. For this cmdlet, the -ServiceHost could be your source or target server.

Syntax

Get-DtLogMessage [-Source] <String> [-LastSequenceNumber] <Int32> [-LastTimestamp] <DateTimeOffset> [-ChunkSize] <Int32> [-ServiceHost] <Server> [<CommonParameters>]

Parameters
-Source<String>

Specify source of the log message. If no source is specified, both Double-Take Management Service messages and Double-Take service messages will be returned. To have only Double-Take Management Service messages displayed, specify MS for the string value. To have only Double-Take service messages displayed, specify EN for the string value.

Required?

false

Position?

named

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-LastSequenceNumber<Int32>

Specify a sequence number to be the starting point to retrieve the log messages.

Required?

false

Position?

named

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-LastTimestamp<DateTimeOffset>

Specify a date and time stamp to be the starting point to retrieve the log messages. Specify the date in mm/dd/yyyy format. Specify the time in hh:mm:ss format with AM or PM. You can specify a time zone offset, for example, -04:00. If you do not specify a time zone offset, the time zone of the machine you are running from will be used. If you do not specify a time, 12:00:00 AM will be used.

Required?

false

Position?

named

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ChunkSize<Int32>

Specify the number of entries that will be returned at one time. The default number of entries is 1024.

Required?

false

Position?

named

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 server object is created for the server alpha using the domain\administrator and password credentials. It assigns the server object to the variable called DtServerObjectAlpha. Then the Double-Take Management Service log messages after 5:19pm on November 24, 2015 are displayed in groups of 25. The connections for the server object are then closed.

$DtServerObjectAlpha= New-DtServer -Name alpha -UserName domain\administrator -Password password

Get-DtLogMessage -ServiceHost $DtServerObjectAlpha -source MS -LastTimeStamp "11/24/2015 05:19:00 PM" -ChunkSize 25

Disconnect-DtServer -ServiceHost $DtServerObjectAlpha