<?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 SmartConsole Scripts Repository use cases and experience in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/35863#M2212</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this week I recognized that I never have checked if there is a benefit in using SmartConsole's Scripts repository.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="71622" class="image-1 jive-image" src="https://community.checkpoint.com/legacyfs/online/checkpoint/71622_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After reading&amp;nbsp;&lt;A href="https://community.checkpoint.com/community/secure-knowledge/blog/2018/10/01/article-of-the-week-check-point-packet-injector"&gt;https://community.checkpoint.com/community/secure-knowledge/blog/2018/10/01/article-of-the-week-check-point-packet-injector&lt;/A&gt;&amp;nbsp;I decided to implement my first script which could be helpful on daily basis. It is calling the Packet Injector via SmartConsole and shows the result directly in the GUI without opening a dedicated ssh session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am interested to see which usecases you found for using the Scripts Repository in SmartConsole.&lt;/P&gt;&lt;P&gt;Please share&amp;nbsp;your experience, your usecases&amp;nbsp;or your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for sharing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Sven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Oct 2018 14:16:52 GMT</pubDate>
    <dc:creator>Sven_Glock</dc:creator>
    <dc:date>2018-10-16T14:16:52Z</dc:date>
    <item>
      <title>SmartConsole Scripts Repository use cases and experience</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/35863#M2212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this week I recognized that I never have checked if there is a benefit in using SmartConsole's Scripts repository.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="71622" class="image-1 jive-image" src="https://community.checkpoint.com/legacyfs/online/checkpoint/71622_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After reading&amp;nbsp;&lt;A href="https://community.checkpoint.com/community/secure-knowledge/blog/2018/10/01/article-of-the-week-check-point-packet-injector"&gt;https://community.checkpoint.com/community/secure-knowledge/blog/2018/10/01/article-of-the-week-check-point-packet-injector&lt;/A&gt;&amp;nbsp;I decided to implement my first script which could be helpful on daily basis. It is calling the Packet Injector via SmartConsole and shows the result directly in the GUI without opening a dedicated ssh session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am interested to see which usecases you found for using the Scripts Repository in SmartConsole.&lt;/P&gt;&lt;P&gt;Please share&amp;nbsp;your experience, your usecases&amp;nbsp;or your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for sharing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Sven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2018 14:16:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/35863#M2212</guid>
      <dc:creator>Sven_Glock</dc:creator>
      <dc:date>2018-10-16T14:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: SmartConsole Scripts Repository usecases and experience</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/35864#M2213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My Experience:&lt;/P&gt;&lt;P&gt;Generally I like the possibility to run scripts from the GUI.&lt;/P&gt;&lt;P&gt;But to be honest, I am not 100% happy with the implementation.&lt;/P&gt;&lt;P&gt;The way adding jobs to the "recent tasks list" makes it a bit uncomfortable to find the results.&lt;/P&gt;&lt;P&gt;I would like to see the results directly after executing the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally there is some kind of time lag between the finish time of the job and the time when you can see the result.&lt;/P&gt;&lt;P&gt;I often click in the result and it is not showing what I expect to see. A few seconds&amp;nbsp;later, the result shows my expected output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More over I don't like&amp;nbsp; the need to close the repository window before you are able to open the "recent tasks list" and check the results or selecting a different gateway to run the selected script on.&lt;/P&gt;&lt;P&gt;Why not implementing the repository window like the object explorer where you can click things in the background - like the "recent tasks list" - while the window remains opened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me share my first two scripts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PINJ Installer - A script to install Packet Injector to a R80 gateway&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;#!/bin/bash&lt;BR /&gt;curl_cli -o /home/admin/pinj.tgz ftp://someressources/pinj_v1.4.6_R80.10.tgz&lt;BR /&gt;tar -zxvf /home/admin/pinj.tgz&lt;BR /&gt;rpm -ihv CPPinj-R80-00.i386.rpm&lt;BR /&gt;echo "export PATH=$PATH:/opt/CPPinj-R80/" &amp;gt;&amp;gt; /home/admin/.bashrc&lt;BR /&gt;rm /home/admin/pinj.tgz CPPinj-R80-00.i386.rpm‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PINJ Executor NON-VSX - A script to execure packet injector on a non-vsx gateway&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;##################################&lt;BR /&gt;#Arguments: &amp;lt;SRC-IP&amp;gt; &amp;lt;DST-IP&amp;gt; &amp;lt;dport&amp;gt; &amp;lt;tcp|udp&amp;gt;&lt;BR /&gt;##################################&lt;BR /&gt;#!/bin/bash&lt;BR /&gt;interface=$(ip route get $1 | head -1 | rev | cut -d " " -f 5 | rev)&lt;BR /&gt;sp=$(( RANDOM % (65535 - 1025 + 1 ) + 1025 ))&lt;BR /&gt;echo "Command: /opt/CPPinj-R80/pinj --sport $sp --dport $3 --protocol $4 -I $interface $1 $2"&lt;BR /&gt;/opt/CPPinj-R80/pinj --sport $sp --dport $3 --protocol $4 -I $interface $1 $2 2&amp;gt;/dev/null‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I start trying more complex scripts like a "Deployment agent offline updater" I experience some problems&amp;nbsp;with timeouts or something like this.&lt;/P&gt;&lt;P&gt;But I have to dig deeper before getting more concrete.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2018 17:02:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/35864#M2213</guid>
      <dc:creator>Sven_Glock</dc:creator>
      <dc:date>2018-10-16T17:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: SmartConsole Scripts Repository usecases and experience</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/35865#M2214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sven,&lt;/P&gt;&lt;P&gt;Thank you for your feedback, I'm taking your note into my attention.&lt;/P&gt;&lt;P&gt;As for the timeout, currently this is set to 2 minutes.&amp;nbsp;I will continue to watch this thread in order to improve this feature.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Oct 2018 13:07:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/35865#M2214</guid>
      <dc:creator>Ari_Heber</dc:creator>
      <dc:date>2018-10-20T13:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: SmartConsole Scripts Repository usecases and experience</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/35866#M2215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agree with Sven. Great idea with a bit fuzzy implementation. I hope CheckPoint elaborates on this and improves it in the future. I would start with more detailed execution logs, integrated job scheduler, mail reports, revisions...&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Nov 2018 05:01:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/35866#M2215</guid>
      <dc:creator>HristoGrigorov</dc:creator>
      <dc:date>2018-11-25T05:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: SmartConsole Scripts Repository use cases and experience</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/46971#M3144</link>
      <description>&lt;P&gt;Today I tried to add the healthcheck script from&amp;nbsp;sk121447 to the script repository.&lt;/P&gt;&lt;P&gt;Running this script on cli gives a nice quick overview about the health of the system.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Unbenannt.png" style="width: 667px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/69i39634D1DC6FE599D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Unbenannt.png" alt="Unbenannt.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Executing this script from the repository the output is like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Unbenannt2.png" style="width: 586px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/70i58C1A18F807B1689/image-size/large?v=v2&amp;amp;px=999" role="button" title="Unbenannt2.png" alt="Unbenannt2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Readable, but not nice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So as an improvement: It would be nice if you could support colors and other font attributes.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 18:12:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/46971#M3144</guid>
      <dc:creator>Sven_Glock</dc:creator>
      <dc:date>2019-03-14T18:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: SmartConsole Scripts Repository use cases and experience</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/52293#M3392</link>
      <description>&lt;P&gt;I am exactly trying the same thing with the healthcheck script, nice to know that the format is not similar to the one we like to see and this saved some time by seeing your output.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 23:35:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/52293#M3392</guid>
      <dc:creator>VENKAT_S_P</dc:creator>
      <dc:date>2019-04-30T23:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: SmartConsole Scripts Repository use cases and experience</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/52509#M3412</link>
      <description>&lt;P&gt;How is healthcheck working for you? There is a max script size limit of 8kb. (in r80.10)&lt;/P&gt;&lt;P&gt;Healthcheck is +300kb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Henrik&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 10:22:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/52509#M3412</guid>
      <dc:creator>Henrik_Noerr1</dc:creator>
      <dc:date>2019-05-03T10:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: SmartConsole Scripts Repository use cases and experience</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/52518#M3413</link>
      <description>&lt;P&gt;Pretty simple. You have to copy the script locally on the relevant machine (gateway, management, etc.)&lt;/P&gt;&lt;P&gt;The script in the repository is just executing the script locally on the relevant machine.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 11:15:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/52518#M3413</guid>
      <dc:creator>Sven_Glock</dc:creator>
      <dc:date>2019-05-03T11:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: SmartConsole Scripts Repository use cases and experience</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/52680#M3419</link>
      <description>&lt;P&gt;ofcourse! - Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 10:33:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/52680#M3419</guid>
      <dc:creator>Henrik_Noerr1</dc:creator>
      <dc:date>2019-05-06T10:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: SmartConsole Scripts Repository usecases and experience</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/75946#M4416</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/24327"&gt;@Ari_Heber&lt;/a&gt;Are there already plans for improvements?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 21:09:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/75946#M4416</guid>
      <dc:creator>Sven_Glock</dc:creator>
      <dc:date>2020-02-20T21:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: SmartConsole Scripts Repository use cases and experience</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/77786#M4555</link>
      <description>&lt;P&gt;Hi Checkmates,&lt;/P&gt;&lt;P&gt;I found an other usecase.&lt;/P&gt;&lt;P&gt;I wanted to have CPPCAP (&lt;A href="https://community.checkpoint.com/t5/General-Topics/New-Tool-CPPCAP/td-p/12069" target="_blank" rel="noopener"&gt;Link to relevant discussion about CPPCAP&lt;/A&gt;&amp;nbsp;) on all my gateways.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;As it is not part of the installation until R80.40 you have to install it manually after every fresh installtion.&lt;BR /&gt;So I created a short script for my repository:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#!/bin/bash
