<?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 Smarttask + policy presets in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Smarttask-policy-presets/m-p/113857#M76391</link>
    <description>&lt;P&gt;Goal:&amp;nbsp; &amp;nbsp;use policy preset to automate policy installs – then email administrators status of installs.&lt;/P&gt;
&lt;P&gt;In SmartTask,&amp;nbsp; configure triggers for "after policy installation."&lt;/P&gt;
&lt;P&gt;In the scripts repository, there is already a script to "show policy status."&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) when that script is ran,&amp;nbsp; where is the output?&lt;/P&gt;
&lt;P&gt;2) how to modify that script to add an email function?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can clone the script while looking at the SmartTask function,&amp;nbsp; but cannot clone it if we are inside the scripts repository.&amp;nbsp; Even after cloning it, cannot modify it or view the actual script. can only delete it &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Mar 2021 21:49:52 GMT</pubDate>
    <dc:creator>TexasT</dc:creator>
    <dc:date>2021-03-17T21:49:52Z</dc:date>
    <item>
      <title>Smarttask + policy presets</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Smarttask-policy-presets/m-p/113857#M76391</link>
      <description>&lt;P&gt;Goal:&amp;nbsp; &amp;nbsp;use policy preset to automate policy installs – then email administrators status of installs.&lt;/P&gt;
&lt;P&gt;In SmartTask,&amp;nbsp; configure triggers for "after policy installation."&lt;/P&gt;
&lt;P&gt;In the scripts repository, there is already a script to "show policy status."&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) when that script is ran,&amp;nbsp; where is the output?&lt;/P&gt;
&lt;P&gt;2) how to modify that script to add an email function?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can clone the script while looking at the SmartTask function,&amp;nbsp; but cannot clone it if we are inside the scripts repository.&amp;nbsp; Even after cloning it, cannot modify it or view the actual script. can only delete it &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 21:49:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Smarttask-policy-presets/m-p/113857#M76391</guid>
      <dc:creator>TexasT</dc:creator>
      <dc:date>2021-03-17T21:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Smarttask + policy presets</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Smarttask-policy-presets/m-p/113872#M76392</link>
      <description>&lt;P&gt;My guess is that it probably just runs a single command (either fw stat or&amp;nbsp;cpstat -f policy fw).&lt;BR /&gt;In which case, you can write a script that just calls that and parses it accordingly.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 22:40:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Smarttask-policy-presets/m-p/113872#M76392</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-03-17T22:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Smarttask + policy presets</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Smarttask-policy-presets/m-p/116453#M76393</link>
      <description>&lt;P&gt;I PhoneBoy, hope you be fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can we through SmartTask, requiere a comment on a fw rule before install policy? and if is yes, do you know howto do it?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 20:44:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Smarttask-policy-presets/m-p/116453#M76393</guid>
      <dc:creator>Jose_Tapia</dc:creator>
      <dc:date>2021-04-20T20:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Smarttask + policy presets</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Smarttask-policy-presets/m-p/116464#M76394</link>
      <description>&lt;P&gt;At install policy time? No.&lt;BR /&gt;I believe you can do it before publishing the session where the rule is created, which is the correct time to do it.&lt;BR /&gt;It would involve parsing the contents of the show changes API (which is what is passed to the script).&lt;BR /&gt;You'd have to look for rule changes and see if they contain a comment or not.&lt;BR /&gt;The documentation explains the flow (with an example): &lt;A href="https://sc1.checkpoint.com/documents/R80.40/WebAdminGuides/EN/CP_R80.40_SecurityManagement_AdminGuide/Topics-SECMG/SmartTasks.htm?Highlight=smarttasks" target="_blank"&gt;https://sc1.checkpoint.com/documents/R80.40/WebAdminGuides/EN/CP_R80.40_SecurityManagement_AdminGuide/Topics-SECMG/SmartTasks.htm?Highlight=smarttasks&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 23:29:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Smarttask-policy-presets/m-p/116464#M76394</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-04-20T23:29:05Z</dc:date>
    </item>
  </channel>
</rss>

