<?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: Session description check in SmartTasks</title>
    <link>https://community.checkpoint.com/t5/SmartTasks/Session-description-check/m-p/180376#M12</link>
    <description>&lt;P&gt;Thats right&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/48806"&gt;@patones1&lt;/a&gt;&amp;nbsp;. I got exact same behavior in my R81.20 lab.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2023 12:37:32 GMT</pubDate>
    <dc:creator>the_rock</dc:creator>
    <dc:date>2023-05-09T12:37:32Z</dc:date>
    <item>
      <title>Session description check</title>
      <link>https://community.checkpoint.com/t5/SmartTasks/Session-description-check/m-p/177546#M6</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 verify that a session description is at least 20 characters.&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 '&lt;SPAN&gt;Task_SessionDescrLength&lt;/SPAN&gt;' 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|jq -r .session.\"session-description\"|wc -c` -le 20 &amp;amp;&amp;amp; echo '{"result":"failure","message":"Session description should be at least 20 characters"}' || 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: #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;Verify Session Description Length&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 01:42:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/SmartTasks/Session-description-check/m-p/177546#M6</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2025-10-21T01:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: SmartTask - Session description check</title>
      <link>https://community.checkpoint.com/t5/SmartTasks/Session-description-check/m-p/177576#M7</link>
      <description>&lt;P&gt;For compliance its amazing thing, thanks for share&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 14:01:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/SmartTasks/Session-description-check/m-p/177576#M7</guid>
      <dc:creator>ic3w4Il</dc:creator>
      <dc:date>2023-04-06T14:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Session description check</title>
      <link>https://community.checkpoint.com/t5/SmartTasks/Session-description-check/m-p/180277#M10</link>
      <description>&lt;P&gt;Verified in R81.20 lab, works as described! &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 19:25:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/SmartTasks/Session-description-check/m-p/180277#M10</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-05-08T19:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Session description check</title>
      <link>https://community.checkpoint.com/t5/SmartTasks/Session-description-check/m-p/180375#M11</link>
      <description>&lt;P&gt;Verified in R81.20 lab. for "Session Name"&lt;/P&gt;&lt;P&gt;It also works perfectly with session name..&lt;BR /&gt;Just it will be necessary to &lt;STRONG&gt;modify the script&lt;/STRONG&gt; the way &lt;U&gt;Danny wrote in my post:&lt;/U&gt;&lt;BR /&gt;"&lt;FONT color="#000080"&gt;change "&lt;STRONG&gt;session-description&lt;/STRONG&gt;" to "&lt;STRONG&gt;session-name&lt;/STRONG&gt;" and adjust the message accordingly"&lt;/FONT&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;By doing this, you get the failure message when publishing with a session name is less of 20 characters, and you get the success message (see bellow) when publishing with a session name longer than 20 characters&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Succes_champion_Script.JPG" style="width: 532px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/20845iBB605515BBF3B54F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Succes_champion_Script.JPG" alt="Succes_champion_Script.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 12:32:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/SmartTasks/Session-description-check/m-p/180375#M11</guid>
      <dc:creator>patones1</dc:creator>
      <dc:date>2023-05-09T12:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Session description check</title>
      <link>https://community.checkpoint.com/t5/SmartTasks/Session-description-check/m-p/180376#M12</link>
      <description>&lt;P&gt;Thats right&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/48806"&gt;@patones1&lt;/a&gt;&amp;nbsp;. I got exact same behavior in my R81.20 lab.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 12:37:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/SmartTasks/Session-description-check/m-p/180376#M12</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-05-09T12:37:32Z</dc:date>
    </item>
  </channel>
</rss>

