Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
martyyy
New Contributor III

How to query BGP Community information via SNMP or REST API

Hi,

We are trying to implement a monitoring solution for our firewall that indicates which ISP link is currently being used.

The firewall is connected to a single router provided by the ISP and there are 3 links connected to the router. Which link though, adversities a different BGP community information which is the way we know what is the current internet link being used.

To do so, I currently connect to our firewall and then run the command:

get router info bgp community-info or;
get router info bgp network 0.0.0.0

Both tells me the community like below:

# get router info bgp community-inf
Address Refcnt Community
[0x555be4ac] (1300) 65507:1001

Now, I was looking for a way to implement an automated to query this information and report when the community information changes.

My monitoring system supports SNMP and REST API, but I don't know what OID or API call to use.

Would able to provide this information please? Appreciate your feedbacks. TIA :) 

3 REPLIES 3
martyyy
New Contributor III

Hi @scitlak ,

Thank you for your reply.

 

I'm afraid that doesn't work. I already found these articles and tried that OID. It does bring lots of BGP information, but it doesn't show BGP community information.

What about the API call?  Is there any way of using it?
Thank you!

scitlak

Hi,

 

Could you please try to perform the GET API requests below?

 

/router/bgp/neighbors-statistics  --->It is available with FOS 7.4.5

/router/bgp/neighbors

/router/bgp/neighbors6

/router/bgp/paths-statistics

/router/bgp/paths

/router/bgp/paths6

 

BRs

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors