<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Changing Server Settings in QlikReplicate via script in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Changing-Server-Settings-in-QlikReplicate-via-script/m-p/2066426#M5840</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/151062"&gt;@qlik_admin_lm&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can specify the task you want to export using "task=":&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;repctl exportrepository task=MyTaskName&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You will need to run the command once per task.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For your information,&amp;nbsp;&lt;/SPAN&gt;if you use&amp;nbsp; Windows and your data directory is not in the default location, you need to use a -d with the full path to the data directory location:&lt;/P&gt;
&lt;P&gt;repctl -d "YOUR_DATA_DIRECTORY_PATH" exportrepository&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Dana&lt;/P&gt;</description>
    <pubDate>Mon, 01 May 2023 20:09:15 GMT</pubDate>
    <dc:creator>Dana_Baldwin</dc:creator>
    <dc:date>2023-05-01T20:09:15Z</dc:date>
    <item>
      <title>Changing Server Settings in QlikReplicate via script</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Changing-Server-Settings-in-QlikReplicate-via-script/m-p/2065951#M5818</link>
      <description>&lt;P&gt;Trying to understand how you would change a QlikReplicate server setting through script.&amp;nbsp; It seems like you would need to run a "repctl exportrepository", modify the json that is produced and then run a "repctl importrepository".&amp;nbsp; Can someone verify if is the way to do this?&amp;nbsp; Are there other options to modify server settings from a scripting perspective?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 18:52:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Changing-Server-Settings-in-QlikReplicate-via-script/m-p/2065951#M5818</guid>
      <dc:creator>qlik_admin_lm</dc:creator>
      <dc:date>2023-04-28T18:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Server Settings in QlikReplicate via script</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Changing-Server-Settings-in-QlikReplicate-via-script/m-p/2065953#M5819</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/151062"&gt;@qlik_admin_lm&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are correct.&amp;nbsp; You have to&lt;SPAN&gt;&amp;nbsp;run a "repctl exportrepository", modify the json that is produced and then run a "repctl importrepository".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Swathi&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 18:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Changing-Server-Settings-in-QlikReplicate-via-script/m-p/2065953#M5819</guid>
      <dc:creator>SwathiPulagam</dc:creator>
      <dc:date>2023-04-28T18:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Server Settings in QlikReplicate via script</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Changing-Server-Settings-in-QlikReplicate-via-script/m-p/2066413#M5839</link>
      <description>&lt;P&gt;Question: Can we export all the tasks in separate JSON files using the repctl export command? What is the option?&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 19:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Changing-Server-Settings-in-QlikReplicate-via-script/m-p/2066413#M5839</guid>
      <dc:creator>qlik_admin_lm</dc:creator>
      <dc:date>2023-05-01T19:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Server Settings in QlikReplicate via script</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Changing-Server-Settings-in-QlikReplicate-via-script/m-p/2066426#M5840</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/151062"&gt;@qlik_admin_lm&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can specify the task you want to export using "task=":&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;repctl exportrepository task=MyTaskName&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You will need to run the command once per task.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For your information,&amp;nbsp;&lt;/SPAN&gt;if you use&amp;nbsp; Windows and your data directory is not in the default location, you need to use a -d with the full path to the data directory location:&lt;/P&gt;
&lt;P&gt;repctl -d "YOUR_DATA_DIRECTORY_PATH" exportrepository&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Dana&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 20:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Changing-Server-Settings-in-QlikReplicate-via-script/m-p/2066426#M5840</guid>
      <dc:creator>Dana_Baldwin</dc:creator>
      <dc:date>2023-05-01T20:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Server Settings in QlikReplicate via script</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Changing-Server-Settings-in-QlikReplicate-via-script/m-p/2066442#M5841</link>
      <description>&lt;P&gt;Just some clarifications&lt;/P&gt;
&lt;P&gt;- you mention "&lt;SPAN&gt;&lt;EM&gt;Changing Server Settings&lt;/EM&gt;" but then you ask about tasks. Which is it? If it is indeed about the server then you can export 1 task, any task and use the repctl option include_server_settings &amp;amp;&amp;nbsp; task (check out:&amp;nbsp;repctl -d \Replicate\data exportrepository ? ) or you omit the task= option exporting all which always has server settings.&amp;nbsp; Next I would recommend parsing the JSON and removing the 'tasks' and 'databases' sections, just leaving the various server settings. Modify what you need and import just the server settings and not replacing all tasks and databases.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- "&lt;EM&gt;export all the tasks in separate JSON files&lt;/EM&gt;" - not directly. You'll need to either requests a a gettasklist first, and then request exportrepository task= for each of them, or you must parse the overall export. when parsing the overall export, you may want to decide whether to separate&amp;nbsp;in just the bare-bones tasks and separate&amp;nbsp;barebones end-points or tasks with their endpoints. Extracting tasks with their endpoint is handy, but if an&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;endpoint is in use by multiple tasks and that endpoint needs changed then you risk importing a tasks with a stale endpoint definition at some point in time. In that sense a full export with all tasks and endpoint&amp;nbsp;and serversettings is safer.&amp;nbsp; Parsing the complete export is not too hard to script either just simply looking for strings or properly decoding the json using tools provided by languages like java/perl/powershell/python&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-&amp;nbsp;&amp;nbsp;&lt;EM&gt;Are there other options to modify server settings from a scripting perspective?&lt;/EM&gt;&amp;nbsp; Yes. The officially recommended method it to use the Enterprise Manager API. Using that, no files are needed, it can all be fetched, modified, and pushed back out from memory structures.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hein.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 21:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Changing-Server-Settings-in-QlikReplicate-via-script/m-p/2066442#M5841</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2023-05-01T21:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Server Settings in QlikReplicate via script</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Changing-Server-Settings-in-QlikReplicate-via-script/m-p/2067770#M5896</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/144170"&gt;@SwathiPulagam&lt;/a&gt;&amp;nbsp; Hi Swathi,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am doing a test by exporting the JSON "Replication_Definition.json" from another server, trying to import in an empty server. When trying to do&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"repctl importrepository" getting an error that it can not recognize&amp;nbsp;the file.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Error message:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;D:\Program Files\Attunity\Replicate\bin&amp;gt;repctl importrepository&lt;BR /&gt;[importrepository command] Failed&lt;BR /&gt;Cannot open json file 'D:\Program Files\Attunity\Replicate\data\imports\' (exit status 720003)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But Import of the same JSON from the GUI works fine.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sandip.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 15:31:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Changing-Server-Settings-in-QlikReplicate-via-script/m-p/2067770#M5896</guid>
      <dc:creator>qlik_admin_lm</dc:creator>
      <dc:date>2023-05-04T15:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Server Settings in QlikReplicate via script</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Changing-Server-Settings-in-QlikReplicate-via-script/m-p/2067819#M5901</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Cannot open json file 'D:\Program Files\Attunity\Replicate\data\imports\' (exit status 720003)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;You have to use:&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;repctl importrepository json_file=&amp;lt;full-path-to-repository.json&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hein&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 18:14:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Changing-Server-Settings-in-QlikReplicate-via-script/m-p/2067819#M5901</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2023-05-04T18:14:36Z</dc:date>
    </item>
  </channel>
</rss>

