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 :)
