Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Mar 7, 2024 2:21:29 AM
Jan 13, 2022 8:49:04 PM
The listed commands are unsupported by Qlik Replicate. The commands work, but Qlik cannot give a guarantee that they will continue to function in the future.
If you do not have Qlik Enterprise Manager (QEM), then this is the option to script task starts and stops. If you do have QEM please look into using the restAPI calls to do the same things. You can reference the QEM developer's guide for information on this API.
To note:
You can start the task multiple ways based on the following parameters and flags:
Parameters:
1 = Start Full Load only
2 = Start Change Capture only
3 = Start Both
Flags Values:
0 = Resume
1 = Fresh Start (like starting as of now)
Start a task:
repctl connect; execute task_name 3 Flags=0; disconnect
Get task status:
repctl connect; gettaskstatus task_name; disconnect
Stop a task:
repctl connect; stoptask task_name; disconnect
Notes:
Repctl execute task=<task_name> 1 flags=1
repctl connect ip=192.168.165.11 port=3552 ; stoptask task; disconnect
Alternate (non-default) data directories must be provided using -d <path>
Alternatively in Windows use: ?set AREP_DATA=<path>
If the Replicate data folder is on another location you would need to set the path for repctl.
Example:
repctl.exe -d "E:\Attunity\Replicate\data" connect;
To run this on Linux you may need to add a back slash in front of the semi-colon:
repctl connect\; gettaskstatus task_name\; disconnect
In addition, while using Linux shell, you have to escape the semicolons with backslashes.
Example:
?./repctl connect\; gettaskstatus task_name\; disconnect
Further note on usage: be certain to have blank space following the semi-colon command delimiter.
The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.
When using the repctl command to stop/start task is default port 3552?
Hello @humanadba
The Qlik Replicate Console default port is 3552, yes. See Accessing Qlik Replicate from a remote computer.
All the best,
Sonja