Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
ryan_wolverton
Contributor
Contributor

Replacing repctl.exe with API calls

Hello,

We have an application that is using repctl.exe for a number of commands with an Attunity workflow. We understand that this is an internal tool that doesn't have support from Qlik, so we are trying to move these commands to the Enterprise Manager REST API: Enterprise Manager REST API | Qlik Enterprise Manager Help

The problem we're running into is that there seems to be several commands that have no API equivalent. Here is a list of a few:

importlicense
getlicense
importrepository
exportrepository
setmasterkey
getfiletransferservice
 
Could it be that these exist in the API, but with different names? Or are these commands just not supported by the API, and we need to stick with using repctl.exe?
 
Thank you for your help!
Labels (2)
1 Solution

Accepted Solutions
Alan_Wang
Support
Support

Hi @ryan_wolverton 

We don't have hidden APIs for QEM. Half of those APIs are supported within the user guide as repctl commands. Support is not provided for API commands not listed in the user guide, but you are able to continue using them as needed.

importrepository
exportrepository
setmasterkey
 
If you would like QEM equivalents for these APIs, please submit a feature request on the community portal.
 
If the issue is solved please mark the answer with Accept as Solution.

View solution in original post

4 Replies
Alan_Wang
Support
Support

Hi @ryan_wolverton 

We don't have hidden APIs for QEM. Half of those APIs are supported within the user guide as repctl commands. Support is not provided for API commands not listed in the user guide, but you are able to continue using them as needed.

importrepository
exportrepository
setmasterkey
 
If you would like QEM equivalents for these APIs, please submit a feature request on the community portal.
 
If the issue is solved please mark the answer with Accept as Solution.
Heinvandenheuvel
Specialist III
Specialist III

Minor note  import/export repository exists in the EM API as ImportAll / ExportAll. ImportAll can be used to import 'all' or one or more tasks or endpoints or settings as you please - whatever is in the JSON. The  ExportTask API can be used to export a single task. ImportTask is similar to ImportAll with an extra check.

You'll always be stuck with REPCTL for certain tasks like "setmasterkey" because without that being properly set on the server proper there is no Replicate to communicate with for te EM! Makes sense?

Might as well embrace it.

Hein.

 

unay
Contributor II
Contributor II

Hi there,

 

Am trying to use importall using the below link instead of importrepository using repctl and I get response as 200. However, I see it is not working.

https://help.qlik.com/en-US/enterprise-manager/May2023/Content/EnterpriseManager/EnterpriseManager_A...

Is this "importall" right one to replace importrepository.

 

Please suggest.

 

 

Heinvandenheuvel
Specialist III
Specialist III

@unay  - should work, and response 200 suggests it did work. 

" However, I see it is not working. "  well, we cannot see what you see or do not see. Please clarify what you did in further detail, what you expected to see, and what you did see (unchanged?) . When/where did you look? What server did you point the import to? Is that where you are looking?

Hints

- try change a simple parameter or value like a notification name or task setting such as max_transaction_size from default 500 or 501.

- try feeding a bad JSON just miss-spell 'databases' as 'tatabases' or 'tasks' as 'tsks' and see if you get an appropriate error response. 

Good luck,

Hein