<?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 API - Adding network objects with the same IP than others already created in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/49161#M3227</link>
    <description>&lt;P&gt;HI!&lt;/P&gt;&lt;P&gt;I am trying to create network objects in a checkpoint due to a migration. As in ASA we could have created objects with the same network range(duplicated objects), I am having several problems to migrate it succesfully.&lt;/P&gt;&lt;P&gt;I am using a csv file in which I have included the objects with the syntax that Checkpoint allows. I use the following command:&lt;/P&gt;&lt;P&gt;mgmt_cli add network -r true --batch prueba.csv -d IBDL_CALES&lt;/P&gt;&lt;P&gt;I have also added the ignore-warnings field, ignore-errors and set-if-exists fields but none of them let me create the object that has the same IP or IP range than the ones that are created in the Checkpoint. The output I get is the following:&lt;/P&gt;&lt;P&gt;Line 2: code: "err_validation_failed"&lt;BR /&gt;message: "Validation failed with 1 warning"&lt;BR /&gt;warnings:&lt;BR /&gt;- message: "More than one network have the same IP x.x.x.x/y.y.y.y"&lt;/P&gt;&lt;P&gt;Does Any of you know how to supress that warnings and create that duplicated objects?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's important to me creating them because they are a lot of objects(I have the same problem ith the hosts) and then We want to migrate the policies too and we must have the same objects than in the ASA.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Mar 2019 11:54:58 GMT</pubDate>
    <dc:creator>DPB_Point</dc:creator>
    <dc:date>2019-03-29T11:54:58Z</dc:date>
    <item>
      <title>API - Adding network objects with the same IP than others already created</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/49161#M3227</link>
      <description>&lt;P&gt;HI!&lt;/P&gt;&lt;P&gt;I am trying to create network objects in a checkpoint due to a migration. As in ASA we could have created objects with the same network range(duplicated objects), I am having several problems to migrate it succesfully.&lt;/P&gt;&lt;P&gt;I am using a csv file in which I have included the objects with the syntax that Checkpoint allows. I use the following command:&lt;/P&gt;&lt;P&gt;mgmt_cli add network -r true --batch prueba.csv -d IBDL_CALES&lt;/P&gt;&lt;P&gt;I have also added the ignore-warnings field, ignore-errors and set-if-exists fields but none of them let me create the object that has the same IP or IP range than the ones that are created in the Checkpoint. The output I get is the following:&lt;/P&gt;&lt;P&gt;Line 2: code: "err_validation_failed"&lt;BR /&gt;message: "Validation failed with 1 warning"&lt;BR /&gt;warnings:&lt;BR /&gt;- message: "More than one network have the same IP x.x.x.x/y.y.y.y"&lt;/P&gt;&lt;P&gt;Does Any of you know how to supress that warnings and create that duplicated objects?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's important to me creating them because they are a lot of objects(I have the same problem ith the hosts) and then We want to migrate the policies too and we must have the same objects than in the ASA.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 11:54:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/49161#M3227</guid>
      <dc:creator>DPB_Point</dc:creator>
      <dc:date>2019-03-29T11:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: API - Adding network objects with the same IP than others already created</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/49180#M3230</link>
      <description>Just to clarify, you have an object that covers x.y.z.w/a.b.c.d and want to create another with a different name?&lt;BR /&gt;Are you adding set-of-exists true to your CLI command or the CSV?</description>
      <pubDate>Fri, 29 Mar 2019 13:55:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/49180#M3230</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-03-29T13:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: API - Adding network objects with the same IP than others already created</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/49184#M3233</link>
      <description>add this to your command 'ignore-warnings true ignore-errors true'&lt;BR /&gt;&lt;BR /&gt;That will ignore the errors...</description>
      <pubDate>Fri, 29 Mar 2019 14:03:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/49184#M3233</guid>
      <dc:creator>Adam_Forester</dc:creator>
      <dc:date>2019-03-29T14:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: API - Adding network objects with the same IP than others already created</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/49186#M3234</link>
      <description>set-if-exists will update the object not create a second one. If he is trying to create different named objects but same subnet it would just update the name.</description>
      <pubDate>Fri, 29 Mar 2019 14:14:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/49186#M3234</guid>
      <dc:creator>Adam_Forester</dc:creator>
      <dc:date>2019-03-29T14:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: API - Adding network objects with the same IP than others already created</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/49404#M3240</link>
      <description>&lt;P&gt;As I have mentioned before, I have already tried to put that ignore errors field and the warnings field and I continue receiving the following error:&lt;/P&gt;&lt;P&gt;Line 2: code: "err_validation_failed"&lt;BR /&gt;message: "Validation failed with 1 warning"&lt;BR /&gt;warnings:&lt;BR /&gt;- message: "More than one network have the same IP x.x.x.x/y.y.y.y"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Executed command failed. Changes are discarded.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 06:59:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/49404#M3240</guid>
      <dc:creator>DPB_Point</dc:creator>
      <dc:date>2019-04-01T06:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: API - Adding network objects with the same IP than others already created</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/49405#M3241</link>
      <description>&lt;P&gt;I have just found out how to solve it. The problem was that it's compulsory to include it in the csv file as a field and you can't type it as a field in the mgmt_cli command.&lt;/P&gt;&lt;P&gt;Thanks for the support!!!&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 07:10:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/49405#M3241</guid>
      <dc:creator>DPB_Point</dc:creator>
      <dc:date>2019-04-01T07:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: API - Adding network objects with the same IP than others already created</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/52091#M3379</link>
      <description>&lt;P&gt;Hello &lt;A href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/21783" target="_self"&gt;DPB_Point&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is the exact syntax in csv file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to put ignore_warnings ignore_errors, ignore-warnings, ignore-errors in the first line, but still giving an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;error message:&lt;/P&gt;&lt;P&gt;Line 4: code: "err_validation_failed"&lt;BR /&gt;message: "Validation failed with 1 warning"&lt;BR /&gt;warnings:&lt;BR /&gt;- message: "Multiple objects have the same IP address 1.1.1.3"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Executed command failed. Changes are discarded.&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;Marko&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 06:24:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/52091#M3379</guid>
      <dc:creator>Marko_Grmek</dc:creator>
      <dc:date>2019-04-29T06:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: API - Adding network objects with the same IP than others already created</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/58840#M3729</link>
      <description>This is not what I am noticing. This is what I am seeing:&lt;BR /&gt;Created Test-1( 1.1.1.0 /24) using Smartconsole CLI like this :&lt;BR /&gt;&amp;gt; add network name Test-1 subnet 1.1.1.0 subnet-mask 255.255.255.0 color blue&lt;BR /&gt;Published the change.&lt;BR /&gt;Then did this, expecting the name will change:&lt;BR /&gt;&amp;gt; add network name Test-2 subnet 1.1.1.0 subnet-mask 255.255.255.0 color blue set-if-exits true ignore-warnings true ignore-errors true&lt;BR /&gt;But it did create two objects "Test-1" and "Test-2" with same network 1.1.1.0/24&lt;BR /&gt;&lt;BR /&gt;Can you please guide me? My API version is 1.1&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 23 Jul 2019 18:29:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/58840#M3729</guid>
      <dc:creator>venkata_marutur</dc:creator>
      <dc:date>2019-07-23T18:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: API - Adding network objects with the same IP than others already created</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/58843#M3730</link>
      <description>set-if-exists true will only work if you create an object with the same name, not if you create an object with a different name for the same IP.&lt;BR /&gt;Further, you suppressed knowledge of this with ignore-warnings true, which should have prevented you from doing that.&lt;BR /&gt;&lt;BR /&gt;This is expected behavior.</description>
      <pubDate>Tue, 23 Jul 2019 19:35:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/58843#M3730</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-07-23T19:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: API - Adding network objects with the same IP than others already created</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/58846#M3731</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So, what should I do if I want to "Create a new object with an IP but just edit the name and parameters like comments and color if another object with that IP does exist"? Or in other words how do I make "set-if-exists" to look for IP address instead of name?&lt;BR /&gt;Thanks in advance!</description>
      <pubDate>Tue, 23 Jul 2019 19:58:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/58846#M3731</guid>
      <dc:creator>venkata_marutur</dc:creator>
      <dc:date>2019-07-23T19:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: API - Adding network objects with the same IP than others already created</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/58847#M3732</link>
      <description>&lt;P&gt;I’m going to send you a direct message and we can work through this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 20:02:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/58847#M3732</guid>
      <dc:creator>Adam_Forester</dc:creator>
      <dc:date>2019-07-23T20:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: API - Adding network objects with the same IP than others already created</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/264153#M9326</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm not sure to understand. Can you please share the csv file and the&amp;nbsp; command that you have passed ?&lt;/P&gt;&lt;P&gt;thx a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 15:27:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Adding-network-objects-with-the-same-IP-than-others-already/m-p/264153#M9326</guid>
      <dc:creator>DZ_KB</dc:creator>
      <dc:date>2025-12-02T15:27:08Z</dc:date>
    </item>
  </channel>
</rss>

