<?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: Max file size to import in Command Line in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Max-file-size-to-import-in-Command-Line/m-p/151865#M6934</link>
    <description>&lt;P&gt;Any time, happy to help!&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jun 2022 15:40:36 GMT</pubDate>
    <dc:creator>the_rock</dc:creator>
    <dc:date>2022-06-27T15:40:36Z</dc:date>
    <item>
      <title>Max file size to import in Command Line</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Max-file-size-to-import-in-Command-Line/m-p/151739#M6923</link>
      <description>&lt;P&gt;I am trying to create a many hosts using command line&amp;nbsp; scripting, as there is a limit when pasting the commands I am using the open file feature. The problem is when selected the message&amp;nbsp; "The file is too big and cannot be loaded" is presented. Does anybody know what is the size limit I can import in?? It seems it is not very large at all, not really helpful. I had to split my file in ten smaller parts. The original file's size is 99kb.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChecpointCommandLine.jpg" style="width: 680px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/17036i8240F4279189541F/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChecpointCommandLine.jpg" alt="ChecpointCommandLine.jpg" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 18:30:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Max-file-size-to-import-in-Command-Line/m-p/151739#M6923</guid>
      <dc:creator>Emilio_Espinosa</dc:creator>
      <dc:date>2022-06-24T18:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Max file size to import in Command Line</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Max-file-size-to-import-in-Command-Line/m-p/151771#M6924</link>
      <description>&lt;P&gt;I believe its 64 kb.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jun 2022 04:15:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Max-file-size-to-import-in-Command-Line/m-p/151771#M6924</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2022-06-25T04:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Max file size to import in Command Line</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Max-file-size-to-import-in-Command-Line/m-p/151784#M6925</link>
      <description>&lt;P&gt;Anything more than a few hundred lines will probably fail.&lt;BR /&gt;Further, making that many changes without a publish will take a long time and/or fail.&lt;/P&gt;
&lt;P&gt;Better to use mgmt_cli to do this as described here:&amp;nbsp;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk113078" target="_blank"&gt;https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk113078&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;You will likely have to break the file up into several chunks if you use this approach.&lt;BR /&gt;You might see better performance (and be able to do more objects at once) using add objects-batch in R80.40 and above:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/add-objects-batch~v1.6%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/add-objects-batch~v1.6%20&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jun 2022 17:04:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Max-file-size-to-import-in-Command-Line/m-p/151784#M6925</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2022-06-25T17:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Max file size to import in Command Line</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Max-file-size-to-import-in-Command-Line/m-p/151849#M6928</link>
      <description>&lt;P&gt;Yes, indeed, I had to discard about 1900 changes because Smartconsole fail to publish the changes due to disconnection to Smart-1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try to use instead CSV files, haven't done this option in the past.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But what is worth to mention in the SKs&amp;nbsp; is the max limits to import. I have to create near 3,000 hosts to block because out financial authorities suggest to do it as they have been detected to use port scanning tools.&lt;/P&gt;&lt;P&gt;Even with such options to add hosts as a CSV batch or clish, will take a while to do the work and still, need to find out the limits in order to avoid failures. Is there any command to publish changes in clish mode? This will help to do so, I think.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 14:53:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Max-file-size-to-import-in-Command-Line/m-p/151849#M6928</guid>
      <dc:creator>Emilio_Espinosa</dc:creator>
      <dc:date>2022-06-27T14:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Max file size to import in Command Line</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Max-file-size-to-import-in-Command-Line/m-p/151850#M6929</link>
      <description>&lt;P&gt;You are right, yes, it is a lot of work. This is what TAC gave me back in December 2020 and I did it few times and works really well. Again, not a script, but I like this method.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;U&gt;---&amp;gt;To add address-range via API&lt;/U&gt;&lt;/EM&gt;&lt;/STRONG&gt;:&lt;BR /&gt;mgmt_cli add address-range --batch address-ranges_full.csv&lt;BR /&gt;&lt;BR /&gt;#cat address-ranges_full.csv&lt;BR /&gt;name,ip-address-first,ip-address-last&lt;BR /&gt;range1,10.0.0.0,10.0.0.100&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;U&gt;---&amp;gt; To add a network via API:&lt;/U&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;mgmt_cli add network --batch networks.csv&lt;BR /&gt;&lt;BR /&gt;#cat networks.csv&lt;BR /&gt;name,subnet,subnet-mask&lt;BR /&gt;network1,10.10.10.0,255.255.255.0&lt;BR /&gt;network2,20.20.20.0,255.255.255.0&lt;BR /&gt;network3,30.30.30.0,255.255.255.0&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;U&gt;---&amp;gt; To add a host&amp;nbsp;&lt;/U&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;mgmt_cli add host --batch test.csv&lt;BR /&gt;&lt;BR /&gt;#cat test.csv&lt;BR /&gt;name,ip-address&lt;BR /&gt;obj1,192.168.1.1&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 14:54:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Max-file-size-to-import-in-Command-Line/m-p/151850#M6929</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2022-06-27T14:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Max file size to import in Command Line</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Max-file-size-to-import-in-Command-Line/m-p/151857#M6930</link>
      <description>&lt;P&gt;How fast is this option against clish commands? Does it accept more "lines" too?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 15:12:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Max-file-size-to-import-in-Command-Line/m-p/151857#M6930</guid>
      <dc:creator>Emilio_Espinosa</dc:creator>
      <dc:date>2022-06-27T15:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Max file size to import in Command Line</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Max-file-size-to-import-in-Command-Line/m-p/151858#M6931</link>
      <description>&lt;P&gt;I checked my notes and see back in Feb 2021 I did it in my lab with 3255 lines and worked fine, no issues. I dont know if there is a limit, first, cause I never asked and second, customer only needed about 450 entries : - )&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 15:14:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Max-file-size-to-import-in-Command-Line/m-p/151858#M6931</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2022-06-27T15:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Max file size to import in Command Line</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Max-file-size-to-import-in-Command-Line/m-p/151861#M6932</link>
      <description>&lt;P&gt;This is the sk I meant to send. This does not mention any limits anywhere that I can see.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?action=portlets.SearchResultMainAction&amp;amp;eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk113078" target="_blank"&gt;How to import multiple objects into the R8x.x Management database using a .csv file (checkpoint.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 15:21:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Max-file-size-to-import-in-Command-Line/m-p/151861#M6932</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2022-06-27T15:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Max file size to import in Command Line</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Max-file-size-to-import-in-Command-Line/m-p/151863#M6933</link>
      <description>&lt;P&gt;3255 lines?, works for me.&lt;/P&gt;&lt;P&gt;Thanks for your feedback!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 15:37:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Max-file-size-to-import-in-Command-Line/m-p/151863#M6933</guid>
      <dc:creator>Emilio_Espinosa</dc:creator>
      <dc:date>2022-06-27T15:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Max file size to import in Command Line</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Max-file-size-to-import-in-Command-Line/m-p/151865#M6934</link>
      <description>&lt;P&gt;Any time, happy to help!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 15:40:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Max-file-size-to-import-in-Command-Line/m-p/151865#M6934</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2022-06-27T15:40:36Z</dc:date>
    </item>
  </channel>
</rss>

