<?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: Comparison script of configuration on firewalls in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Comparison-script-of-configuration-on-firewalls/m-p/76353#M4440</link>
    <description>&lt;P&gt;Don't think there's something automatic.&lt;/P&gt;&lt;P&gt;You could write your own automatism using shell script from any management server.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2020 13:33:07 GMT</pubDate>
    <dc:creator>Vincent_Bacher</dc:creator>
    <dc:date>2020-02-25T13:33:07Z</dc:date>
    <item>
      <title>Comparison script of configuration on firewalls</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Comparison-script-of-configuration-on-firewalls/m-p/76314#M4437</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I would require your help and knowledge about a script/command that might be out there that can do a comparison of the current configuration of two or more firewalls ( e.g. missing static routes on one member, etc ) in a cluster and or something similar ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 09:29:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Comparison-script-of-configuration-on-firewalls/m-p/76314#M4437</guid>
      <dc:creator>funkylicious</dc:creator>
      <dc:date>2020-02-25T09:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison script of configuration on firewalls</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Comparison-script-of-configuration-on-firewalls/m-p/76341#M4438</link>
      <description>&lt;P&gt;Do the following on both&amp;nbsp;firewalls:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[CLISH]#&amp;nbsp;save configuration &amp;lt;&lt;I&gt;Name of Textfile&lt;/I&gt;&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;(On SMB only, you must use&amp;nbsp;&lt;/SPAN&gt;[Expert]# clish -A -i -c "show configuration" -v &amp;gt;&amp;gt; /var/log/config.txt)&lt;/P&gt;
&lt;P&gt;--&amp;gt; Transfer the two files to your PC and use an editor for the comparison.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 11:25:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Comparison-script-of-configuration-on-firewalls/m-p/76341#M4438</guid>
      <dc:creator>G_W_Albrecht</dc:creator>
      <dc:date>2020-02-25T11:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison script of configuration on firewalls</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Comparison-script-of-configuration-on-firewalls/m-p/76352#M4439</link>
      <description>&lt;P&gt;Thanks for the input, but I was looking for something more automated that could save the configuration and a comparison of the number of lines or smth similar.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 12:57:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Comparison-script-of-configuration-on-firewalls/m-p/76352#M4439</guid>
      <dc:creator>funkylicious</dc:creator>
      <dc:date>2020-02-25T12:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison script of configuration on firewalls</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Comparison-script-of-configuration-on-firewalls/m-p/76353#M4440</link>
      <description>&lt;P&gt;Don't think there's something automatic.&lt;/P&gt;&lt;P&gt;You could write your own automatism using shell script from any management server.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 13:33:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Comparison-script-of-configuration-on-firewalls/m-p/76353#M4440</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2020-02-25T13:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison script of configuration on firewalls</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Comparison-script-of-configuration-on-firewalls/m-p/76355#M4441</link>
      <description>&lt;P&gt;Simply use Heiko's &lt;A href="https://community.checkpoint.com/t5/Enterprise-Appliances-and-Gaia/GAIA-Easy-execute-CLI-commands-on-all-gateways-simultaneously/m-p/50971" target="_self"&gt;gw_mbash&lt;/A&gt;&amp;nbsp;script to run a command on all gateways simultaneously and then compare the result via diff.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 13:53:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Comparison-script-of-configuration-on-firewalls/m-p/76355#M4441</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2020-02-25T13:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison script of configuration on firewalls</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Comparison-script-of-configuration-on-firewalls/m-p/76412#M4442</link>
      <description>&lt;P&gt;If you want to use diff you should run sort over it in advance, interestingly line position of certain options might differ between gateways even if the config is equal.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 23:43:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Comparison-script-of-configuration-on-firewalls/m-p/76412#M4442</guid>
      <dc:creator>Daniel_Schlifka</dc:creator>
      <dc:date>2020-02-25T23:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison script of configuration on firewalls</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Comparison-script-of-configuration-on-firewalls/m-p/76415#M4443</link>
      <description>&lt;P&gt;hi,&lt;BR /&gt;&lt;BR /&gt;thought i could use this for myself, so here's my python-way. If will give you everything it finds on X but not on Y and vice versa.&lt;BR /&gt;&lt;BR /&gt;you will need python3-napalm and the napalm gaia plugin:&lt;BR /&gt;&lt;BR /&gt;both are available via python package index now&lt;BR /&gt;&lt;BR /&gt;pip install napalm-gaia&lt;BR /&gt;&lt;BR /&gt;you find the script here&amp;nbsp; &lt;A href="https://github.com/remingu/checkmates/blob/master/python_napalm/napalm_cmp_gateway_conf.py" target="_self"&gt;https://github.com/remingu/checkmates/blob/master/python_napalm/napalm_cmp_gateway_conf.py&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;modify lines on top of the script to your needs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;gateway1_ip = ''
