<?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: Mgmt_cli limitation when publishing a large number of newly created objects? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/121167#M5919</link>
    <description>&lt;P&gt;100 changes per publish is recommended.&lt;/P&gt;&lt;P&gt;Same goes for group members.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jun 2021 15:17:11 GMT</pubDate>
    <dc:creator>Robert_Decker1</dc:creator>
    <dc:date>2021-06-14T15:17:11Z</dc:date>
    <item>
      <title>Mgmt_cli limitation when publishing a large number of newly created objects?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/120928#M5908</link>
      <description>&lt;P&gt;Hi CheckMates,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question regarding mgmt_cli and limitation.&lt;/P&gt;&lt;P&gt;Is there a limit when publishing a large amount of newly created objects?&lt;/P&gt;&lt;P&gt;Let´s say you have a script which creates a network group for azure IPs with thousands of network objects.&lt;/P&gt;&lt;P&gt;Updatable objects is not an option -&amp;gt; 1400 appliances.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings from Austria.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 09:24:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/120928#M5908</guid>
      <dc:creator>FK</dc:creator>
      <dc:date>2021-06-11T09:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Mgmt_cli limitation when publishing a large number of newly created objects?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/120941#M5910</link>
      <description>&lt;P&gt;You need to mind API time out error, which is 10 min by default. If you push a long list of objects, and the command takes more than 10 minutes to post, API will return an error. The best practice is to push in smaller portions, multiple times. If each POST is short enough, you should be okay.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 12:29:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/120941#M5910</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2021-06-11T12:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Mgmt_cli limitation when publishing a large number of newly created objects?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/120976#M5911</link>
      <description>&lt;P&gt;The more changes you try to publish at the same time, the longer the process will take.&lt;BR /&gt;If you’re making a bunch of changes at once, it’s generally recommended to publish every few hundred changes or so.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 20:22:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/120976#M5911</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-06-11T20:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Mgmt_cli limitation when publishing a large number of newly created objects?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/121035#M5912</link>
      <description>&lt;P&gt;Is there some easy way how to force publish to be done once number of XY changes were done in one session ?&lt;/P&gt;
&lt;P&gt;For example, I want to automatically publish 50 changes if performed in the same session.&lt;/P&gt;
&lt;P&gt;If I did 160 changes in the same session, the first publish will be done after first 50 changes, next publish after next 50 changes (100 changes already done). The last 10 changes will be handled by "manual" publish.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jun 2021 21:01:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/121035#M5912</guid>
      <dc:creator>JozkoMrkvicka</dc:creator>
      <dc:date>2021-06-12T21:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mgmt_cli limitation when publishing a large number of newly created objects?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/121036#M5913</link>
      <description>&lt;P&gt;On the API side of things? No.&lt;BR /&gt;You would have to handle that in the logic of your script.&lt;BR /&gt;You can commit with each mgmt_cli invocation by using -r true, however that incurs a lot of extra overhead (login/do/commit/logout with each command).&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jun 2021 22:42:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/121036#M5913</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-06-12T22:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mgmt_cli limitation when publishing a large number of newly created objects?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/121072#M5916</link>
      <description>&lt;P&gt;I would seriously consider upgrading the gateways to newer hardware (1500 appliances) in order to use the Azure Updatable Objects.&lt;/P&gt;
