The process control commands run and stop the Capture Processes and the Apply Processes, show their state, move a process to another position and report what a process has done. The processes themselves are created and changed with the commands of PROCESS CONFIGURATION COMMANDS.
| Command | What it does | Page |
|---|---|---|
| run | Starts a Capture Process or an Apply Process, all the processes of one kind, or all the processes. | Run any Capture or Apply Processes |
| stop | Stops them. With restart=1 a process is stopped and run again. | Stop any Capture or Apply Processes |
| status | Shows the state of the processes and what they have done since they were started. | Status of any Capture or Apply Processes |
| reset | Sets the position from which a process continues the next time it is run. | Reset Process |
| report | Shows, for every table, the inserts, updates, deletes, DDL statements and loaded rows that a process has handled. | Report Process |
Every command is available in repcli, in the REST API and in the Web UI. The pages above describe all three.
The commands run, stop and status work with one process, with all the processes of one kind, or with all the processes. What you write decides:
| You write | The command works with |
|---|---|
| repcli run | Every Capture Process and every Apply Process |
| repcli run process=capture | Every Capture Process |
| repcli run process=capture id=1 | The Capture Process 1 only |
stop and status take the same parameters: repcli stop process=apply stops every Apply Process, repcli status process=apply id=2 shows the Apply Process 2. reset and report always name one process.
repcli also accepts capture=1 or apply=2 in place of process=capture id=1 and process=apply id=2, and status capture in place of status process=capture:
repcli run capture=1repcli stop apply=2repcli status capturerepcli prints the message of every process the command is meant for as [Failed]: message or [In Process]: message. The messages of a command that cannot be carried out:
| Message | Cause |
|---|---|
| An invalid parameter [id] has been supplied and Valid parameter is [process] | id without process, or another parameter in the place of process. The parameters have to be given in the order process, id. |
| An invalid value [foo] has been supplied for parameter [process] and Valid values are: apply|capture | The value of process is not apply or capture. |
| An invalid value [abc] has been supplied for parameter [id] | The value of id is not a number, or it is 0. |
| Process id=9 does not exist | There is no process of this kind with this id. |
| Capture 1 Process status is [In Process]. Command [RUN] is not valid for this status | The process is not in a state that accepts the command: it is running already (run), or it is stopped already (stop, the status is then Completed). |
The commands run, stop and status are POST requests to /control/process, reset goes to /reset/process and report to /report/process. The body is JSON and the request carries the header X-Token with the token of the Repstance server (see Configure repcli for Remote Access and REST API). The bodies and the answers are described on the pages of the commands. The HTTP codes of run, stop and status:
| HTTP code | Meaning |
|---|---|
| 200 | The request is valid. The body has an element for every process the command is meant for, with the status In Process or Failed. |
| 401 | The token is invalid. |
| 422 | The request is invalid: the JSON, the command, a parameter, or the process does not exist. The body has one element with the status Failed and the message. |
The dashboard has the buttons “Run All Processes” and “Stop All”, and “Run” or “Stop” on the card of every process. The state of a process is on its card and in the window of “More”. They are described in Stop/Run Replication Processes and Monitoring Replication. The reset of a process and the report of its transactions are in the window of “More” too, see Reset Process and Report Process.
Prev page:
Objects Mapping and Possible TransformsNext page:
Run any Capture or Apply Processes