<?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: Proper place to put custom scripts in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17747#M1161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like that the most, thanx Tomer. Only need to figure out how to invoke script from Job Scheduler using Management API. Shouldn't be that difficult...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Nov 2018 19:35:58 GMT</pubDate>
    <dc:creator>HristoGrigorov</dc:creator>
    <dc:date>2018-11-20T19:35:58Z</dc:date>
    <item>
      <title>Proper place to put custom scripts</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17739#M1153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I wrote my own backup script for Security Management Server and I thought the proper place to put it in is &lt;STRONG&gt;/usr/local/sbin/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, I was wrong. When I upgraded server from R80.10 to R80.20 my script was silently deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where shall I place my scripts so that they are preserved between upgrades?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2018 06:26:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17739#M1153</guid>
      <dc:creator>HristoGrigorov</dc:creator>
      <dc:date>2018-11-19T06:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proper place to put custom scripts</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17740#M1154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Somewhere under your home directory is probably the safest place to put it as it should not be affected by an upgrade.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2018 06:41:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17740#M1154</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2018-11-19T06:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proper place to put custom scripts</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17741#M1155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, /home/bin/ it is then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2018 07:03:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17741#M1155</guid>
      <dc:creator>HristoGrigorov</dc:creator>
      <dc:date>2018-11-19T07:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proper place to put custom scripts</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17742#M1156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It depends. Check via set with paths are defined in your environment. I prefer /usr/local/bin&lt;/SPAN&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 13:59:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17742#M1156</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2018-11-20T13:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proper place to put custom scripts</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17743#M1157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think he said that location got overwritten, thus why I suggested somewhere else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 16:42:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17743#M1157</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2018-11-20T16:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proper place to put custom scripts</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17744#M1158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I just need a path that won't be touched by the upgrade scripts. I vaguely remember according to LSB, /usr/local/bin/ is the right one. Do not like to put executables in home dir but in this case I probably have no other choice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 17:06:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17744#M1158</guid>
      <dc:creator>HristoGrigorov</dc:creator>
      <dc:date>2018-11-20T17:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proper place to put custom scripts</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17745#M1159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The best would be to do deep pre-check before upgrade. Save all custom scripts and cron jobs outside of the machine to be available for all collegues and ready to be put back after upgrade. This is also valid for all .conf and .def files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 19:11:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17745#M1159</guid>
      <dc:creator>JozkoMrkvicka</dc:creator>
      <dc:date>2018-11-20T19:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proper place to put custom scripts</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17746#M1160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our recommendation is to use the Script Repository available in SmartConsole.&lt;/P&gt;&lt;P&gt;As Check Point Objects, they will survive all upgrades.&lt;/P&gt;&lt;P&gt;Later you can run that script on gateways by right-clicking them. You can also run them with the Management API &lt;SPAN style="text-decoration: line-through;"&gt;referring to just the name of the Script object&lt;/SPAN&gt;&amp;nbsp;with the parameters "script-name", representing a title for the script, and "script", representing the script code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="74729" alt="" class="image-3 jive-image j-img-original" src="https://community.checkpoint.com/legacyfs/online/checkpoint/74729_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="74728" alt="" class="image-2 jive-image j-img-original" src="https://community.checkpoint.com/legacyfs/online/checkpoint/74728_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 19:21:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17746#M1160</guid>
      <dc:creator>Tomer_Sole</dc:creator>
      <dc:date>2018-11-20T19:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proper place to put custom scripts</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17747#M1161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like that the most, thanx Tomer. Only need to figure out how to invoke script from Job Scheduler using Management API. Shouldn't be that difficult...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 19:35:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17747#M1161</guid>
      <dc:creator>HristoGrigorov</dc:creator>
      <dc:date>2018-11-20T19:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proper place to put custom scripts</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17748#M1162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the information Tomer. I just created a new SecureKnowledge article with this information, &lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk140852"&gt;sk140852&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2018 10:46:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17748#M1162</guid>
      <dc:creator>Ronen_Zel</dc:creator>
      <dc:date>2018-11-21T10:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proper place to put custom scripts</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17749#M1163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great idea, thanx! Just to mention, there is a small error in SK. Parameter name is "script" and not "script-body".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2018 11:00:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17749#M1163</guid>
      <dc:creator>HristoGrigorov</dc:creator>
      <dc:date>2018-11-21T11:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proper place to put custom scripts</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17750#M1164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry about that, I made the mistake originally in this thread..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2018 11:16:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17750#M1164</guid>
      <dc:creator>Tomer_Sole</dc:creator>
      <dc:date>2018-11-21T11:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proper place to put custom scripts</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17751#M1165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I just fixed the sk. The fixed version should be available within a few minutes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2018 11:58:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17751#M1165</guid>
      <dc:creator>Ronen_Zel</dc:creator>
      <dc:date>2018-11-21T11:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Proper place to put custom scripts</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17752#M1166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you like to share your exprience with running scripts thru the Scrpit Repository your are more than welcome to join my threat:&amp;nbsp;&lt;A href="https://community.checkpoint.com/thread/9899"&gt;SmartConsole Scripts Repository usecases and experience&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.checkpoint.com/legacyfs/online/checkpoint/emoticons/cool.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2018 10:31:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17752#M1166</guid>
      <dc:creator>Sven_Glock</dc:creator>
      <dc:date>2018-11-24T10:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proper place to put custom scripts</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17753#M1167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case you want to invoke job scheduler then I think it is still the best way put it to some /home/ directory and attach job to cron. Just attach it there via&amp;nbsp; WebUI or CLI commands:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;HostName&amp;gt; set cron job JOB_NAME command ... &lt;BR /&gt;HostName&amp;gt; set cron job JOB_NAME recurrence ...&lt;SPAN class="line-numbers-rows"&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;In that case job stay to be scheduled in your configuration file. On the other hand you must still have the script itself backuped somewhere.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me personally it is not a bafd enchancement to have possibility to use Script repository and just schedule same script for example on different firewalls throuh console...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2018 14:40:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/17753#M1167</guid>
      <dc:creator>Petr_Hantak</dc:creator>
      <dc:date>2018-11-26T14:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proper place to put custom scripts</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/111666#M5649</link>
      <description>&lt;P&gt;Make no sense to me put a scripts in the Script Repository and run it with Security Management API calling the script by the name ("script-name" parameter) and still using the "script" parameter (which is required) with the script body. Am I missing something?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 00:25:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Proper-place-to-put-custom-scripts/m-p/111666#M5649</guid>
      <dc:creator>jacneto</dc:creator>
      <dc:date>2021-02-24T00:25:21Z</dc:date>
    </item>
  </channel>
</rss>