checkfile="/sbin/cppcap"
if [ -f "$checkfile" ]; then
echo "CPPCAP already installed"

else
HOST='FTPHOST'
USER='user'
PASSWD='somepass'
ftpdir='remotedir'
dir='localdir'

#version check
version=$(fw ver | awk '{print $7}')
file='Check_point_'$version'_cp_pcap_sk141412.rpm'

ftp -n $HOST &amp;lt;&amp;lt;END_SCRIPT
quote USER $USER
quote PASS $PASSWD
cd $ftpdir
bin
lcd $dir
get $file
quit
END_SCRIPT


rpm -ivh --force --nodeps $dir/$file
/etc/init.d/start_cppcap start

rm $dir/$file

echo "$file successfully installed"

fi&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script is checking if CPPCAP is already installed, if not it checks the GAiA version to install the correct RPM for the specific version running on the gateway.&lt;BR /&gt;All you need is a ftp-server which hosts the relevant versions of CPPCAP. The rpm-files shoud have the same name, just the version related to the value in "fw ver" should be different.&lt;/P&gt;&lt;P&gt;Cheers&lt;BR /&gt;Sven&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 09:25:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/77786#M4555</guid>
      <dc:creator>Sven_Glock</dc:creator>
      <dc:date>2020-03-10T09:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: SmartConsole Scripts Repository use cases and experience</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/77847#M4557</link>
      <description>&lt;P&gt;Bye the way: Have you guys noticed that you can have global scripts in a multi-domanain-management? 8)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 09:18:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/77847#M4557</guid>
      <dc:creator>Sven_Glock</dc:creator>
      <dc:date>2020-03-10T09:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: SmartConsole Scripts Repository use cases and experience</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/103245#M5342</link>
      <description>&lt;P&gt;I see two user cases of the repository scripts:&lt;BR /&gt;- improve efficiency of checkpoint administrators&lt;/P&gt;&lt;P&gt;- allow checkpoint administrators to hand over operational tasks to other teams in the company&lt;BR /&gt;&lt;BR /&gt;For the second case, I miss tighter access controls. I would be nice if you could define in the permission profiles what scripts is an user permitted to run.&amp;nbsp; Also running scripts from the repository script requires super-user rights, it would be great if the scripts could be run with as little rights as possible.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 11:24:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/103245#M5342</guid>
      <dc:creator>Luis_Miguel_Mig</dc:creator>
      <dc:date>2020-11-25T11:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: SmartConsole Scripts Repository usecases and experience</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/103556#M5349</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/24327"&gt;@Ari_Heber&lt;/a&gt;&amp;nbsp;:&amp;nbsp; Are you&amp;nbsp; still responsible&amp;nbsp; for&amp;nbsp; Smart&amp;nbsp; Console Script Repository?&lt;BR /&gt;If&amp;nbsp; yes:&amp;nbsp; Please join&amp;nbsp; our discussion&amp;nbsp;8)&lt;/img&gt;&lt;BR /&gt;If no: Can you say who&amp;nbsp; is&amp;nbsp; responsible&amp;nbsp; now?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Sven&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 18:54:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/103556#M5349</guid>
      <dc:creator>Sven_Glock</dc:creator>
      <dc:date>2020-11-27T18:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: SmartConsole Scripts Repository use cases and experience</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/167897#M7413</link>
      <description>&lt;P&gt;The timeout is still present.&lt;/P&gt;&lt;P&gt;I made a script which uses mgmt_cli&amp;nbsp; to make API calls for a large number of policies (25+) in a given SMS, then publish and install each policy, check for the installation and so on.&lt;/P&gt;&lt;P&gt;I have noticed that the task still times out after a couple of minutes while the script completes everything it should do.&lt;/P&gt;&lt;P&gt;So, users see a failed task when everything is actually completed. Increasing or allowing a custom task timer would be welcome.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 09:19:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/167897#M7413</guid>
      <dc:creator>Alex-</dc:creator>
      <dc:date>2023-01-16T09:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: SmartConsole Scripts Repository use cases and experience</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/206719#M8361</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;This post is rather old but especially regarding the script repository, I basically couldn´t find any other related discussion.&lt;/P&gt;&lt;P&gt;I just recently discovered the possibility of running scripts via SmartConsole.&lt;/P&gt;&lt;P&gt;My first application was initiating a snapshot on all devices prior to JHF installation.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;clish -c "add snapshot 2024_01_15 desc prior_Take130"&lt;/LI-CODE&gt;&lt;P&gt;Second use case was creation of an additional local user.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;clish -c 'add user USR uid 0 homedir /home/USR'
