<?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: Mgmti_cli import new hosts to an existing group with csv in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmti-cli-import-new-hosts-to-an-existing-group-with-csv/m-p/108675#M5531</link>
    <description>&lt;P&gt;If this is R80.40 or R81:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#web/add-objects-batch~v1.7" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#web/add-objects-batch~v1.7&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 24 Jan 2021 18:08:26 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2021-01-24T18:08:26Z</dc:date>
    <item>
      <title>Mgmti_cli import new hosts to an existing group with csv</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmti-cli-import-new-hosts-to-an-existing-group-with-csv/m-p/108655#M5527</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to import from a csv with the below format:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;name , ip-address, groups.1&lt;/P&gt;&lt;P&gt;server1, 10.100.12.1, Edge Servers&lt;/P&gt;&lt;P&gt;server2 , 10,100.12.92, Edge Servers&lt;/P&gt;&lt;P&gt;…..&lt;/P&gt;&lt;P&gt;name is the name of the host I want to import, ip-address is the ip of the host , groups.1 is the existing group that I need the new host to be added.&lt;/P&gt;&lt;P&gt;I tried multiple ways to make it happen but nothing worked.&lt;/P&gt;&lt;P&gt;mgmt_cli add host --batch rightone.csv&lt;/P&gt;&lt;P&gt;I received the below messages cause some of the hosts are already saved with other name I suppose.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Line 3xxxx: code: "err_validation_failed"&lt;/P&gt;&lt;P&gt;message: "Validation failed with 1 warning and 1 error"&lt;/P&gt;&lt;P&gt;warnings:&lt;/P&gt;&lt;P&gt;- message: "Multiple objects have the same IP address 10.1.21.82"&lt;/P&gt;&lt;P&gt;errors:&lt;/P&gt;&lt;P&gt;- message: "More than one object named 'server_sql' exists."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What can I do to resolve the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jan 2021 12:26:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmti-cli-import-new-hosts-to-an-existing-group-with-csv/m-p/108655#M5527</guid>
      <dc:creator>Netadmin2020</dc:creator>
      <dc:date>2021-01-24T12:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Mgmti_cli import new hosts to an existing group with csv</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmti-cli-import-new-hosts-to-an-existing-group-with-csv/m-p/108656#M5528</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;you could try adding &lt;SPAN&gt;ignore-warnings, ignore-errors column and set them to true to the csv file.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="table"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="param_key"&gt;&lt;SPAN class="blue"&gt;ignore-warnings&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD class="param_value"&gt;boolean&lt;BR /&gt;&lt;SPAN class="grey"&gt;Default:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="blue"&gt;false&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD class="param_description"&gt;&lt;SPAN class="description to_check_for_rewrite"&gt;Apply changes ignoring warnings.&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="param_key"&gt;&lt;SPAN class="blue"&gt;ignore-errors&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD class="param_value"&gt;boolean&lt;BR /&gt;&lt;SPAN class="grey"&gt;Default:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="blue"&gt;false&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD class="param_description"&gt;&lt;SPAN class="description to_check_for_rewrite"&gt;Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Sun, 24 Jan 2021 12:52:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmti-cli-import-new-hosts-to-an-existing-group-with-csv/m-p/108656#M5528</guid>
      <dc:creator>funkylicious</dc:creator>
      <dc:date>2021-01-24T12:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Mgmti_cli import new hosts to an existing group with csv</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmti-cli-import-new-hosts-to-an-existing-group-with-csv/m-p/108657#M5529</link>
      <description>&lt;P&gt;I don't want to import duplicated hosts, If it is possible hosts that already exists imported to my group with their current name.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jan 2021 12:51:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmti-cli-import-new-hosts-to-an-existing-group-with-csv/m-p/108657#M5529</guid>
      <dc:creator>Netadmin2020</dc:creator>
      <dc:date>2021-01-24T12:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Mgmti_cli import new hosts to an existing group with csv</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmti-cli-import-new-hosts-to-an-existing-group-with-csv/m-p/108658#M5530</link>
      <description>&lt;P&gt;i think that you would need to sanitize the batch file with everything that's already created&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jan 2021 13:06:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmti-cli-import-new-hosts-to-an-existing-group-with-csv/m-p/108658#M5530</guid>
      <dc:creator>funkylicious</dc:creator>
      <dc:date>2021-01-24T13:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Mgmti_cli import new hosts to an existing group with csv</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmti-cli-import-new-hosts-to-an-existing-group-with-csv/m-p/108675#M5531</link>
      <description>&lt;P&gt;If this is R80.40 or R81:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#web/add-objects-batch~v1.7" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#web/add-objects-batch~v1.7&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jan 2021 18:08:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmti-cli-import-new-hosts-to-an-existing-group-with-csv/m-p/108675#M5531</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-01-24T18:08:26Z</dc:date>
    </item>
  </channel>
</rss>

