<?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 SecureXL and CoreXL AVG Load in Scripts</title>
    <link>https://community.checkpoint.com/t5/Scripts/SecureXL-and-CoreXL-AVG-Load/m-p/81715#M577</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="escal123.JPG" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/9439i1732E7F0F962EC9D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="escal123.JPG" alt="escal123.JPG" /&gt;&lt;/span&gt;&lt;BR /&gt;This oneliner (see spoiler) shows you the average CPU time of all CoreXL and SecureXL instances.&lt;/P&gt;
&lt;LI-SPOILER&gt;&lt;LI-CODE lang="markup"&gt;SXLHACPU=`fw ctl affinity -l -a -v |grep Interface | awk '{print $6}' | sort |uniq | awk '{LINEHA = LINEHA "|CPU"$1} END  {print LINEHA }' | sed s/\|//`;SXLHACPU_C=`sar -P ALL 1 1 | grep Average: |grep -v CPU |grep -v all | awk '{ print "CPU"$2  " " 100-$8}' |egrep $SXLHACPU |wc -l`; SXLHACPU_S=`sar -P ALL 1 1 | grep Average: |grep -v CPU |grep -v all | awk '{ print "CPU"$2  " " 100-$8}' |egrep $SXLHACPU | awk '{sum+=$2} END {print sum}'`; SXLHACPU_LOAD=`echo "scale=2; $SXLHACPU_S/$SXLHACPU_C" |bc `; echo; echo "SecureXL AVG Load: $SXLHACPU_LOAD %"; U=`cpprod_util FwIsUsermode`; if [ $U == "0" ]; then CXL_LOAD=`top -b -n 1 |grep fw_worker | awk '{sum+=$9}END{print sum}'`; else CXL_LOAD=`top -b -n 1 |grep fwk0_dev|awk '{print $9}'`; fi;if [ $CXL_LOAD == "0" ]; then CXL_LOAD="1"; fi ;typeset -i CXL_C; CXL_C=`fw ctl multik stat | wc -l`;CXL_C=$CXL_C-2; CXL_LOAD_INT=`echo "scale=2; $CXL_LOAD/$CXL_C" |bc -l`; echo "CoreXL AVG Load  : $CXL_LOAD_INT %";&lt;/LI-CODE&gt;&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;Output:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CLXL.JPG" style="width: 272px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/5537iD2E37E5020C874E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="CLXL.JPG" alt="CLXL.JPG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Or use this tool for much more information on all your gateways :&lt;BR /&gt;&lt;SPAN class="lia-message-read"&gt;&lt;FONT style="background-color: #f8f8fa;"&gt;&lt;SPAN style="font-family: inherit;"&gt;&lt;A href="https://community.checkpoint.com/t5/General-Topics/Easy-View-Tool-system-infos-from-all-gateways-simultaneously/td-p/81438" target="_self"&gt;Easy View Tool - View System Info for All Gateways Simultaneously&lt;/A&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Dec 2020 16:08:11 GMT</pubDate>
    <dc:creator>HeikoAnkenbrand</dc:creator>
    <dc:date>2020-12-01T16:08:11Z</dc:date>
    <item>
      <title>SecureXL and CoreXL AVG Load</title>
      <link>https://community.checkpoint.com/t5/Scripts/SecureXL-and-CoreXL-AVG-Load/m-p/81715#M577</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="escal123.JPG" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/9439i1732E7F0F962EC9D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="escal123.JPG" alt="escal123.JPG" /&gt;&lt;/span&gt;&lt;BR /&gt;This oneliner (see spoiler) shows you the average CPU time of all CoreXL and SecureXL instances.&lt;/P&gt;