&lt;P&gt;For anyone that is coming across this thread, it's a simple as choosing it in the Access policy:&lt;/P&gt;
&lt;DIV id="tinyMceEditor_c45a77722c266cTomer_Noy_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Azure Updatable Objects.png" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/12140iAA1A6EB8D1D94F25/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Azure Updatable Objects.png" alt="Azure Updatable Objects.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Filling your management with thousands of network objects and huge network groups isn't good practice and might introduce future slowness in some scenarios beyond the challenge of the initial publish via API.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jun 2021 14:54:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/121072#M5916</guid>
      <dc:creator>Tomer_Noy</dc:creator>
      <dc:date>2021-06-13T14:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Mgmt_cli limitation when publishing a large number of newly created objects?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/121117#M5918</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for inputs.&lt;/P&gt;&lt;P&gt;I will try to seperate it into smaller groups per publish.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings.&lt;/P&gt;&lt;P&gt;Fabian&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 08:15:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/121117#M5918</guid>
      <dc:creator>FK</dc:creator>
      <dc:date>2021-06-14T08:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Mgmt_cli limitation when publishing a large number of newly created objects?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/121167#M5919</link>
      <description>&lt;P&gt;100 changes per publish is recommended.&lt;/P&gt;&lt;P&gt;Same goes for group members.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 15:17:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/121167#M5919</guid>
      <dc:creator>Robert_Decker1</dc:creator>
      <dc:date>2021-06-14T15:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Mgmt_cli limitation when publishing a large number of newly created objects?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/121169#M5920</link>
      <description>&lt;P&gt;Thanks for this info.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 15:21:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/121169#M5920</guid>
      <dc:creator>FK</dc:creator>
      <dc:date>2021-06-14T15:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Mgmt_cli limitation when publishing a large number of newly created objects?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/121342#M5922</link>
      <description>&lt;P&gt;This complicates rollbacks and revision control however. Not sure there is a great solution with the time it takes in general to communitate with the API on larger installations / changes&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 10:02:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/121342#M5922</guid>
      <dc:creator>Henrik_Noerr1</dc:creator>
      <dc:date>2021-06-16T10:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Mgmt_cli limitation when publishing a large number of newly created objects?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/121345#M5923</link>
      <description>&lt;P&gt;One solution is to increase the timeout on Apache server from default 10 minutes.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 10:09:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/121345#M5923</guid>
      <dc:creator>Robert_Decker1</dc:creator>
      <dc:date>2021-06-16T10:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Mgmt_cli limitation when publishing a large number of newly created objects?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/131830#M6335</link>
      <description>&lt;P&gt;How to achieve that ? Could not find it in&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;/opt/CPshrd-R81/web/Apache/conf/cp-httpd.conf&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 11:04:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/131830#M6335</guid>
      <dc:creator>G_W_Albrecht</dc:creator>
      <dc:date>2021-10-15T11:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Mgmt_cli limitation when publishing a large number of newly created objects?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/131880#M6340</link>
      <description>&lt;P&gt;Hi, In addition to all good recommendations you have received in terms of publishing 100 changes and&amp;nbsp; upgrade the hardware to be able to use updateable objects, I would like to point you to add/set/delete-object-batch&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/add-objects-batch~v1.8%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/add-objects-batch~v1.8%20&lt;/A&gt;&amp;nbsp;wich are API endpoints that where added in R80.40.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Batch API Significantly increase API performance in multiple object operations (add/set/delete).&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Object creation time reduced by up to 92% when compared to adding one-by-one*&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Object deletion time reduced by up to 87% when compared to deleting one-by-one*&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;*In the tested scenario of adding and deleting 256 hosts objects.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Commands: &lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; add-objects-batch&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set-objects-batch&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delete-objects-batch&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Here is an example of adding 250 hosts objects&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/checkpointsw-devsec/chkp_api_examples/blob/master/mgmt_cli/mgmt_api_add-objects-batch.sh" target="_blank"&gt;https://github.com/checkpointsw-devsec/chkp_api_examples/blob/master/mgmt_cli/mgmt_api_add-objects-batch.sh&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;here is an example of deleting host patterns&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-to-delete-all-objects-matching-a-pattern/td-p/75217" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-to-delete-all-objects-matching-a-pattern/td-p/75217&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please note that usually when&amp;nbsp;&lt;SPAN&gt;calling mgmt_cli with credentials (without doin a explicit login) results in four different operations including Publish.&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;login&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;make change&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;publish&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;logout&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Using the object-batch operation with mgmt_cli require you to do a explicit publish.&lt;/P&gt;
&lt;P&gt;You can pobrobly be able to make more that hundred changes when using object-batch operation with out hitting any time out value as mentioned by Val, but the exact limit is dependent of your environment I suggest that you test with different number of changes in order to get to a value that suitable for your scenario.&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Sun, 17 Oct 2021 05:39:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-limitation-when-publishing-a-large-number-of-newly/m-p/131880#M6340</guid>
      <dc:creator>Jim_Oqvist</dc:creator>
      <dc:date>2021-10-17T05:39:53Z</dc:date>
    </item>
  </channel>
</rss>

