Processing Commands with the Replication Manager CLI 

Syntax

repmcli -u <userid>,<password> -d <database_name> -b <command_file> -E <number>

<userid>

User name

<password>

User password

<database_name>

Name of database instance

<command_file>

Name of the command file

By specifying the -E option, you define the number of errors that must occur before the execution of the command file is terminated.

You can also specify other options.

Use

You create a command file <command_file> in the form of simple text file and transfer the name of this file with the -b option when the REPM Server session is started (Calling the Replication Manager)..

The Replication Manager processes the commands and statements contained in the command file. If errors (return code <> 0) occur, the processing of the command file is terminated as soon as a predefined number of errors is reached.

Error messages of this kind can be caused by several different things. Here are some examples:

To enable you to respond to script errors, the Replication Manager functions are available as a library for the Perl and Python script languages. This means that you can use the functions of the Replication manager in conjunction with Perl and Python.