&lt;LI-SPOILER&gt;&lt;LI-CODE lang="markup"&gt;SXLHACPU=`fw ctl affinity -l -a -v |grep Interface | awk '{print $6}' | sort |uniq | awk '{LINEHA = LINEHA "|CPU"$1} END  {print LINEHA }' | sed s/\|//`;SXLHACPU_C=`sar -P ALL 1 1 | grep Average: |grep -v CPU |grep -v all | awk '{ print "CPU"$2  " " 100-$8}' |egrep $SXLHACPU |wc -l`; SXLHACPU_S=`sar -P ALL 1 1 | grep Average: |grep -v CPU |grep -v all | awk '{ print "CPU"$2  " " 100-$8}' |egrep $SXLHACPU | awk '{sum+=$2} END {print sum}'`; SXLHACPU_LOAD=`echo "scale=2; $SXLHACPU_S/$SXLHACPU_C" |bc `; echo; echo "SecureXL AVG Load: $SXLHACPU_LOAD %"; U=`cpprod_util FwIsUsermode`; if [ $U == "0" ]; then CXL_LOAD=`top -b -n 1 |grep fw_worker | awk '{sum+=$9}END{print sum}'`; else CXL_LOAD=`top -b -n 1 |grep fwk0_dev|awk '{print $9}'`; fi;if [ $CXL_LOAD == "0" ]; then CXL_LOAD="1"; fi ;typeset -i CXL_C; CXL_C=`fw ctl multik stat | wc -l`;CXL_C=$CXL_C-2; CXL_LOAD_INT=`echo "scale=2; $CXL_LOAD/$CXL_C" |bc -l`; echo "CoreXL AVG Load  : $CXL_LOAD_INT %";&lt;/LI-CODE&gt;&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;Output:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CLXL.JPG" style="width: 272px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/5537iD2E37E5020C874E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="CLXL.JPG" alt="CLXL.JPG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Or use this tool for much more information on all your gateways :&lt;BR /&gt;&lt;SPAN class="lia-message-read"&gt;&lt;FONT style="background-color: #f8f8fa;"&gt;&lt;SPAN style="font-family: inherit;"&gt;&lt;A href="https://community.checkpoint.com/t5/General-Topics/Easy-View-Tool-system-infos-from-all-gateways-simultaneously/td-p/81438" target="_self"&gt;Easy View Tool - View System Info for All Gateways Simultaneously&lt;/A&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 16:08:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/SecureXL-and-CoreXL-AVG-Load/m-p/81715#M577</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2020-12-01T16:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: ONELINER - SecureXL and CoreXL AVG Load</title>
      <link>https://community.checkpoint.com/t5/Scripts/SecureXL-and-CoreXL-AVG-Load/m-p/81740#M578</link>
      <description>Just tested in my lab with R80.40 und USFW and it is not working, as there is no fw_worker &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;</description>
      <pubDate>Tue, 14 Apr 2020 07:02:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/SecureXL-and-CoreXL-AVG-Load/m-p/81740#M578</guid>
      <dc:creator>Norbert_Bohusch</dc:creator>
      <dc:date>2020-04-14T07:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: ONELINER - SecureXL and CoreXL AVG Load</title>
      <link>https://community.checkpoint.com/t5/Scripts/SecureXL-and-CoreXL-AVG-Load/m-p/81793#M579</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/1433"&gt;@Norbert_Bohusch&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Now I check if the FW works as KMFW or as UMFW!&lt;BR /&gt;Accordingly I check the fw_worker or the fwk0_dev process.&lt;/P&gt;
&lt;P&gt;THX&lt;BR /&gt;Heiko&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 12:02:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/SecureXL-and-CoreXL-AVG-Load/m-p/81793#M579</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2020-04-14T12:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: ONELINER - SecureXL and CoreXL AVG Load</title>
      <link>https://community.checkpoint.com/t5/Scripts/SecureXL-and-CoreXL-AVG-Load/m-p/81794#M580</link>
      <description>&lt;P&gt;Thanks Heiko, but there is still a bug &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here the output (securexl avg always 100%):&lt;/P&gt;
