<?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 Delete Unused Hosts, Networks, and Groups (R80.10 SMS &amp; MDS) in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Delete-Unused-Hosts-Networks-and-Groups-R80-10-SMS-MDS/m-p/40037#M2592</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px;"&gt;V2 **Updated to support object databases of any size**&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;V3&amp;nbsp;&lt;/SPAN&gt;**Added Separate scripts for MDS Support**&amp;nbsp;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px;"&gt;V4 **Combined MDS and SMS into a single script. Export now creates a single file instead of two. **&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px;"&gt;NOTE: The larger the object database the more time this takes to run.&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px;"&gt;This is a simple shell script that will allow you to parse a particular object database for unused objects. The results will be output into three files of mgmt_cli commands to delete those objects (Host, Network, Group). You could&amp;nbsp;use those files to automatically delete the&amp;nbsp;objects but I suggest reviewing anything before you delete rules. Both SMS and MDS are supported in the same script.&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #24292e; margin-bottom: 16px;"&gt;You have two options of use; NAME or UID.&lt;/P&gt;&lt;H2 style="color: #24292e; border-bottom: 1px solid #eaecef; font-weight: 600; font-size: 1.5em; margin-top: 24px; margin-bottom: 16px; padding-bottom: 0.3em;"&gt;Please be careful when using any API tool to modify your database. Be sure to verify all data and have Backups&lt;/H2&gt;&lt;H2 style="color: #24292e; border-bottom: 1px solid #eaecef; font-weight: 600; font-size: 1.5em; margin-top: 24px; margin-bottom: 16px; padding-bottom: 0.3em;"&gt;How to use&lt;/H2&gt;&lt;UL style="color: #24292e; margin-bottom: 0px !important; padding-left: 2em;"&gt;&lt;LI&gt;cp script over to mgmt station (this script is intended to run directly on the mgmt station)&lt;/LI&gt;&lt;LI style="margin-top: 0.25em;"&gt;execute ./script-name.sh&lt;UL style="padding-left: 2em;"&gt;&lt;LI&gt;script will ask for IP of SMS or Domain of MDS you wish to search&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0.25em;"&gt;Output will be in delete-unused-objects.txt&lt;UL style="padding-left: 2em;"&gt;&lt;LI&gt;delete-unused-objects.txt will have the mgmt_cli commands for deletion. If you want to execute it do the following;&lt;UL style="padding-left: 2em;"&gt;&lt;LI&gt;chmod 755 delete-unused-objects.txt&lt;/LI&gt;&lt;LI style="margin-top: 0.25em;"&gt;./delete-unused-objects.txt&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;EM&gt;Original files on github:&amp;nbsp;&lt;A class="link-titled" href="https://github.com/cpmidsouth/Delete-Unused-Objects" title="https://github.com/cpmidsouth/Delete-Unused-Objects"&gt;GitHub - cpmidsouth/Delete-Unused-Objects: This Script will seach the object database for Unused Objects and output a de…&lt;/A&gt;&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px;"&gt;Feedback welcome this was a simple project that came out of a client request.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 03 Mar 2018 20:44:30 GMT</pubDate>
    <dc:creator>Adam_Forester</dc:creator>
    <dc:date>2018-03-03T20:44:30Z</dc:date>
    <item>
      <title>Delete Unused Hosts, Networks, and Groups (R80.10 SMS &amp; MDS)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Delete-Unused-Hosts-Networks-and-Groups-R80-10-SMS-MDS/m-p/40037#M2592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px;"&gt;V2 **Updated to support object databases of any size**&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;V3&amp;nbsp;&lt;/SPAN&gt;**Added Separate scripts for MDS Support**&amp;nbsp;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px;"&gt;V4 **Combined MDS and SMS into a single script. Export now creates a single file instead of two. **&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px;"&gt;NOTE: The larger the object database the more time this takes to run.&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px;"&gt;This is a simple shell script that will allow you to parse a particular object database for unused objects. The results will be output into three files of mgmt_cli commands to delete those objects (Host, Network, Group). You could&amp;nbsp;use those files to automatically delete the&amp;nbsp;objects but I suggest reviewing anything before you delete rules. Both SMS and MDS are supported in the same script.&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #24292e; margin-bottom: 16px;"&gt;You have two options of use; NAME or UID.&lt;/P&gt;&lt;H2 style="color: #24292e; border-bottom: 1px solid #eaecef; font-weight: 600; font-size: 1.5em; margin-top: 24px; margin-bottom: 16px; padding-bottom: 0.3em;"&gt;Please be careful when using any API tool to modify your database. Be sure to verify all data and have Backups&lt;/H2&gt;&lt;H2 style="color: #24292e; border-bottom: 1px solid #eaecef; font-weight: 600; font-size: 1.5em; margin-top: 24px; margin-bottom: 16px; padding-bottom: 0.3em;"&gt;How to use&lt;/H2&gt;&lt;UL style="color: #24292e; margin-bottom: 0px !important; padding-left: 2em;"&gt;&lt;LI&gt;cp script over to mgmt station (this script is intended to run directly on the mgmt station)&lt;/LI&gt;&lt;LI style="margin-top: 0.25em;"&gt;execute ./script-name.sh&lt;UL style="padding-left: 2em;"&gt;&lt;LI&gt;script will ask for IP of SMS or Domain of MDS you wish to search&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0.25em;"&gt;Output will be in delete-unused-objects.txt&lt;UL style="padding-left: 2em;"&gt;&lt;LI&gt;delete-unused-objects.txt will have the mgmt_cli commands for deletion. If you want to execute it do the following;&lt;UL style="padding-left: 2em;"&gt;&lt;LI&gt;chmod 755 delete-unused-objects.txt&lt;/LI&gt;&lt;LI style="margin-top: 0.25em;"&gt;./delete-unused-objects.txt&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;EM&gt;Original files on github:&amp;nbsp;&lt;A class="link-titled" href="https://github.com/cpmidsouth/Delete-Unused-Objects" title="https://github.com/cpmidsouth/Delete-Unused-Objects"&gt;GitHub - cpmidsouth/Delete-Unused-Objects: This Script will seach the object database for Unused Objects and output a de…&lt;/A&gt;&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px;"&gt;Feedback welcome this was a simple project that came out of a client request.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2018 20:44:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Delete-Unused-Hosts-Networks-and-Groups-R80-10-SMS-MDS/m-p/40037#M2592</guid>
      <dc:creator>Adam_Forester</dc:creator>
      <dc:date>2018-03-03T20:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Unused Hosts, Networks, and Groups (R80.10 SMS &amp; MDS)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Delete-Unused-Hosts-Networks-and-Groups-R80-10-SMS-MDS/m-p/40038#M2593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is really nice script. I have run this in my LAB and tested.&lt;/P&gt;&lt;P&gt;Please let me know if we can do the same thing with Unused Rules. A script which shows names of Unused Rules.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2018 17:48:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Delete-Unused-Hosts-Networks-and-Groups-R80-10-SMS-MDS/m-p/40038#M2593</guid>
      <dc:creator>Gaurav_Pandya</dc:creator>
      <dc:date>2018-03-05T17:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Unused Hosts, Networks, and Groups (R80.10 SMS &amp; MDS)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Delete-Unused-Hosts-Networks-and-Groups-R80-10-SMS-MDS/m-p/40039#M2594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gaurav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the nice comment. I did a script a couple weeks ago that would search the rulebase for zero hit count. Take a look at it:&amp;nbsp;&lt;A href="https://community.checkpoint.com/docs/DOC-2640" target="_blank"&gt;https://community.checkpoint.com/docs/DOC-2640&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on v3 to be a bit more flexible with layers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2019 09:24:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Delete-Unused-Hosts-Networks-and-Groups-R80-10-SMS-MDS/m-p/40039#M2594</guid>
      <dc:creator>Adam_Forester</dc:creator>
      <dc:date>2019-06-21T09:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Unused Hosts, Networks, and Groups (R80.10 SMS &amp; MDS)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Delete-Unused-Hosts-Networks-and-Groups-R80-10-SMS-MDS/m-p/40040#M2595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;mgmt_cli and these scripts are for R80.x right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2018 17:03:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Delete-Unused-Hosts-Networks-and-Groups-R80-10-SMS-MDS/m-p/40040#M2595</guid>
      <dc:creator>Chris_Wilson</dc:creator>
      <dc:date>2018-04-27T17:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Unused Hosts, Networks, and Groups (R80.10 SMS &amp; MDS)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Delete-Unused-Hosts-Networks-and-Groups-R80-10-SMS-MDS/m-p/40041#M2596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes. It is for R80.x&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2018 17:58:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Delete-Unused-Hosts-Networks-and-Groups-R80-10-SMS-MDS/m-p/40041#M2596</guid>
      <dc:creator>Gaurav_Pandya</dc:creator>
      <dc:date>2018-04-27T17:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Unused Hosts, Networks, and Groups (R80.10 SMS &amp; MDS)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Delete-Unused-Hosts-Networks-and-Groups-R80-10-SMS-MDS/m-p/40042#M2597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great! This is exactly what i am looking for! I am migrating the configuration from an old firewall to check point and I always have hated insert unused objects in the new policy!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am going to test it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 18:34:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Delete-Unused-Hosts-Networks-and-Groups-R80-10-SMS-MDS/m-p/40042#M2597</guid>
      <dc:creator>Vanesa_Benito_O</dc:creator>
      <dc:date>2018-05-18T18:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Unused Hosts, Networks, and Groups (R80.10 SMS &amp; MDS)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Delete-Unused-Hosts-Networks-and-Groups-R80-10-SMS-MDS/m-p/40043#M2598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome! Glad this will help, let me know if you have questions. After you get running and logs going for a few months take a look at&amp;nbsp;&lt;A href="https://community.checkpoint.com/docs/DOC-2640?sr=stream&amp;amp;ru=53216" target="_blank"&gt;https://community.checkpoint.com/docs/DOC-2640?sr=stream&amp;amp;ru=53216&lt;/A&gt;&amp;nbsp; and it will help you clean up your rulebase&amp;nbsp;some&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2019 09:24:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Delete-Unused-Hosts-Networks-and-Groups-R80-10-SMS-MDS/m-p/40043#M2598</guid>
      <dc:creator>Adam_Forester</dc:creator>
      <dc:date>2019-06-21T09:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Unused Hosts, Networks, and Groups (R80.10 SMS &amp; MDS)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Delete-Unused-Hosts-Networks-and-Groups-R80-10-SMS-MDS/m-p/130076#M6270</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Great tool!&lt;/P&gt;
&lt;P&gt;Do you consider to expand the tool for Services (TCP|UDP|Groups)&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 13:15:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Delete-Unused-Hosts-Networks-and-Groups-R80-10-SMS-MDS/m-p/130076#M6270</guid>
      <dc:creator>S_E_</dc:creator>
      <dc:date>2021-09-23T13:15:34Z</dc:date>
    </item>
  </channel>
</rss>

