<?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: Need auto execute command script like EEM in Cisco in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28061#M95110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for replying. I want to set up a script which will execute a command &lt;STRONG&gt;"&lt;CODE&gt;fw tab -t connections -u &amp;gt; /var/log/Connections_Table.txt"&lt;/CODE&gt;&lt;/STRONG&gt;&lt;CODE&gt;&amp;nbsp;&lt;/CODE&gt;when my gateway CPU goes above 90%. Could you please help me with script and steps?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jun 2018 15:08:50 GMT</pubDate>
    <dc:creator>Pavan_Kumar</dc:creator>
    <dc:date>2018-06-01T15:08:50Z</dc:date>
    <item>
      <title>Need auto execute command script like EEM in Cisco</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28059#M95108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, My Security Gateway CPU is spiking randomly. I want to configure a script to collect output of some pre-defined commands like EEM in Cisco. But I'm not getting the script for CheckPoint. Any help much appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 12:11:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28059#M95108</guid>
      <dc:creator>Pavan_Kumar</dc:creator>
      <dc:date>2018-06-01T12:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need auto execute command script like EEM in Cisco</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28060#M95109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Checkpoint&amp;nbsp; is based on redhat Linux. you can create python&amp;nbsp; or bash scripts&amp;nbsp; to collect the information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 14:26:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28060#M95109</guid>
      <dc:creator>Houssameddine_1</dc:creator>
      <dc:date>2018-06-01T14:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need auto execute command script like EEM in Cisco</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28061#M95110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for replying. I want to set up a script which will execute a command &lt;STRONG&gt;"&lt;CODE&gt;fw tab -t connections -u &amp;gt; /var/log/Connections_Table.txt"&lt;/CODE&gt;&lt;/STRONG&gt;&lt;CODE&gt;&amp;nbsp;&lt;/CODE&gt;when my gateway CPU goes above 90%. Could you please help me with script and steps?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 15:08:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28061#M95110</guid>
      <dc:creator>Pavan_Kumar</dc:creator>
      <dc:date>2018-06-01T15:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need auto execute command script like EEM in Cisco</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28062#M95111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'd have to write a script that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Monitors CPU (remember: there is more than one core)&lt;/P&gt;&lt;P&gt;2. When CPU reaches your desired threshhold, run the appropriate commands&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meanwhile, you might try using cpview, which can tell you a lot about what's going on.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk101878" title="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk101878"&gt;CPView Utility&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 16:44:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28062#M95111</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2018-06-01T16:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need auto execute command script like EEM in Cisco</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28063#M95112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its happening randomly, that's why I thought of configuring script. But, I don't know how to do. If you have any document or document related to scripting, please share. It will be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 16:54:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28063#M95112</guid>
      <dc:creator>Pavan_Kumar</dc:creator>
      <dc:date>2018-06-01T16:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need auto execute command script like EEM in Cisco</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28064#M95113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you might start playing with it in lab by checking some scripts like this one an adjust for your needs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/15655969/shell-script-for-cpu-load-monitoring"&gt;https://stackoverflow.com/questions/15655969/shell-script-for-cpu-load-monitoring&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 17:14:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28064#M95113</guid>
      <dc:creator>Houssameddine_1</dc:creator>
      <dc:date>2018-06-01T17:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need auto execute command script like EEM in Cisco</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28065#M95114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cpview has a history mode that will likely be helpful.&lt;/P&gt;&lt;P&gt;It won't require scripting.&lt;/P&gt;&lt;P&gt;See also:&amp;nbsp;&lt;A class="link-titled" href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk98348" title="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk98348"&gt;Best Practices - Security Gateway Performance&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 17:17:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28065#M95114</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2018-06-01T17:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need auto execute command script like EEM in Cisco</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28066#M95115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cpview will record the information, I believe every 1 mint. I have seen it before the cpu spikes in sub seconds and&amp;nbsp; cpview will not catch it. we had to use top with lower timer to catch it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 17:21:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28066#M95115</guid>
      <dc:creator>Houssameddine_1</dc:creator>
      <dc:date>2018-06-01T17:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need auto execute command script like EEM in Cisco</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28067#M95116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not fullproof, true, but it's a good starting point that doesn't involve writing scripts. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 17:22:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28067#M95116</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2018-06-01T17:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need auto execute command script like EEM in Cisco</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28068#M95117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an old, outdated script from years ago &lt;IMG src="https://community.checkpoint.com/legacyfs/online/checkpoint/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usage: Before running the script please setup top so it always show all CPU's;&lt;/P&gt;&lt;P&gt;#top&lt;BR /&gt;Press 1&lt;BR /&gt;Press shift + w&lt;BR /&gt;Press Enter&lt;BR /&gt;Exit top&lt;BR /&gt;Verify that it shows all CPU's by entering top again Now we can run the script;&lt;/P&gt;&lt;P&gt;#dos2unix monitor.sh&lt;BR /&gt;#chmod +x monitor.sh&lt;/P&gt;&lt;P&gt;#nohup ./monitor.sh &amp;amp;&lt;/P&gt;&lt;P&gt;The script will now run in the background and will take specific outputs related to performance every 30 seconds.&lt;BR /&gt;They will be written into /var/log/output.txt&lt;/P&gt;&lt;P&gt;To kill the script;&lt;BR /&gt;#ps aux | grep monitor.sh&lt;BR /&gt;#lkill -9 [pid of monitor.sh]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change the time value to your needs.&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;#!/bin/bash&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;clear&lt;BR /&gt;echo "To stop the script press CTRL+C"&lt;BR /&gt;echo "Starting to probe the system . . "&lt;BR /&gt;echo ======================================================================== &amp;gt;&amp;gt; /var/log/output.txt&lt;BR /&gt;echo "=== The beginning of the probing process ===" &amp;gt;&amp;gt; /var/log/output.txt&lt;BR /&gt;date &amp;gt;&amp;gt; /var/log/output.txt&lt;BR /&gt;echo ======================================================================== &amp;gt;&amp;gt; /var/log/output.txt&lt;BR /&gt;sleep 5 &lt;BR /&gt;while end_loop=0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # while this condition is TRUE - &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;echo "New run, collecting....."&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;echo "To stop the script press CTRL+C"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;echo "&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo ============================================================= &amp;gt;&amp;gt; /var/log/output.txt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date &amp;gt;&amp;gt; /var/log/output.txt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo ============================================================= &amp;gt;&amp;gt; /var/log/output.txt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "&amp;nbsp;&amp;nbsp;&amp;nbsp; " &amp;gt;&amp;gt; /var/log/output.txt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "&amp;nbsp;&amp;nbsp;&amp;nbsp; " &amp;gt;&amp;gt; /var/log/output.txt&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo cat /proc/meminfo : &amp;gt;&amp;gt; /var/log/output.txt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "------------" &amp;gt;&amp;gt; /var/log/output.txt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cat /proc/meminfo &amp;gt;&amp;gt; /var/log/output.txt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "&amp;nbsp;&amp;nbsp;&amp;nbsp; " &amp;gt;&amp;gt; /var/log/output.txt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo cpstat os -f multi_cpu : &amp;gt;&amp;gt; /var/log/output.txt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "------------" &amp;gt;&amp;gt; /var/log/output.txt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpstat os -f multi_cpu &amp;gt;&amp;gt; /var/log/output.txt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "&amp;nbsp;&amp;nbsp;&amp;nbsp; " &amp;gt;&amp;gt; /var/log/output.txt &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo top -n1 -b : &amp;gt;&amp;gt; /var/log/output.txt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "------------" &amp;gt;&amp;gt; /var/log/output.txt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; top -n1 -b &amp;gt;&amp;gt; /var/log/output.txt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "&amp;nbsp;&amp;nbsp;&amp;nbsp; " &amp;gt;&amp;gt; /var/log/output.txt &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo ps -auxf : &amp;gt;&amp;gt; /var/log/output.txt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "------------" &amp;gt;&amp;gt; /var/log/output.txt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ps -auxf &amp;gt;&amp;gt; /var/log/output.txt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "&amp;nbsp;&amp;nbsp;&amp;nbsp; " &amp;gt;&amp;gt; /var/log/output.txt &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;clear&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;echo " "&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "GOING to SLEEP for 5 seconds, run complete"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;echo "&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;echo "Please press CTL&amp;nbsp; +&amp;nbsp; C in order to break the script" &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sleep 30&amp;nbsp; &lt;BR /&gt;done&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 11:39:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28068#M95117</guid>
      <dc:creator>G_W_Albrecht</dc:creator>
      <dc:date>2018-06-05T11:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need auto execute command script like EEM in Cisco</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28069#M95118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But best would be to ask CP TAC for the &lt;SPAN style="font-size: 11.0pt;"&gt;CPU spike monitor script "spike_monitor_cpk.sh"&amp;nbsp;by Ariel L. Dor &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 14:59:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28069#M95118</guid>
      <dc:creator>G_W_Albrecht</dc:creator>
      <dc:date>2018-06-05T14:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need auto execute command script like EEM in Cisco</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28070#M95119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.checkpoint.com/migrated-users/54062"&gt;Houssameddine Zeghlache&lt;/A&gt;&amp;nbsp;in regards to the granularity of cpview history mode being 1 minute, I looked into it more closely when researching my book and the per-minute historical numbers reported by cpview are the average of two samples taken 30 seconds apart.&amp;nbsp; So a spike of some kind that occurs but&amp;nbsp;is not still happening during one of the samples taken every 30 seconds will not show up at all in cpview's history mode, and this was noted in my book.&amp;nbsp; Sar takes more of a running average over its sampling intervals and is some cases is preferred over cpview depending on what you want to inspect.&amp;nbsp; Here is the table from the second edition of my book where these preferences are summarized, these are just my opinion of course:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="cpview sar" class="image-1 jive-image j-img-original" src="https://community.checkpoint.com/legacyfs/online/checkpoint/66231_cpview_vs_sar.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #fafafa; font-size: 13px;"&gt;--&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #fafafa; font-size: 13px;" /&gt;&lt;SPAN style="color: #333333; background-color: #fafafa; font-size: 13px;"&gt;Second Edition of my "Max Power" Firewall Book&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #fafafa; font-size: 13px;" /&gt;&lt;SPAN style="color: #333333; background-color: #fafafa; font-size: 13px;"&gt;Now Available at&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="http://www.maxpowerfirewalls.com/" style="color: #417394; background-color: #fafafa; text-decoration: none; font-size: 13px;" target="_blank"&gt;http://www.maxpowerfirewalls.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 17:28:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28070#M95119</guid>
      <dc:creator>Timothy_Hall</dc:creator>
      <dc:date>2018-06-05T17:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need auto execute command script like EEM in Cisco</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28071#M95120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim, In my case CPU is spiking intermittently and by the time I login it will became normal. I know one thing, the CPU is spiking when the no. of connection is increasing suddenly from 40k to 80k.&lt;/P&gt;&lt;P&gt;I'm stuck here, I want to find out what are these connections which is causing CPU spike. Could you please help me out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 20:01:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28071#M95120</guid>
      <dc:creator>Pavan_Kumar</dc:creator>
      <dc:date>2018-06-05T20:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need auto execute command script like EEM in Cisco</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28072#M95121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tim, forgot to say one more thing, firewall policy logs are disabled for all policy except clean up rule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 20:25:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28072#M95121</guid>
      <dc:creator>Pavan_Kumar</dc:creator>
      <dc:date>2018-06-05T20:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Need auto execute command script like EEM in Cisco</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28073#M95122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK since logging is only for cleanup it is probably not fwd and its associated logging functions spiking the CPU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First order of business for a spiking CPU is determine what kind of execution is eating the most cycles during the problematic period.&amp;nbsp; sar can get you going in the right direction here, run sar in historical mode like this (assume that the day number it happened was 7 in this example, for today just omit the "-f (filename)" argument):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sar -f /var/log/sa/sa07 -P ALL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will show where specifically the CPU percentage-wise for each type of execution, namely:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%user - process execution, generally this should be fairly low on a gateway unless features that cause process space trips such as HTTPS Inspection are turned on&amp;nbsp;&lt;/P&gt;&lt;P&gt;%nice - irrelevant on a gateway, important on a R80+ SMS though&lt;/P&gt;&lt;P&gt;%system - kernel execution, roll up of the sy/si/hi/st shown in top&lt;/P&gt;&lt;P&gt;%iowait - waiting for I/O, should be very low (&amp;lt;5%) on a gateway unless policy is currently being installed, if higher than that during your spikes the firewall is almost certainly low on memory, post output of &lt;STRONG&gt;free -m&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;%idle - hopefully self-explanatory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please report where most of the CPU cycles are going during the spikes and we can go from there.&amp;nbsp; If it is spiking in %system as shown by sar, you're going to either have to catch the problem live while running top, or run top in batch mode so we can see which one of sy/si/hi is the culprit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;BR /&gt; Second Edition of my "Max Power" Firewall Book&lt;BR /&gt; Now Available at &lt;A href="http://www.maxpowerfirewalls.com" target="_blank"&gt;http://www.maxpowerfirewalls.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 22:51:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Need-auto-execute-command-script-like-EEM-in-Cisco/m-p/28073#M95122</guid>
      <dc:creator>Timothy_Hall</dc:creator>
      <dc:date>2018-06-05T22:51:45Z</dc:date>
    </item>
  </channel>
</rss>