clish -c 'add rba user USR roles adminRole'
clish -c 'set user USR shell /bin/bash'
clish -c 'set user USR realname "XYZ"'
clish -c 'set user USR newpass PW'&lt;/LI-CODE&gt;&lt;P&gt;Especially here, I´d like to work with the arguments you can give prior to actually running the script but the manual is really sparse on how to use it. Will it just attach one argument to whatever command you have in the script or can you use variables?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 16:17:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/206719#M8361</guid>
      <dc:creator>Robin_H</dc:creator>
      <dc:date>2024-02-21T16:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: SmartConsole Scripts Repository use cases and experience</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/207057#M8369</link>
      <description>&lt;P&gt;Using arguments is not a big deal:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="script1.png" style="width: 377px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/24633i2D72CC0B8222E064/image-size/large?v=v2&amp;amp;px=999" role="button" title="script1.png" alt="script1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="script2.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/24634i23CCF15B05F76787/image-size/large?v=v2&amp;amp;px=999" role="button" title="script2.png" alt="script2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I hope this is anwering your question.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;/P&gt;&lt;P&gt;Sven&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 20:10:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-Scripts-Repository-use-cases-and-experience/m-p/207057#M8369</guid>
      <dc:creator>Sven_Glock</dc:creator>
      <dc:date>2024-02-23T20:10:35Z</dc:date>
    </item>
  </channel>
</rss>