gateway1_username = ''
gateway1_password = ''
gateway2_ip = ''
gateway2_username = ''
gateway2_password = ''&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(keep quotes as in)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;gateway1_ip = 'x.x.x.x'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output is parsed to stdout, you can pipe it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;python3 napalm_cmp_gateway_conf.py &amp;gt; results.text&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;hth&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 21:26:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Comparison-script-of-configuration-on-firewalls/m-p/76415#M4443</guid>
      <dc:creator>Daniel_Schlifka</dc:creator>
      <dc:date>2020-03-12T21:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison script of configuration on firewalls</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Comparison-script-of-configuration-on-firewalls/m-p/82365#M4741</link>
      <description>&lt;P&gt;i added a second variant which checks files locally, no need for napalm. you'll have to fetch the config by yourself.&lt;BR /&gt;&lt;A href="https://github.com/remingu/checkmates/blob/master/python_napalm/compare_cfg_files_locally.py" target="_blank" rel="noopener"&gt;https://github.com/remingu/checkmates/blob/master/python_napalm/compare_cfg_files_locally.py&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;usage:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;./compare_cfg_files_locally.py &amp;lt;configfile1&amp;gt; &amp;lt;configfile2&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Apr 2020 07:37:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Comparison-script-of-configuration-on-firewalls/m-p/82365#M4741</guid>
      <dc:creator>Daniel_Schlifka</dc:creator>
      <dc:date>2020-04-19T07:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison script of configuration on firewalls</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Comparison-script-of-configuration-on-firewalls/m-p/82390#M4746</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/36091"&gt;@funkylicious&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also use the following script from me:&lt;/P&gt;
&lt;P&gt;&lt;A class="page-link lia-link-navigation lia-custom-event" href="https://community.checkpoint.com/t5/General-Topics/Easy-Backup-Tool-migrate-export-all-GAIA-configs/td-p/79632/jump-to/first-unread-message" target="_blank" rel="noopener"&gt;Easy Backup Tool - (migrate export + all GAIA configs)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This tool creates a backup of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;all GAIA gateway configurations&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;with one CLI command "&lt;STRONG&gt;ebackup&lt;/STRONG&gt;"&lt;/P&gt;
&lt;P&gt;- Only one CLI command "ebackup"&lt;BR /&gt;- Backup of all Gaia gateway configurations (Check Point appliances, Open Server, SMB appliances 11xx, 14xx)&lt;BR /&gt;- Migrate export on SMS&lt;BR /&gt;- Migrate-server on MDS&lt;BR /&gt;- Backup all files to one TGZ file&lt;BR /&gt;- FTP upload support backup file&lt;BR /&gt;- CP upload support for backup file via cprid_util&lt;/P&gt;
&lt;P&gt;Then you can see the differences of the gateway configs on a pc.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Apr 2020 14:45:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Comparison-script-of-configuration-on-firewalls/m-p/82390#M4746</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2020-04-19T14:45:55Z</dc:date>
    </item>
  </channel>
</rss>

