Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
LoriHalsey
Contributor II
Contributor II

Stop and Resume tasks via command line?

Hello - I am wondering if there is a way to stop and resume replicate tasks via some kind of batch command, or powershell command. Hoping to be able to run windows patches without someone being involved in the process.

Thank you.

Lori

Labels (1)
1 Solution

Accepted Solutions
KellyHobson
Support
Support

Hey @LoriHalsey ,

Here is an article explaining the commands to start and stop via Replicate repctl commands.

https://community.qlik.com/t5/Knowledge/Repctl-Stop-Start-Task-using-REPCTL-command-line-interface/t...

For windows, you will need to run as administrator from command prompt or powershell:

C:\Program Files\Attunity\Replicate\bin>
C:\Program Files\Attunity\Replicate\bin>repctl
Enter a command or quit

For linux, you need to source site_arep_login.sh or export LD_LIBRARY_PATH like below:

export LD_LIBRARY_PATH=/opt/attunity/replicate/lib:/usr/lib64:$LD_LIBRARY_PATH
cd /opt/attunity/replicate/bin/
./repctl
Enter a command or quit


NOTE: The command for stop/starting is not officially supported by replicate. The commands work, but there is no guarantee that they will not change in the future.

Best,

Kelly

View solution in original post

3 Replies
OritA
Support
Support

Hi,

For stopping and resuming a task via a command you can use the QEM API. FYI here is a link to the QEM API guide:
https://help.qlik.com/en-US/enterprise-manager/November2021/Content/EnterpriseManager/EnterpriseMana...
Regards,
Orit

KellyHobson
Support
Support

Hey @LoriHalsey ,

Here is an article explaining the commands to start and stop via Replicate repctl commands.

https://community.qlik.com/t5/Knowledge/Repctl-Stop-Start-Task-using-REPCTL-command-line-interface/t...

For windows, you will need to run as administrator from command prompt or powershell:

C:\Program Files\Attunity\Replicate\bin>
C:\Program Files\Attunity\Replicate\bin>repctl
Enter a command or quit

For linux, you need to source site_arep_login.sh or export LD_LIBRARY_PATH like below:

export LD_LIBRARY_PATH=/opt/attunity/replicate/lib:/usr/lib64:$LD_LIBRARY_PATH
cd /opt/attunity/replicate/bin/
./repctl
Enter a command or quit


NOTE: The command for stop/starting is not officially supported by replicate. The commands work, but there is no guarantee that they will not change in the future.

Best,

Kelly

LoriHalsey
Contributor II
Contributor II
Author

Thanks for the link to the QEM API. Now I just need to enlist the help of a .Net developer. My coding days ended back in 1996 with COBOL.

Lori