<?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: Oneliner to compare routes between two cluster members in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Oneliner-to-compare-routes-between-two-cluster-members/m-p/33244#M2682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;absolutely (about cloning groups) but there are some reasons that I'm not able to discuss here why we are not doing it &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Mar 2018 14:41:27 GMT</pubDate>
    <dc:creator>Kaspars_Zibarts</dc:creator>
    <dc:date>2018-03-01T14:41:27Z</dc:date>
    <item>
      <title>Oneliner to compare routes between two cluster members</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Oneliner-to-compare-routes-between-two-cluster-members/m-p/33242#M2680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Running into "get interfaces with topology" feature problem recently due to route mismatch on cluster members prompted me to write a quick one-liner to compare routes with least possible effort.&lt;/P&gt;&lt;P&gt;It must be noted for example simplicity I used SNMP V1 with public community (which is not advisable in production) so update command snmp part in red accordingly. Also it does require that SNMP port is open on Sync interface (IPs from cphaprob stat output)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example below I added a dummy 1.1.1.1/32 route to FW1&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;[Expert@fw1:0]# i=0; cphaprob stat | egrep ^[1,2] | sed 's/(local)//' | awk '{print $2}'| while read line; do let i++; &lt;SPAN style="color: #ff0000;"&gt;snmpwalk -c public -v 1&lt;/SPAN&gt; $line IP-FORWARD-MIB::inetCidrRouteIfIndex.ipv4 | awk -F\" '{print $2, $4, substr($3,2,2)}' &amp;gt; fw.$i; done; if [ `diff -q fw.1 fw.2 | wc -l` -gt 0 ]; then diff fw.1 fw.2; else echo "Routes OK"; fi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;2d1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;&amp;lt; 1.1.1.1 10.3.81.67 32&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NormaL output would be&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;[Expert@fwfran1:0]# i=0; cphaprob stat | egrep ^[1,2] | sed 's/(local)//' | awk '{print $2}'| while read line; do let i++; snmpwalk -c public -v 1 $line IP-FORWARD-MIB::inetCidrRouteIfIndex.ipv4 | awk -F\" '{print $2, $4, substr($3,2,2)}' &amp;gt; fw.$i; done; if [ `diff -q fw.1 fw.2 | wc -l` -gt 0 ]; then diff fw.1 fw.2; else echo "Routes OK"; fi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #339966;"&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;Routes OK&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 13:25:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Oneliner-to-compare-routes-between-two-cluster-members/m-p/33242#M2680</guid>
      <dc:creator>Kaspars_Zibarts</dc:creator>
      <dc:date>2018-03-01T13:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Oneliner to compare routes between two cluster members</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Oneliner-to-compare-routes-between-two-cluster-members/m-p/33243#M2681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great solution Kaspar!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a useful tip when Cloning Groups are not in use. For cluster enviroments the best is configure a Cloning Group that follows ClusterXL to sync all routing related parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 14:20:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Oneliner-to-compare-routes-between-two-cluster-members/m-p/33243#M2681</guid>
      <dc:creator>KennyManrique</dc:creator>
      <dc:date>2018-03-01T14:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Oneliner to compare routes between two cluster members</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Oneliner-to-compare-routes-between-two-cluster-members/m-p/33244#M2682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;absolutely (about cloning groups) but there are some reasons that I'm not able to discuss here why we are not doing it &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 14:41:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Oneliner-to-compare-routes-between-two-cluster-members/m-p/33244#M2682</guid>
      <dc:creator>Kaspars_Zibarts</dc:creator>
      <dc:date>2018-03-01T14:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Oneliner to compare routes between two cluster members</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Oneliner-to-compare-routes-between-two-cluster-members/m-p/176245#M32243</link>
      <description>&lt;P&gt;Because of &lt;CODE&gt;egrep ^[1,2]&lt;/CODE&gt; this only works for clusters consisting of two members only.&lt;BR /&gt;Because of &lt;CODE&gt;snmpwalk -c public -v 1&lt;/CODE&gt;&amp;nbsp;this only works with insecurely configured SNMP.&lt;BR /&gt;Because SNMPv3 is standard I recommend to update this one-liner to work with&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/R81.10/WebAdminGuides/EN/CP_R81.10_SecurityManagement_AdminGuide/Topics-SECMG/CLI/stattest.htm" target="_self"&gt;stattest&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 07:39:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Oneliner-to-compare-routes-between-two-cluster-members/m-p/176245#M32243</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2023-03-27T07:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Oneliner to compare routes between two cluster members</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Oneliner-to-compare-routes-between-two-cluster-members/m-p/176249#M32248</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/687"&gt;@Danny&lt;/a&gt;&amp;nbsp;that's why I wrote:&amp;nbsp;&lt;EM&gt;It must be noted for &lt;STRONG&gt;example simplicity&lt;/STRONG&gt; I used SNMP V1 with public community (which is not advisable in production)&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;It was more of an idea that can be replicated in specific environment accordingly. Not everything has be served on silver plate &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; it's good to engage our little grey cells as the famous Poirot said &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 08:09:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Oneliner-to-compare-routes-between-two-cluster-members/m-p/176249#M32248</guid>
      <dc:creator>Kaspars_Zibarts</dc:creator>
      <dc:date>2023-03-27T08:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Oneliner to compare routes between two cluster members</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Oneliner-to-compare-routes-between-two-cluster-members/m-p/185895#M34197</link>
      <description>&lt;P&gt;could be extended for VSX devices using a loop &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 08:10:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Oneliner-to-compare-routes-between-two-cluster-members/m-p/185895#M34197</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2023-07-07T08:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Oneliner to compare routes between two cluster members</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Oneliner-to-compare-routes-between-two-cluster-members/m-p/187286#M34517</link>
      <description>&lt;P&gt;Since VSX routes are pushed from Mgmt, they "should" the same on all cluster members, else topology push would fail.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 07:16:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Oneliner-to-compare-routes-between-two-cluster-members/m-p/187286#M34517</guid>
      <dc:creator>Kaspars_Zibarts</dc:creator>
      <dc:date>2023-07-24T07:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Oneliner to compare routes between two cluster members</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Oneliner-to-compare-routes-between-two-cluster-members/m-p/187288#M34519</link>
      <description>&lt;P&gt;Why not make it a part of a ToolBox collection?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 07:19:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Oneliner-to-compare-routes-between-two-cluster-members/m-p/187288#M34519</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2023-07-24T07:19:57Z</dc:date>
    </item>
  </channel>
</rss>

