<?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: Can I create duplicate object(Network or Host) using R80.10 API in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3958#M371</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How did you do it exactly? What is the syntax in the csv?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Philipp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Feb 2018 14:54:23 GMT</pubDate>
    <dc:creator>Philipp_Schiff</dc:creator>
    <dc:date>2018-02-22T14:54:23Z</dc:date>
    <item>
      <title>Can I create duplicate object(Network or Host) using R80.10 API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3948#M361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to create a two object with different name but same IP Address using R80.10 API.&lt;/P&gt;&lt;P&gt;When we create host or network object API will do error check for duplicate IP, It will not let us create two object with same IP but different name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i tell API to skip this error check.&lt;/P&gt;&lt;P&gt;Or is there any other way to achieve same?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 07:27:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3948#M361</guid>
      <dc:creator>Ekta_Siwani1</dc:creator>
      <dc:date>2017-07-05T07:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create duplicate object(Network or Host) using R80.10 API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3949#M362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can instruct API to ignore warnings or errors (but not blocking errors) by providing &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;ignore-warnings&lt;/SPAN&gt; or &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;ignore-errors&lt;/SPAN&gt; correspondingly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;[Expert@host]# mgmt_cli -s id.txt add host name abc ip-address 1.1.1.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;[Expert@host]# mgmt_cli -s id.txt add host name abc2 ip-address 1.1.1.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;code: "err_validation_failed"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;message: "Validation failed with 1 warning"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;warnings:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;- message: "Multiple objects have the same IP address 1.1.1.1"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;[Expert@host]# mgmt_cli -s id.txt add host name abc2 ip-address 1.1.1.1 ignore-warnings true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;[Expert@host]#&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#web/add-host~v1.1/request"&gt;Documentation for add-host&lt;/A&gt;&amp;nbsp;(find the fields under "More" section in Request&amp;nbsp;Parameters)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pay attention that in case of ignored errors - you wan't be able to publish!&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 05:38:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3949#M362</guid>
      <dc:creator>Eugene_Grybinny</dc:creator>
      <dc:date>2017-07-06T05:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create duplicate object(Network or Host) using R80.10 API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3950#M363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the comment above from &lt;SPAN class=""&gt;&lt;A _jive_internal="true" class="" data-userid="2061" data-username="eugenec42b033-57fd-4848-b0f6-693de8bba432" href="https://community.checkpoint.com/people/eugenec42b033-57fd-4848-b0f6-693de8bba432"&gt;Eugene Grybinny&lt;/A&gt;&lt;/SPAN&gt; he states that you won't be able to publish with ignored errors; however, this is only the case if the issue generates a validation warning, which should be documented in the failure for the publish operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the generation of an object that duplicates elements of another objects, but is not a 100% clone, there should not be an issue.&amp;nbsp; I've done this when doing exports to CSV files and then importing those CSV files via -batch mode on mgmt_cli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't specify the ignore-warnings or ignore-errors CLI option, a -batch operation may complete, but will not execute the changes/additions of the problem items, which can cause follow-on issues doing multiple import operations in succession.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The utilization of the ignore-warnings and ignore-errors option is especially necessary when working with network and group objects, since Get Interfaces in R80 and later will import the static routes and generate a network object for the interface if there is no existing network object covering the target network, and will group them into a set with static route identified networks to add in the topology configuration.&amp;nbsp; If these Check Point generated groups and networks exist, then not using the ignore options will result in failure to create the item from the API, since those networks already exist in another object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 19:47:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3950#M363</guid>
      <dc:creator>Eric_Beasley</dc:creator>
      <dc:date>2017-07-14T19:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create duplicate object(Network or Host) using R80.10 API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3951#M364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having strange issue "set-if-exists true" doesnt work with batch csv option.&lt;/P&gt;&lt;P&gt;here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mgmt_cli add host set-if-exists true -b hosts2.csv &lt;BR /&gt;Username: admin&lt;BR /&gt;Password: &lt;BR /&gt;Line 2: code: "err_validation_failed"&lt;BR /&gt;message: "Validation failed with 1 warning and 1 error"&lt;BR /&gt;warnings: &lt;BR /&gt;- message: "Multiple objects have the same IP address 192.168.162.18"&lt;BR /&gt;errors: &lt;BR /&gt;- message: "More than one object named 'HGSDPN_VPN_HUDSON5' exists."&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Executed command failed. Changes are discarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;mgmt_cli add host name "HGSDPN_VPN_HUDSON5" ip-address "192.168.162.18" set-if-exists true&lt;BR /&gt;Username: admin&lt;BR /&gt;Password:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;Time: [17:30:52] 7/12/2017&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"Publish operation" succeeded (100%)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any way to fix it ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 14:46:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3951#M364</guid>
      <dc:creator>SD_Networking</dc:creator>
      <dc:date>2017-12-07T14:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create duplicate object(Network or Host) using R80.10 API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3952#M365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add the "ignore-warnings true" option at the end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 15:07:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3952#M365</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2017-12-07T15:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create duplicate object(Network or Host) using R80.10 API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3953#M366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create multiple distinctly named objects with the same IP Address or IP Address range/network; however, you CAN NOT create duplicate objects with the same NAME, which you are trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Object names must be unique within a Domain (e.g. SMS, or single domain on in MDM), so you go the warning (will allow it to pass) on the IP Address; however, the error on the duplicate name terminates the operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric Beasley&lt;/P&gt;&lt;P&gt;Security Engineer, North America Channel Sales&lt;/P&gt;&lt;P&gt;Cell: +1 708-224-7724 E-mail:  ericb@checkpoint.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 04:30:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3953#M366</guid>
      <dc:creator>Eric_Beasley</dc:creator>
      <dc:date>2017-12-08T04:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create duplicate object(Network or Host) using R80.10 API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3954#M367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;He is not creating different objects with the same name, he is using a "set_if_exists" flag, which will update an existing object (with the same name AND TYPY).&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 05:45:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3954#M367</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2017-12-08T05:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create duplicate object(Network or Host) using R80.10 API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3955#M368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response guys, actually it was my mistake i was putting&amp;nbsp;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;set_if_exists in the command but in batch option it has be inside CSV file, it fixed my problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 08:33:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3955#M368</guid>
      <dc:creator>SD_Networking</dc:creator>
      <dc:date>2017-12-08T08:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create duplicate object(Network or Host) using R80.10 API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3956#M369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now i got into new problem&amp;nbsp;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;set_if_exists doesnt exist for creating groups &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://community.checkpoint.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 14:50:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3956#M369</guid>
      <dc:creator>SD_Networking</dc:creator>
      <dc:date>2017-12-08T14:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create duplicate object(Network or Host) using R80.10 API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3957#M370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, it does not.&lt;/P&gt;&lt;P&gt;If you have only few duplicate names, I suggest to redirect the errors to a file, and then handle them manually (use option&amp;nbsp;2&amp;gt;&amp;amp;1).&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Dec 2017 14:53:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3957#M370</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2017-12-10T14:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create duplicate object(Network or Host) using R80.10 API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3958#M371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How did you do it exactly? What is the syntax in the csv?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Philipp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 14:54:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3958#M371</guid>
      <dc:creator>Philipp_Schiff</dc:creator>
      <dc:date>2018-02-22T14:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create duplicate object(Network or Host) using R80.10 API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3959#M372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in CSV file the first line consists of field names. The following lines are the values.&lt;/P&gt;&lt;P&gt;You should add the "&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;set_if_exists" field at the top line, and insert the values per each line in the appropriate location.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;You can edit the file in MS Excel or Notepad++.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;Robert.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 15:10:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/3959#M372</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-02-22T15:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create duplicate object(Network or Host) using R80.10 API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/264163#M9327</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/44"&gt;@Eugene_Grybinny&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Why the command line&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;"mgmt_cli -s id.txt add host name abc2 ip-address 1.1.1.1 ignore-warnings true" works and with batch it doesn't work ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#&amp;nbsp;mgmt_cli&amp;nbsp; add host batch host.csv ignore-warnings true&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;# cat host.csv&lt;/P&gt;&lt;P&gt;name,ip-address&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;abc2 ,1.1.1.1&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 16:11:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/264163#M9327</guid>
      <dc:creator>DZ_KB</dc:creator>
      <dc:date>2025-12-02T16:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create duplicate object(Network or Host) using R80.10 API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/264188#M9328</link>
      <description>&lt;P&gt;Eugene's profile shows as Alumnus. I think he no longer works for Check Point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are you wanting to do?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should work for you:&lt;/P&gt;
