<?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: Blank comments check in SmartTasks</title>
    <link>https://community.checkpoint.com/t5/SmartTasks/Blank-comments-check/m-p/260955#M17</link>
    <description>&lt;P&gt;Just tested it today in the lab...great!&lt;/P&gt;</description>
    <pubDate>Mon, 27 Oct 2025 01:54:11 GMT</pubDate>
    <dc:creator>the_rock</dc:creator>
    <dc:date>2025-10-27T01:54:11Z</dc:date>
    <item>
      <title>Blank comments check</title>
      <link>https://community.checkpoint.com/t5/SmartTasks/Blank-comments-check/m-p/260405#M15</link>
      <description>&lt;DIV class=""&gt;
&lt;P style="text-align: center;"&gt;&lt;span class="lia-unicode-emoji" title=":shopping_cart:"&gt;🛒&lt;/span&gt;&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/Management/Automate-your-everyday-tasks-with-SmartTasks/m-p/75871" target="_self"&gt;More SmartTasks&lt;/A&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&amp;nbsp;Tested to be working with R81.20+&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://sc1.checkpoint.com/documents/R82/WebAdminGuides/EN/CP_R82_SecurityManagement_AdminGuide/Content/Topics-SECMG/SmartTasks.htm" target="_self"&gt;SmartTask&lt;/A&gt; to check if object or rule comments are left blank by SmartConsole admins.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;Script code&lt;/H3&gt;
&lt;H5&gt;Copy the code below into a new script 'Task_CheckComments' of your SmartConsole &lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk140852" target="_self"&gt;script repository&lt;/A&gt;.&lt;/H5&gt;
&lt;PRE class="code-preview_dark__v9aBF" tabindex="0" data-testid="code-preview-text-area"&gt;test `cat $1|grep -iqE 'implied|automatic|\"last-modifier\":\"System\"'; echo $?` -eq 0 &amp;amp;&amp;amp; echo '{"result":"success"}' || { test `(cat $1 | jq -r '.operations["added-objects"][]?.comments'; cat $1 | jq -r '.operations["modified-objects"][] | .["new-object"].comments') | grep -c '^[[:space:]]*$'` -gt 0 &amp;amp;&amp;amp; echo '{"result":"failure","message":"Comments on rules and objects must not be blank!"}' || echo '{"result":"success"}'; }&lt;/PRE&gt;
&lt;H3&gt;SmartTask&lt;/H3&gt;
&lt;H5&gt;Create a new SmartTask in SmartConsole &amp;gt; Manage &amp;amp; Settings &amp;gt; SmartTasks and install policy to activate the new task.&lt;/H5&gt;
&lt;TABLE border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD style="color: #fff; background: #2E3F58;"&gt;Name&lt;/TD&gt;
&lt;TD style="color: #ffffff; background: #2e3f58;"&gt;Description&lt;/TD&gt;
&lt;TD style="color: #fff; background: #2E3F58;"&gt;Trigger&lt;/TD&gt;
&lt;TD style="color: #fff; background: #2E3F58;"&gt;Action&lt;/TD&gt;
&lt;TD style="color: #fff; background: #2E3F58;"&gt;Enabled&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="background: #BCE3FE;"&gt;Detect Blank Comments&lt;/TD&gt;
&lt;TD style="background: #bce3fe;"&gt;Check for blank comments in added or modified objects and rules.&lt;/TD&gt;
&lt;TD style="background: #BCE3FE;"&gt;Before Publish&lt;/TD&gt;
&lt;TD style="background: #BCE3FE;"&gt;Run Script&lt;/TD&gt;
&lt;TD class="lia-align-center" style="background: #BCE3FE;"&gt;&lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Oct 2025 02:03:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/SmartTasks/Blank-comments-check/m-p/260405#M15</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2025-10-21T02:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Blank comments check</title>
      <link>https://community.checkpoint.com/t5/SmartTasks/Blank-comments-check/m-p/260412#M16</link>
      <description>&lt;P&gt;Genius!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2025 02:44:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/SmartTasks/Blank-comments-check/m-p/260412#M16</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2025-10-21T02:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Blank comments check</title>
      <link>https://community.checkpoint.com/t5/SmartTasks/Blank-comments-check/m-p/260955#M17</link>
      <description>&lt;P&gt;Just tested it today in the lab...great!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 01:54:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/SmartTasks/Blank-comments-check/m-p/260955#M17</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2025-10-27T01:54:11Z</dc:date>
    </item>
  </channel>
</rss>

