Returns log messages
Syntax
Get-DtLogMessage [-ServiceHost] <Server> [-Source <String>] [-LastSequenceNumber <Int32>] [-LastTimeStamp <DateTimeOffset>] [-ChunkSize <Int32>] [<CommonParameters>]
Detailed Description
This cmdlet returns messages from the Double-Take log file and the Double-Take Management Service log file.
Parameters
Name | Type | Description | Required | Pipeline Input |
---|---|---|---|---|
Service Host |
Server |
|
true | false |
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. |
false | false |
Last Sequenece Number |
Int32 |
Specify a sequence number to be the starting point to retrieve the log messages. |
false | false |
LastTime Stamp |
DateTime Offset |
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. |
false | false |
ChunkSize | Int32 |
Specify the number of entries that will be returned at one time. The default number of entries is 1024. |
false | false |
Outputs
LogMessage [ ]
Examples
$DtServerObjectAlpha= New-DtServer -Name alpha -UserName domain\administrator -Password password Get-DtLogMessage -ServiceHost $DtServerObjectAlpha -source MS -LastTimeStamp "01/15/2016 05:19:00 PM" -ChunkSize 25 Disconnect-DtServer -ServiceHost $DtServerObjectAlpha |
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 January 15, 2016 are displayed in groups of 25. The connections for the server object are then closed.