&lt;LI-SPOILER&gt;SecureXL AVG Load: 100.00 %&lt;BR /&gt;-bash: [: 6.2==: unary operator expected&lt;BR /&gt;CoreXL AVG Load : 2.06 %&lt;/LI-SPOILER&gt;
&lt;P&gt;I expect mpstat is different:&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;P&gt;[Expert@nb-ckp-gw1:0]# mpstat -P ALL &lt;BR /&gt;Linux 3.10.0-957.21.3cpx86_64 (nb-ckp-gw1) 04/14/20 _x86_64_ (4 CPU)&lt;/P&gt;
&lt;P&gt;14:07:53 CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle&lt;BR /&gt;14:07:53 all 1.55 0.00 1.60 0.03 0.26 0.20 0.00 0.00 0.00 96.36&lt;BR /&gt;14:07:53 0 0.12 0.00 0.05 0.03 0.31 0.55 0.00 0.00 0.00 98.94&lt;BR /&gt;14:07:53 1 1.53 0.00 1.95 0.02 0.22 0.09 0.00 0.00 0.00 96.18&lt;BR /&gt;14:07:53 2 2.08 0.00 2.02 0.05 0.24 0.08 0.00 0.00 0.00 95.53&lt;BR /&gt;14:07:53 3 2.47 0.01 2.36 0.05 0.25 0.09 0.00 0.00 0.00 94.77&lt;/P&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 12:14:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/SecureXL-and-CoreXL-AVG-Load/m-p/81794#M580</guid>
      <dc:creator>Norbert_Bohusch</dc:creator>
      <dc:date>2020-04-14T12:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: ONELINER - SecureXL and CoreXL AVG Load</title>
      <link>https://community.checkpoint.com/t5/Scripts/SecureXL-and-CoreXL-AVG-Load/m-p/81804#M581</link>
      <description>&lt;P&gt;With the 3.10 kernel idle is on position 12 and with the 2.6 kernel on position 10.&lt;/P&gt;
&lt;P&gt;I will modify the script again soon.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 13:44:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/SecureXL-and-CoreXL-AVG-Load/m-p/81804#M581</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2020-04-14T13:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: ONELINER - SecureXL and CoreXL AVG Load</title>
      <link>https://community.checkpoint.com/t5/Scripts/SecureXL-and-CoreXL-AVG-Load/m-p/81819#M582</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/1433"&gt;@Norbert_Bohusch&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;Now with "sar" instead of "mpstat".&lt;BR /&gt;Should work now.&lt;/P&gt;
&lt;P&gt;Can you test it?&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;Heiko&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 14:40:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/SecureXL-and-CoreXL-AVG-Load/m-p/81819#M582</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2020-04-14T14:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: ONELINER - SecureXL and CoreXL AVG Load</title>
      <link>https://community.checkpoint.com/t5/Scripts/SecureXL-and-CoreXL-AVG-Load/m-p/81821#M583</link>
      <description>Tested it and also not working. But I have found the reason as well.&lt;BR /&gt;sar has the following syntax:&lt;BR /&gt;# sar [ options ] [ &amp;lt;interval&amp;gt; [ &amp;lt;count&amp;gt; ] ]&lt;BR /&gt;In kernel 3.10 R80.40 it is not using your "sar -P ALL 1" as count 1, but interval 1. But this should be correct according to the way the brackets are shown. In kernel 2.6 it is taken as count and therefor works.&lt;BR /&gt;You can fix it by using "sar -P ALL 1 1"&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Apr 2020 15:18:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/SecureXL-and-CoreXL-AVG-Load/m-p/81821#M583</guid>
      <dc:creator>Norbert_Bohusch</dc:creator>
      <dc:date>2020-04-14T15:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: ONELINER - SecureXL and CoreXL AVG Load</title>
      <link>https://community.checkpoint.com/t5/Scripts/SecureXL-and-CoreXL-AVG-Load/m-p/81855#M584</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; Done!&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;&lt;SPAN style="font-family: inherit; background-color: #ffffff;"&gt;Heiko&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 20:08:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/SecureXL-and-CoreXL-AVG-Load/m-p/81855#M584</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2020-04-14T20:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: ONELINER - SecureXL and CoreXL AVG Load</title>
      <link>https://community.checkpoint.com/t5/Scripts/SecureXL-and-CoreXL-AVG-Load/m-p/81902#M585</link>
      <description>&lt;P&gt;I tested it:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt;&amp;nbsp;3.10 /2.6 kernel&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; USFW and KMFW&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; R80.10, R80.30&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 06:02:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/SecureXL-and-CoreXL-AVG-Load/m-p/81902#M585</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2020-04-15T06:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: ONELINER - SecureXL and CoreXL AVG Load</title>
      <link>https://community.checkpoint.com/t5/Scripts/SecureXL-and-CoreXL-AVG-Load/m-p/81903#M586</link>
      <description>Thanks, also working with R80.40 JHF 25 and USFW.</description>
      <pubDate>Wed, 15 Apr 2020 06:05:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/SecureXL-and-CoreXL-AVG-Load/m-p/81903#M586</guid>
      <dc:creator>Norbert_Bohusch</dc:creator>
      <dc:date>2020-04-15T06:05:55Z</dc:date>
    </item>
  </channel>
</rss>

