<?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>article Qlik Replicate:  Diagnostic Package Analysis Script in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-Diagnostic-Package-Analysis-Script/ta-p/2007814</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Introduction&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a handy tool to run against a &lt;A href="https://community.qlik.com/t5/Official-Support-Articles/How-to-collect-Diagnostics-Package-from-Qlik-Replicate/ta-p/1815056" target="_blank" rel="noopener"&gt;diagnostic package&lt;/A&gt; downloaded from Replicate. The diagnostic package contains recent log files (less than 10MB) and task information which is helpful for troubleshooting issues.&lt;/P&gt;
&lt;P&gt;The goal of the script is to search for common key words or phrases quickly without having to open and read each log manually.&lt;/P&gt;
&lt;P&gt;It is meant to be run on a linux environment with bash or shell scripting enabled.&amp;nbsp; In the steps below, I am connecting to a Centos machine with &lt;A href="https://mobaxterm.mobatek.net/download.html" target="_blank" rel="noopener"&gt;MobaXterm.&lt;/A&gt;&amp;nbsp; Then I am viewing the report with &lt;A href="https://winscp.net/eng/download.php" target="_blank" rel="noopener"&gt;WinSCP&lt;/A&gt; after connecting to the same machine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Files&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;runT.sh : shell script to set up instance folder, and then trigger the health_check.sh script&lt;/P&gt;
&lt;P&gt;health_check.sh : script to search through task.json and log files for information related to metadata, errors, warnings and then prints a report.&lt;/P&gt;
&lt;P&gt;These files are included in health_check.zip which is attached to the article.&amp;nbsp; When you unpack them make sure they are executable (chmod +x ..).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Steps&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Download both scripts and move them to an environment with bash/shell enabled.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 490px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94329i3453883778BB05B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. In the same folder or directory location, upload the diagnostic package as a zipped file.&lt;/P&gt;
&lt;P&gt;*Note this can be the only zip file in the directory when running the ./runT.sh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2a_upload.png" style="width: 278px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94330iD1152662B45967B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="2a_upload.png" alt="2a_upload.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2b_ziptothere.png" style="width: 772px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94331i98D6A97DA50811C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="2b_ziptothere.png" alt="2b_ziptothere.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;3. When you run the script, ./runT.sh, you must supply and folder name. When I use this, I call the folder the case name, but could be the task name, etc.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;#./runT.sh squeeze_example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3_runT.png" style="width: 889px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94332iF59402EEFB338A56/image-size/large?v=v2&amp;amp;px=999" role="button" title="3_runT.png" alt="3_runT.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3_runoutput.png" style="width: 612px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94334iB5AE68C4AC4F80AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="3_runoutput.png" alt="3_runoutput.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will create a new folder in the directory called 'squeeze_example' with the unzipped contents of the diagnostic package and the report_date.out file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3_output.png" style="width: 821px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94336i3B49FACC0CC097CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="3_output.png" alt="3_output.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is a sample of the report_date.out file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3_report.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94337iA9EF83990FCCEB95/image-size/large?v=v2&amp;amp;px=999" role="button" title="3_report.png" alt="3_report.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Replicate" id="qlikReplicate"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-style: italic;"&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Nov 2022 19:11:19 GMT</pubDate>
    <dc:creator>KellyHobson</dc:creator>
    <dc:date>2022-11-22T19:11:19Z</dc:date>
    <item>
      <title>Qlik Replicate:  Diagnostic Package Analysis Script</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-Diagnostic-Package-Analysis-Script/ta-p/2007814</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Introduction&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a handy tool to run against a &lt;A href="https://community.qlik.com/t5/Official-Support-Articles/How-to-collect-Diagnostics-Package-from-Qlik-Replicate/ta-p/1815056" target="_blank" rel="noopener"&gt;diagnostic package&lt;/A&gt; downloaded from Replicate. The diagnostic package contains recent log files (less than 10MB) and task information which is helpful for troubleshooting issues.&lt;/P&gt;
&lt;P&gt;The goal of the script is to search for common key words or phrases quickly without having to open and read each log manually.&lt;/P&gt;
&lt;P&gt;It is meant to be run on a linux environment with bash or shell scripting enabled.&amp;nbsp; In the steps below, I am connecting to a Centos machine with &lt;A href="https://mobaxterm.mobatek.net/download.html" target="_blank" rel="noopener"&gt;MobaXterm.&lt;/A&gt;&amp;nbsp; Then I am viewing the report with &lt;A href="https://winscp.net/eng/download.php" target="_blank" rel="noopener"&gt;WinSCP&lt;/A&gt; after connecting to the same machine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Files&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;runT.sh : shell script to set up instance folder, and then trigger the health_check.sh script&lt;/P&gt;
&lt;P&gt;health_check.sh : script to search through task.json and log files for information related to metadata, errors, warnings and then prints a report.&lt;/P&gt;
&lt;P&gt;These files are included in health_check.zip which is attached to the article.&amp;nbsp; When you unpack them make sure they are executable (chmod +x ..).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Steps&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Download both scripts and move them to an environment with bash/shell enabled.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 490px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94329i3453883778BB05B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. In the same folder or directory location, upload the diagnostic package as a zipped file.&lt;/P&gt;
&lt;P&gt;*Note this can be the only zip file in the directory when running the ./runT.sh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2a_upload.png" style="width: 278px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94330iD1152662B45967B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="2a_upload.png" alt="2a_upload.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2b_ziptothere.png" style="width: 772px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94331i98D6A97DA50811C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="2b_ziptothere.png" alt="2b_ziptothere.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;3. When you run the script, ./runT.sh, you must supply and folder name. When I use this, I call the folder the case name, but could be the task name, etc.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;#./runT.sh squeeze_example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3_runT.png" style="width: 889px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94332iF59402EEFB338A56/image-size/large?v=v2&amp;amp;px=999" role="button" title="3_runT.png" alt="3_runT.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3_runoutput.png" style="width: 612px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94334iB5AE68C4AC4F80AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="3_runoutput.png" alt="3_runoutput.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will create a new folder in the directory called 'squeeze_example' with the unzipped contents of the diagnostic package and the report_date.out file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3_output.png" style="width: 821px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94336i3B49FACC0CC097CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="3_output.png" alt="3_output.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is a sample of the report_date.out file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3_report.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94337iA9EF83990FCCEB95/image-size/large?v=v2&amp;amp;px=999" role="button" title="3_report.png" alt="3_report.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Replicate" id="qlikReplicate"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-style: italic;"&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 19:11:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Replicate-Diagnostic-Package-Analysis-Script/ta-p/2007814</guid>
      <dc:creator>KellyHobson</dc:creator>
      <dc:date>2022-11-22T19:11:19Z</dc:date>
    </item>
  </channel>
</rss>

