<?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: Automate your everyday tasks with SmartTasks in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automate-your-everyday-tasks-with-SmartTasks/m-p/109254#M81510</link>
    <description>&lt;P&gt;Dear Team ,&lt;/P&gt;&lt;P&gt;can we do schedule for policy installation ?&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jan 2021 08:43:29 GMT</pubDate>
    <dc:creator>Harmesh_Yadav</dc:creator>
    <dc:date>2021-01-29T08:43:29Z</dc:date>
    <item>
      <title>Automate your everyday tasks with SmartTasks</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automate-your-everyday-tasks-with-SmartTasks/m-p/75871#M81509</link>
      <description>&lt;P&gt;In R80.40 we introduced SmartTasks, a powerful feature that further expands the openness and extensibility approach.&lt;/P&gt;
&lt;P&gt;SmartTasks saves admins valuable time by automating routine tasks with pre-defined or customizable actions. A&amp;nbsp;SmartTask&amp;nbsp;is a combination of trigger and action.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Triggers&lt;/STRONG&gt;&amp;nbsp;are events – currently defined in terms of existing management operations, such as install policy or publish&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Actions&lt;/STRONG&gt;&amp;nbsp;are automatic responses that take place after a trigger is fired, such as running a script, posting a web request.&lt;/P&gt;
&lt;P&gt;Below you can find some of the SmartTasks we created. To start using them, just import the SmartTask into your R80.40 Security Management Server.&lt;/P&gt;
&lt;P&gt;You're&amp;nbsp; very welcome to check out the scripts, modify and create your own SmartTasks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;A href="https://community.checkpoint.com/t5/General-Management-Topics/SmartTask-Validate-Session-Name-Format/td-p/75869" target="_self"&gt;&lt;STRONG&gt;SmartTask - Validate Session Name Format&lt;/STRONG&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;A href="https://community.checkpoint.com/t5/General-Management-Topics/SmartTask-Custom-Permissions/td-p/77247" target="_self"&gt;&lt;FONT color="#000000"&gt;SmartTask - Custom&lt;/FONT&gt; &lt;FONT color="#000000"&gt;Permissions&lt;/FONT&gt;&lt;/A&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;A href="https://community.checkpoint.com/t5/General-Management-Topics/SmartTask-Restrict-use-of-specific-objects-in-Access-Control/td-p/77835" target="_self"&gt;SmartTask - Restrict use of specific objects in Access Control Policy&lt;/A&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 13:56:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automate-your-everyday-tasks-with-SmartTasks/m-p/75871#M81509</guid>
      <dc:creator>Dima_M</dc:creator>
      <dc:date>2020-03-12T13:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Automate your everyday tasks with SmartTasks</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automate-your-everyday-tasks-with-SmartTasks/m-p/109254#M81510</link>
      <description>&lt;P&gt;Dear Team ,&lt;/P&gt;&lt;P&gt;can we do schedule for policy installation ?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 08:43:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automate-your-everyday-tasks-with-SmartTasks/m-p/109254#M81510</guid>
      <dc:creator>Harmesh_Yadav</dc:creator>
      <dc:date>2021-01-29T08:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Automate your everyday tasks with SmartTasks</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automate-your-everyday-tasks-with-SmartTasks/m-p/113314#M81511</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I have a question, having smart task to check if IDA Access role objects have been modified/created.. If yes, policy to dedicated PDP gateways is pushed. Smart task trigger is after publish with bash script below.&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;BR /&gt;@ihr@actinet.cz&lt;/P&gt;&lt;P&gt;trigger_json=`echo $1 | base64 --decode -i`&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;session_objcets=`echo $trigger_json | jq '.operations | (."added-objects"[] | {"name":.name , "type":.type}) , (."deleted-objects"[] | {"name":.name, "type":.type}), (."modified-objects"[] | {"name":."new-object".name, "type":."new-object".type})' | jq -s .`&lt;/P&gt;&lt;P&gt;session_objects_details=`echo $session_objcets | jq '.[] | {"name":.name, "type":.type, "valid_type": ( [.type]-["access-role"]| length == 0)}' | jq -s .`&lt;BR /&gt;number_of_objects_changed=`echo $session_objects_details | jq '.[] | select(."valid_type" == true)' | jq -s '. | length'`&lt;BR /&gt;list_of_objects_changed=`echo $session_objects_details | jq '.[] | select(."valid_type" == true)' | jq -s -c '[.[] | .name]' | tr -d [ | tr -d ]`&lt;/P&gt;&lt;P&gt;if [ $number_of_objects_changed -gt 0 ]; then&lt;BR /&gt;mgmt_cli -r true install-policy policy-package "AXXXX" access true threat-prevention false targets.1 "XXX" targets.2 "YYY" --format json &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;m1="IDA objects changed, PDP policy was installed on IAP gateways"&lt;BR /&gt;m2="The following objects were modified : $list_of_objects_changed"&lt;BR /&gt;m2=${m2//\"/\\\"}&lt;BR /&gt;printf '{"result":"success","message":"%s %s"}\n' "$m1" "$m2"&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;else&lt;BR /&gt;m1="No IDA objects changed, I wont install PDP policy"&lt;BR /&gt;printf '{"result":"success","message":"%s"}\n' "$m1"&lt;BR /&gt;exit 0&lt;/P&gt;&lt;P&gt;fi&lt;/P&gt;&lt;P&gt;This works fine if you do just few changes in GUI..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is an issue when there are many changes like updating cluster objects with 250 interfaces - get interfaces with topology, basically huge publish changes via GUI.. smart task will crash after 300 sec (max running time) with no output.&lt;/P&gt;&lt;P&gt;I tested also something like this, just to get all data before sorting, same it did not produced any output at all:&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;/P&gt;&lt;P&gt;trigger_json=`echo $1 | base64 --decode -i`&lt;/P&gt;&lt;P&gt;printf "trigger_json"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question is, did someone tested to run smart task (after publish trigger) when there are more changes published, specially if you modify cluster object as I described? Or is there other way how to get operations data after publish?&lt;/P&gt;&lt;P&gt;thx!&lt;/P&gt;&lt;P&gt;ivo&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 14:18:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automate-your-everyday-tasks-with-SmartTasks/m-p/113314#M81511</guid>
      <dc:creator>Ivo_Hrbacek</dc:creator>
      <dc:date>2021-03-12T14:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Automate your everyday tasks with SmartTasks</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automate-your-everyday-tasks-with-SmartTasks/m-p/113717#M81512</link>
      <description>&lt;P&gt;Hi Ivo, thanks for reporting.&amp;nbsp; We're looking into this issue now in order to offer a solution.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 18:53:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automate-your-everyday-tasks-with-SmartTasks/m-p/113717#M81512</guid>
      <dc:creator>Dima_M</dc:creator>
      <dc:date>2021-03-16T18:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Automate your everyday tasks with SmartTasks</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automate-your-everyday-tasks-with-SmartTasks/m-p/113763#M81513</link>
      <description>&lt;P&gt;thx&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 10:35:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automate-your-everyday-tasks-with-SmartTasks/m-p/113763#M81513</guid>
      <dc:creator>Ivo_Hrbacek</dc:creator>
      <dc:date>2021-03-17T10:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Automate your everyday tasks with SmartTasks</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automate-your-everyday-tasks-with-SmartTasks/m-p/117635#M81514</link>
      <description>&lt;P&gt;In this video &lt;A href="https://www.youtube.com/watch?v=steOVo6T2iY" target="_blank"&gt;https://www.youtube.com/watch?v=steOVo6T2iY&lt;/A&gt;&lt;BR /&gt;You guys show an example of smarttask which involves sending an e-mail with all the changes from a published session. How can I do that? Said e-mail has a nice design on it already.&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 12:16:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automate-your-everyday-tasks-with-SmartTasks/m-p/117635#M81514</guid>
      <dc:creator>Hash1</dc:creator>
      <dc:date>2021-05-04T12:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Automate your everyday tasks with SmartTasks</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automate-your-everyday-tasks-with-SmartTasks/m-p/118011#M81515</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/332"&gt;@Tomer_Sole&lt;/a&gt;&amp;nbsp;I realize this isn't your area anymore, but it was when this came out.&lt;BR /&gt;Can you find the right resource to publish this particular SmartTasks?&lt;BR /&gt;Also&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/1249"&gt;@Dima_M&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 02:32:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automate-your-everyday-tasks-with-SmartTasks/m-p/118011#M81515</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-05-10T02:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Automate your everyday tasks with SmartTasks</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automate-your-everyday-tasks-with-SmartTasks/m-p/118338#M81516</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We're working on adding " send email" action to SmartTasks, currently you can use "run script" action to send an email with sendmail daemon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;/opt/CPsuite-Rxx.xx/fw1/bin/sendmail -t IP_of_MailServer -s "Subject" -f &lt;A href="mailto:from@company.com" target="_blank"&gt;from@example.com&lt;/A&gt; &lt;A href="mailto:to@company.com" target="_blank"&gt;to@example.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 16:09:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automate-your-everyday-tasks-with-SmartTasks/m-p/118338#M81516</guid>
      <dc:creator>Dima_M</dc:creator>
      <dc:date>2021-05-13T16:09:53Z</dc:date>
    </item>
  </channel>
</rss>

