<?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: How can I monitor BGP state using SNMP? in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/76582#M15560</link>
    <description>&lt;P&gt;Whilst it has been a while since this post has received any update, using the link&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;&amp;nbsp; provided I was able to successfully set up monitoring for BGP state via a custom SNMP OID.&amp;nbsp;&lt;/P&gt;&lt;P&gt;At a high level&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stopped the SNMP agent&amp;nbsp;&lt;/P&gt;&lt;P&gt;Created a small shell script that basically ran a clish command and grep'd out my desired information, similar to below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;echo ''&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;clish -c "show bgp peers" | egrep -o 'Established|OpenConfirm|OpenSent|Active|Connect|Idle'&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;echo ''&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;then I added this as an SNMP extend line to "&lt;STRONG&gt;&lt;EM&gt;/etc/snmp/userDefinedSettings.conf&lt;/EM&gt;&lt;/STRONG&gt;", similar to below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;extend BGP_Status /bin/sh /var/log/my_script/BGP_Status.sh&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;restarted the SNMP agent.&amp;nbsp;&lt;/P&gt;&lt;P&gt;tested using the SNMP walk command &lt;FONT size="2"&gt;(you need to have 127.0.0.1 under agent interfaces in order to use localhost)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;snmpwalk -t 10 -v 2c -c netw0rks localhost NET-SNMP-AGENT-MIB::nsExtensions&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;from here i used the translate command&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;snmptranslate -On NET-SNMP-EXTEND-MIB::nsExtendOutLine.\"BGP_Status\"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The value you get back should allow you to monitor via SNMP&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it helps someone to get started at least, it is not the prettiest way to get the state and it wouldn't really work for multiple neighbours but for my scenario, it worked.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2020 13:14:15 GMT</pubDate>
    <dc:creator>Northy</dc:creator>
    <dc:date>2020-02-27T13:14:15Z</dc:date>
    <item>
      <title>How can I monitor BGP state using SNMP?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/51778#M10253</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Somebody know anyway how can I monitor BGP state using SNMP? I've several VPN site-to-site between my on-premisses gateway and AWS cloud.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Att,&lt;/P&gt;&lt;P&gt;Alisson Lima&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 22:26:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/51778#M10253</guid>
      <dc:creator>Alisson_Lima</dc:creator>
      <dc:date>2019-04-24T22:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I monitor BGP state using SNMP?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/51890#M10280</link>
      <description>You can monitor the routing tables via SNMP.&lt;BR /&gt;See: &lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk90860" target="_blank"&gt;https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk90860&lt;/A&gt;</description>
      <pubDate>Thu, 25 Apr 2019 23:19:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/51890#M10280</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-04-25T23:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I monitor BGP state using SNMP?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/51910#M10285</link>
      <description>&lt;P&gt;Hi PhoneBoy,&lt;/P&gt;&lt;P&gt;Thank you for your response, but I wouldn't to monitor only routing table. Is there any way to monitor only BGP state (Estabilished, Active, Connect or Idle)?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Alisson Lima&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 00:29:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/51910#M10285</guid>
      <dc:creator>Alisson_Lima</dc:creator>
      <dc:date>2019-04-26T00:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I monitor BGP state using SNMP?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/51976#M10304</link>
      <description>&lt;P&gt;There's no predefined OID for that but you can create a script that gathers the data you're interested in and probe it via SNMP.&amp;nbsp;See section IV-6 of the SK I previously linked to.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 15:45:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/51976#M10304</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-04-26T15:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I monitor BGP state using SNMP?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/76582#M15560</link>
      <description>&lt;P&gt;Whilst it has been a while since this post has received any update, using the link&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;&amp;nbsp; provided I was able to successfully set up monitoring for BGP state via a custom SNMP OID.&amp;nbsp;&lt;/P&gt;&lt;P&gt;At a high level&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stopped the SNMP agent&amp;nbsp;&lt;/P&gt;&lt;P&gt;Created a small shell script that basically ran a clish command and grep'd out my desired information, similar to below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;echo ''&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;clish -c "show bgp peers" | egrep -o 'Established|OpenConfirm|OpenSent|Active|Connect|Idle'&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;echo ''&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;then I added this as an SNMP extend line to "&lt;STRONG&gt;&lt;EM&gt;/etc/snmp/userDefinedSettings.conf&lt;/EM&gt;&lt;/STRONG&gt;", similar to below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;extend BGP_Status /bin/sh /var/log/my_script/BGP_Status.sh&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;restarted the SNMP agent.&amp;nbsp;&lt;/P&gt;&lt;P&gt;tested using the SNMP walk command &lt;FONT size="2"&gt;(you need to have 127.0.0.1 under agent interfaces in order to use localhost)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;snmpwalk -t 10 -v 2c -c netw0rks localhost NET-SNMP-AGENT-MIB::nsExtensions&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;from here i used the translate command&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;snmptranslate -On NET-SNMP-EXTEND-MIB::nsExtendOutLine.\"BGP_Status\"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The value you get back should allow you to monitor via SNMP&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it helps someone to get started at least, it is not the prettiest way to get the state and it wouldn't really work for multiple neighbours but for my scenario, it worked.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 13:14:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/76582#M15560</guid>
      <dc:creator>Northy</dc:creator>
      <dc:date>2020-02-27T13:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I monitor BGP state using SNMP?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/130180#M23683</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;&amp;nbsp;, Can you share the Number for SK?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 13:39:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/130180#M23683</guid>
      <dc:creator>Hugo_Romero</dc:creator>
      <dc:date>2021-09-24T13:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I monitor BGP state using SNMP?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/130182#M23684</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/20521"&gt;@Hugo_Romero&lt;/a&gt;&amp;nbsp;The link is above in one of the&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;&amp;nbsp;'s replies, but here is the SK number:&amp;nbsp;&lt;SPAN&gt;sk90860&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 13:55:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/130182#M23684</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2021-09-24T13:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I monitor BGP state using SNMP?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/224898#M37442</link>
      <description>&lt;P&gt;It looks like Checkpoint now supports the BGP OID -&amp;nbsp;&lt;/P&gt;&lt;P&gt;.1.3.6.1.2.1.15.3.1.3&lt;/P&gt;&lt;P&gt;I opened a TAC case and this is what they referred me too.&amp;nbsp; &amp;nbsp;Running 81.20, so its possible its part of the 81.20 GAIA update&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 19:10:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/224898#M37442</guid>
      <dc:creator>Dan_Moesch</dc:creator>
      <dc:date>2024-08-28T19:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I monitor BGP state using SNMP?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/224923#M37444</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm not sure that's going to do what you hope it might.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;bgpPeerFsmEstablishedTime, OID - ".1.3.6.1.2.1.15.3.1.16" may be an alternative depending on your objective.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 05:42:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/224923#M37444</guid>
      <dc:creator>Chris_Atkinson</dc:creator>
      <dc:date>2024-08-29T05:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I monitor BGP state using SNMP?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/224962#M37446</link>
      <description>&lt;P&gt;Yes, that is nice for established time.&amp;nbsp; The point of my post is CP doesn't have this documented anywhere and suggested creating a script etc, when its not needed anymore.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 12:28:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/224962#M37446</guid>
      <dc:creator>Dan_Moesch</dc:creator>
      <dc:date>2024-08-29T12:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I monitor BGP state using SNMP?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/224975#M37447</link>
      <description>&lt;P&gt;Have you confirmed this by testing, my understand of the OID you referenced differs&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 13:03:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/224975#M37447</guid>
      <dc:creator>Chris_Atkinson</dc:creator>
      <dc:date>2024-08-29T13:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I monitor BGP state using SNMP?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/224976#M37448</link>
      <description>&lt;P&gt;It works very well, in addition I have a nice little to add our SNMP monitoring Dashboard showing peer state, established time etc.&amp;nbsp; Makes it easier for support to look at this dashboard then remoting in to each firewall and running "show bgp peers"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition, I created a custom email alert should the BGP Peer state numerical values change from "established" so we get an email alert if a BGP peer session goes down.&amp;nbsp; &amp;nbsp;Since CP only peers with the active, I had to add another SNMP check for "haidentifier" OID so the alert only looks for the state on the active member.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 13:16:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/How-can-I-monitor-BGP-state-using-SNMP/m-p/224976#M37448</guid>
      <dc:creator>Dan_Moesch</dc:creator>
      <dc:date>2024-08-29T13:16:49Z</dc:date>
    </item>
  </channel>
</rss>

