Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
khchoy
Partner - Creator
Partner - Creator

How to recover a task by repctl execute command ?

Hi,

How to recover a task by repctl execute command ?

When I met some kind of error  ,  I want to restart task by repctl command with recovery option.

But command help did not useful for me.

Could you help and explain about "execute" command  with example ?

-------------------------------------------------------------------------------------------------------

Enter a command or quit
execute ?
command execute:
request arguments:

task:required string
operation:required enum, valid values:
01 - EXECUTE_OPERATIONS_LOAD
02 - EXECUTE_OPERATIONS_CDC
03 - EXECUTE_OPERATIONS_BOTH

flags:optional enum, valid values:
00 - RESUME
01 - FRESH
02 - METADATA_ONLY
03 - FRESH_METADATA_ONLY
04 - COLLECTION
08 - RECOVERY

cdcposition:optional string
stop_at:optional string

response arguments:
status:required int32
message:optional string

Regards,

Kwangho 

 

 

Labels (2)
4 Replies
Pierretim
Contributor III
Contributor III

There is little information about repctl

I think we are supposed to use another tool, a management tool that runs on windows and that provides a rest API. For me this is very annoying because this tool is a separate tool that does not run on linux. But I definitively needs to be able to automate everything at the command line (even though the gui via the console is nice, you still need the command line to be able to automate).

About repctl, I found this following web page

https://hdfiles.jitbit.com/getfile/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzM3BhdGgiOiIzMjQ0OC8yOTM5...

 

Pierre

lyka
Support
Support

Hello,

 There are only a few functions with repctl that are documented and supported.  Please see the Replicare user guide that corresponds to your version for that very limited list.  For additional command line needs please see the: "Qlik Enterprise Manager Developer's Guide".  There we list many functions that can be invoked through the command line.

Thanks,

Lyka

JrQ
Contributor II
Contributor II

When I do repctl stoptask task=ABC I get following but from console I see task never stops.  Is there anything else I need to do?


command stoptask response:
{
"status": 0
}
[stoptask command] Succeeded

lyka
Support
Support

Hello,

FYR:

Paramaters:

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)

 

repctl connect; execute task_name 3 Flags=0; disconnect

 

Note: The execute command may take up to several minutes to complete.

 

Stop a Task:

repctl connect ; stoptask task; disconnect

 

Remotely:

repctl connect ip=192.168.165.11 port=3552 ; stoptask task; disconnect

 

Thanks

Lyka