Table of Contents

Search

  1. Preface
  2. Overview of the Server Manager Command Line Interface
  3. Usage Scenario: Using Server Manager CLI Commands to Run Replications
  4. Command Reference

Command Line Interface for the Server Manager

Command Line Interface for the Server Manager

show logs

show logs

Displays an execution log for a specific replication task.
Each replication task generates logs of the following types:
  • Standard log
    . Contains the task output. A replication task might generate several standard log files with the following file name format:
    output<
    sequence_number
    >.log[.gz|.zip]
  • Additional log
    . Contains the contents of the Server Manager logs for the task execution, including command-line, error, and debug information. A replication task generates a single additional log with the following file name format:
    additional_output.log[.gz|.zip]
Depending on the log compression setting of a Server Manager instance, when a task finishes processing a log file, it compresses the log file and adds the extension .gz or .zip.

Syntax

Enter the command with the task run ID parameter and optionally with either the log file name or sequence number:
show logs
run_id
[
file_name
]
show logs
run_id
[
sequence_number
]
If you do not specify the optional
file_name
or
sequence_number
parameter, the Server Manager CLI lists the execution logs for the specified task in interactive mode. You can then enter the sequence number of the log file to view.

Parameters

The following table describes the command parameters:
Parameter
Description
run_id
The unique execution identifier of the replication task.
To list tasks with their unique run IDs, run the
show task history
command.
file_name
The file name of the execution log that you want to view.
You can omit the file extension.
sequence_number
The sequence number of the log file for the specified task.
An additional log file always has the
sequence_number
value of 0. The first file of a standard log always has the
sequence_number
value of 1.

Examples

The following example command displays the first standard log file named output1 for the task that has the run ID of 25.
show logs 25 output1
The following example command displays the log file that has the sequence number of 1 for the task that has the run ID of 25.
show logs 25 1

0 COMMENTS

We’d like to hear from you!