<?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: How to import multiple objects using Mgmt_CLI through CSV files in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-import-multiple-objects-using-Mgmt-CLI-through-CSV-files/m-p/223946#M8678</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/80557"&gt;@KeonNg&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you tried in to log the process?&lt;/P&gt;
&lt;P&gt;[--log-file]&lt;BR /&gt;Path to the debugging log file.&lt;BR /&gt;Default {mgmt_cli.log}&lt;BR /&gt;Environment variable: MGMT_CLI_LOG_FILE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Akos&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2024 07:51:28 GMT</pubDate>
    <dc:creator>AkosBakos</dc:creator>
    <dc:date>2024-08-19T07:51:28Z</dc:date>
    <item>
      <title>How to import multiple objects using Mgmt_CLI through CSV files</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-import-multiple-objects-using-Mgmt-CLI-through-CSV-files/m-p/223901#M8673</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying to import hundreds of host object to a group using CSV files via command mgmt_cli. However, most of the time when I try to run the command, and after enter the password, it does not show any output or response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At first I'm thinking whether the files consist of too much of IP list which cause the system hang/fail to process it. Therefore, I break to several files which lesser IP (50 IPs per csv files) and somehow it is working for sometimes but not success all the time. And the weird thing is I do tried to import csv files that consists of IP more than that (about 100+ IPs) and it is import successfully but not success all the time. So that I conclude that might not because of too much of IPs that need to add in the csv files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And when I check on the Smartconsole, I did see the session of Management API changes report is already import all the objects insides. Therefore, currently my work around is after ran the command in CLI to import, then go to Smartconsole and take over the session and publish.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command that I run as below:&lt;/P&gt;&lt;P&gt;dos2unix * *&amp;nbsp;&lt;/P&gt;&lt;P&gt;mgmt_cli add host --batch /home/admin/tmp/xxx.csv&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly please advise for this weird behavior. Any solution for this? Or did I do any steps wrongly?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;LI-PRODUCT title="Quantum Security Management" id="r80-40-smart-1-cloud"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;LI-PRODUCT title="API and CLI Discussion" id="api-cli-discussion"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;LI-PRODUCT title="SmartConsole Extensions" id="smartconsole-extensions"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Keon&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2024 13:04:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-import-multiple-objects-using-Mgmt-CLI-through-CSV-files/m-p/223901#M8673</guid>
      <dc:creator>KeonNg</dc:creator>
      <dc:date>2024-08-17T13:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to import multiple objects using Mgmt_CLI through CSV files</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-import-multiple-objects-using-Mgmt-CLI-through-CSV-files/m-p/223911#M8674</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/80557"&gt;@KeonNg&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you try &lt;EM&gt;#mgmt_cli publish &lt;/EM&gt;command?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/publish~v1.9.1%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/#cli/publish~v1.9.1%20&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I think this is what is missing. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Akos&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2024 12:15:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-import-multiple-objects-using-Mgmt-CLI-through-CSV-files/m-p/223911#M8674</guid>
      <dc:creator>AkosBakos</dc:creator>
      <dc:date>2024-08-18T12:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to import multiple objects using Mgmt_CLI through CSV files</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-import-multiple-objects-using-Mgmt-CLI-through-CSV-files/m-p/223917#M8675</link>
      <description>&lt;P&gt;Hi Akos,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The command supposed to auto publish after it import the object successfully. Please find the attached for the example of success scenario, it won't stuck after entering the password and it will show the progress output and publish.&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;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Keon&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2024 15:29:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-import-multiple-objects-using-Mgmt-CLI-through-CSV-files/m-p/223917#M8675</guid>
      <dc:creator>KeonNg</dc:creator>
      <dc:date>2024-08-18T15:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to import multiple objects using Mgmt_CLI through CSV files</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-import-multiple-objects-using-Mgmt-CLI-through-CSV-files/m-p/223946#M8678</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/80557"&gt;@KeonNg&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you tried in to log the process?&lt;/P&gt;
&lt;P&gt;[--log-file]&lt;BR /&gt;Path to the debugging log file.&lt;BR /&gt;Default {mgmt_cli.log}&lt;BR /&gt;Environment variable: MGMT_CLI_LOG_FILE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Akos&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 07:51:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-import-multiple-objects-using-Mgmt-CLI-through-CSV-files/m-p/223946#M8678</guid>
      <dc:creator>AkosBakos</dc:creator>
      <dc:date>2024-08-19T07:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to import multiple objects using Mgmt_CLI through CSV files</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-import-multiple-objects-using-Mgmt-CLI-through-CSV-files/m-p/223989#M8679</link>
      <description>&lt;P&gt;The only time mgmt_cli will “auto publish” is when used with -r true.&lt;BR /&gt;Otherwise you must use an explicit publish action.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 13:54:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-import-multiple-objects-using-Mgmt-CLI-through-CSV-files/m-p/223989#M8679</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-08-19T13:54:47Z</dc:date>
    </item>
  </channel>
</rss>