&lt;P&gt;mgmt_cli&amp;nbsp; add host --batch &lt;STRONG&gt;hosts.csv&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;hosts.csv&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;name,ip-address,ignore-warnings
host-1,10.0.0.5,true
host-2,10.0.0.6,true
host-3,10.0.0.5,true&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will see the three hosts in the SmartConsole and host-1 and host-3 will both have IP address 10.0.0.5&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to change the existing objects. For example the colour of the object:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;name,ip-address,ignore-warnings,color,set-if-exists
host-1,10.0.0.5,true,Cyan,true
host-2,10.0.0.6,true,Cyan,true
host-3,10.0.0.5,true,Cyan,true&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;set-if-exists true&lt;/STRONG&gt; will effectively change the &lt;STRONG&gt;add&lt;/STRONG&gt;&amp;nbsp;part of the command to a &lt;STRONG&gt;set&lt;/STRONG&gt;&amp;nbsp;so that an existing objects properties are changed (or something like colour added, as shown in the example above).&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 19:14:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/264188#M9328</guid>
      <dc:creator>Don_Paterson</dc:creator>
      <dc:date>2025-12-02T19:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create duplicate object(Network or Host) using R80.10 API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/264750#M9329</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/18248"&gt;@Don_Paterson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This is exactly what i was expecting.&amp;nbsp; (Strong).&lt;/P&gt;&lt;P&gt;I'm now trying to do the same with services but i'm facing a problem when i want to add a service which already exist.I have tried with "no-warnings True " but it does not work.&lt;/P&gt;&lt;P&gt;Do you know hiw to solve this ?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 15:01:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/264750#M9329</guid>
      <dc:creator>DZ_KB</dc:creator>
      <dc:date>2025-12-08T15:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create duplicate object(Network or Host) using R80.10 API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/264762#M9330</link>
      <description>&lt;P&gt;Are you using &lt;STRONG&gt;no-warnings True&lt;/STRONG&gt; or &lt;STRONG&gt;ignore-warnings true&lt;/STRONG&gt;?&lt;/P&gt;
&lt;P&gt;Sounds like you may need to use&amp;nbsp;&lt;STRONG&gt;set-if-exists true &lt;/STRONG&gt;(see example in my last reply and below).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a working example:&lt;/P&gt;
&lt;P&gt;mgmt_cli add service-tcp --batch tcp-services.csv&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;tcp-services.csv&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;name,port,ignore-warnings
http-new-1,80,true
http-new-2,80,true
http-new-3,80,true&lt;/LI-CODE&gt;
&lt;P&gt;That adds new tcp service using port 80&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is an updated&amp;nbsp;&lt;STRONG&gt;tcp-services.csv&lt;/STRONG&gt; and it effectively includes&amp;nbsp;&lt;STRONG&gt;set-if-exists true &lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;name,port,color,ignore-warnings,set-if-exists
http-new-1,80,Olive,true,true
http-new-2,80,Red,true,true
http-new-3,80,Green,true,true&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;There is also the clone option, in case that helps.&lt;/P&gt;
&lt;P&gt;clone service-tcp name "http" new-name "tcp-new-81" port 81 &lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 17:15:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/264762#M9330</guid>
      <dc:creator>Don_Paterson</dc:creator>
      <dc:date>2025-12-08T17:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can I create duplicate object(Network or Host) using R80.10 API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/264791#M9331</link>
      <description>&lt;P&gt;Thanks, &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/18248"&gt;@Don_Paterson&lt;/a&gt;. All good. I tested with the web services too, and it works well.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 07:01:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-create-duplicate-object-Network-or-Host-using-R80-10-API/m-p/264791#M9331</guid>
      <dc:creator>DZ_KB</dc:creator>
      <dc:date>2025-12-09T07:01:57Z</dc:date>
    </item>
  </channel>
</rss>

