Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More

How to import a Qlik Replicate license without using the UI (Windows)

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
MartinBurgos
Support
Support

How to import a Qlik Replicate license without using the UI (Windows)

Last Update:

Jan 18, 2023 4:35:02 AM

Updated By:

Sonja_Bauernfeind

Created date:

Jan 18, 2023 4:35:02 AM

This document explains how to upload the license using a powershell/CMD terminal.

  1. Download your license.txt file
  2. Open a powershell terminal with admin permissions and move to the folder that contains the license 

    Windows Powershell Get-content.png

  3. Open a notepad, copy the following python script, and save it with the name “txt2json.py”
    import sys
    import json
    
    file_path = sys.argv[1]
    
    with open(file_path, 'r') as file:
        contents = file.read().replace('\r', '')
    
    lines = contents.split('\n')
    
    data = {}
    
    for line in lines:
        if '=' in line:
            key, value = line.split('=')
            data[key] = value
    
    result = {"cmd.license": data}
    
    json_data = json.dumps(result,indent=4)
    
    with open("./license.json", "w", newline='\n') as output_file:
        output_file.write(json_data)​

    Windows Powershell txt2json.png

  4. Run the script in the powershell terminal
    Python.exe .\txt2json.py <#path-where-the-license-is-located #e.g. C:\Users\user\Destop\licence.txt#>​
  5. You’ll see a new file is generated (license.json).

    Windows Powershell license json.png

  6. Change the directory to the Qlik Replicate folder in the powershell terminal
    cd <#path-where-replicate-is-installed #e.g. C:\Program Files\Attunity\Replicate\bin #>​
  7. Connect to the replicate server
    repctl.exe connect​
  8. Import the license.json file
    repctl.exe [-d <replicate_data_dir>] importlicense license_file=<location>license.json​


    command line repctl exe.png

 

 

Environment

 

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.

Related Content 

repctl.sh importlicense format: This explains repctl.sh in a Linux deployment. There is a slight difference because the script is written in Perl instead of Python.

Labels (1)
Comments
mghazian
Contributor
Contributor

Hi 
Is there any similar solutions for importing license like that for Qlik Sense?

MartinBurgos
Support
Support

Hi @mghazian,

Unfortunately, no. 

I have reviewed this with a QDA TSE, and they mentioned that it's not possible to do so.

Please feel free to request this feature through our ideation forum [1].

Kind Regards,

Martin

[1] https://ideation.qlik.com/app/#/user/dashboard?currentProductId=9da99bc1-0dfb-4471-8e12-d23685578c43

 

Version history
Last update:
‎2023-01-18 04:35 AM
Updated by: