<?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: Find host objects that share the same IP-address / Duplicate objects (bash script) in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Find-host-objects-that-share-the-same-IP-address-Duplicate/m-p/39078#M2425</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey there , any feedback on the use of that script? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Feb 2019 08:36:54 GMT</pubDate>
    <dc:creator>Marco_Valenti</dc:creator>
    <dc:date>2019-02-13T08:36:54Z</dc:date>
    <item>
      <title>Find host objects that share the same IP-address / Duplicate objects (bash script)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Find-host-objects-that-share-the-same-IP-address-Duplicate/m-p/39075#M2422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H2 style="color: #000000;"&gt;Overview&lt;/H2&gt;&lt;P style="color: #333333;"&gt;List all host objects that share the same IP-address&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2 style="color: #000000;"&gt;Description&lt;/H2&gt;&lt;P style="color: #333333;"&gt;A bash script that uses a Check Point package that handles all the communication with the Check Point management server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2 style="color: #000000;"&gt;Instructions&lt;/H2&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;Attaching two different scripts that do the same thing. Which one is better and easier to &lt;/SPAN&gt;understand? I don't know&lt;SPAN style="line-height: 1.5;"&gt;...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; line-height: 1.5;"&gt;Let me know which one do you prefer? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;A short script with more "tricks" in it or a longer &lt;/SPAN&gt;straight&lt;SPAN style="line-height: 1.5;"&gt; forward script&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333;"&gt;&lt;/P&gt;&lt;H2 style="color: #000000;"&gt;Code Version&lt;/H2&gt;&lt;P style="color: #333333;"&gt;Code version 1.0.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2 style="color: #000000;"&gt;Tested on version&lt;/H2&gt;&lt;P style="color: #333333;"&gt;R80, API version 1.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 13px; color: #ff0000;"&gt;&lt;STRONG&gt;NOTICE: &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.6667px; color: #999999;"&gt;&lt;STRONG&gt;By using this sample code you agree to terms and conditions in this &lt;A href="https://community.checkpoint.com/docs/DOC-1042"&gt;Terms and Conditions&lt;/A&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 15:42:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Find-host-objects-that-share-the-same-IP-address-Duplicate/m-p/39075#M2422</guid>
      <dc:creator>Uri_Bialik</dc:creator>
      <dc:date>2015-12-23T15:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Find host objects that share the same IP-address / Duplicate objects (bash script)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Find-host-objects-that-share-the-same-IP-address-Duplicate/m-p/39076#M2423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Great Script, can you also add "duplicate object" in your title, it took me quite while to search this page.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 09:17:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Find-host-objects-that-share-the-same-IP-address-Duplicate/m-p/39076#M2423</guid>
      <dc:creator>SD_Networking</dc:creator>
      <dc:date>2017-11-14T09:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Find host objects that share the same IP-address / Duplicate objects (bash script)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Find-host-objects-that-share-the-same-IP-address-Duplicate/m-p/39077#M2424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Done &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 09:41:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Find-host-objects-that-share-the-same-IP-address-Duplicate/m-p/39077#M2424</guid>
      <dc:creator>Uri_Bialik</dc:creator>
      <dc:date>2017-11-14T09:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Find host objects that share the same IP-address / Duplicate objects (bash script)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Find-host-objects-that-share-the-same-IP-address-Duplicate/m-p/39078#M2425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey there , any feedback on the use of that script? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2019 08:36:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Find-host-objects-that-share-the-same-IP-address-Duplicate/m-p/39078#M2425</guid>
      <dc:creator>Marco_Valenti</dc:creator>
      <dc:date>2019-02-13T08:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Find host objects that share the same IP-address / Duplicate objects (bash script)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Find-host-objects-that-share-the-same-IP-address-Duplicate/m-p/104983#M5397</link>
      <description>&lt;P&gt;I just tried running this script on my mgmt server R80.40 and it fails with below...not sure why, but it generated couple of files that dont show anything (ip_addresses.txt and host_objects.csv...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Expert@cp-test-mgmt:0]# ./find_dup_ip2.sh&lt;BR /&gt;Please enter your username and password&lt;BR /&gt;Enter username and press [ENTER]: admin&lt;BR /&gt;Enter password and press [ENTER]:&lt;BR /&gt;Failed to parse login output file [id.txt]&lt;BR /&gt;show hosts failed.&lt;BR /&gt;[Expert@cp-test-mgmt:0]#&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 14:12:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Find-host-objects-that-share-the-same-IP-address-Duplicate/m-p/104983#M5397</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2020-12-10T14:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Find host objects that share the same IP-address / Duplicate objects (bash script)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Find-host-objects-that-share-the-same-IP-address-Duplicate/m-p/104987#M5398</link>
      <description>&lt;P&gt;Never mind...layer 8 issue, haha. I tried on different mgmt and worked fine...so probably something wrong on a VM one I tested first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 14:19:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Find-host-objects-that-share-the-same-IP-address-Duplicate/m-p/104987#M5398</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2020-12-10T14:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Find host objects that share the same IP-address / Duplicate objects (bash script)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Find-host-objects-that-share-the-same-IP-address-Duplicate/m-p/131310#M6317</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I cant find the $CPDIR/jp/jp directory.&amp;nbsp; Is this folder not present in a CMA/DOMAIN of a MDS.?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 15:20:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Find-host-objects-that-share-the-same-IP-address-Duplicate/m-p/131310#M6317</guid>
      <dc:creator>Devilmac</dc:creator>
      <dc:date>2021-10-07T15:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Find host objects that share the same IP-address / Duplicate objects (bash script)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Find-host-objects-that-share-the-same-IP-address-Duplicate/m-p/131346#M6321</link>
      <description>&lt;P&gt;hi&lt;BR /&gt;for me, it works on SMS R80.40 but not on MDS R80.40&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;As mentioned in the script&lt;BR /&gt;# relies on having the jq utility &lt;BR /&gt;JQ=${CPDIR}/jq/jq&lt;/P&gt;
&lt;P&gt;which seems to be on a MDS in /opt/CPshrd-R80.40/bin/jq&lt;/P&gt;
&lt;P&gt;I do not see any 'domain' command in the script which I would expect (with my limited API knowledge)&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 08:01:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Find-host-objects-that-share-the-same-IP-address-Duplicate/m-p/131346#M6321</guid>
      <dc:creator>S_E_</dc:creator>
      <dc:date>2021-10-08T08:01:37Z</dc:date>
    </item>
  </channel>
</rss>

