Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 
New Member

Tracking the number of BGP prefixes


Is it possible to track the number of bgp prefixes and warn when they fall below a threshold?

I understand maximum-prefix will warn when the number of prefixes exceed the threshold, however I want to know when the number falls below a set value.



Re: Tracking the number of BGP prefixes

HI Gavin, [Pls RATE if HELPS]

Refer Useful link below:

[Edit] The link for Warning when it exceeds the threshold

I beleive it can be done with IP-SLA and with some Syslog Server.

Hope I am Informative.


Best Regards,

Guru Prasad R

New Member

Re: Tracking the number of BGP prefixes


thanks for your response I have read this document however I want to be warned when i loose a bunch of prefixes not exceed the number!


Re: Tracking the number of BGP prefixes

Maybe someone knows a easy way and will tell us but there are 2 ways I suspect it can be done. I have not done this particular item.

First you could attempt to use the RMON command. This is a internal event monitor and can cause snmp traps and other actions based on changes in MIB variables. The challenge here is finding the correct MIB and then figuring out what name this command want you to call it. In most cases anything that can be displayed with a command you can find a mib for if you dig long enough with a MIB browser.

The new toy that I know can do it if you are brave enough is called Embedded Event Manager.

They have been adding a lot of features to this in the last few IOS releases. Since this is all based on scripts you can issue just about any command and take action based on the output. There are huge libraries of scripts for samples. This link is the best I have seen. This was a presentation from the cisco users group in dallas a couple of months ago.

So far I only play with this is the lab until my TCL abilities improve.

New Member

Re: Tracking the number of BGP prefixes


thanks for your help. i'm very careful about EEM also and keep it in the lab where possible. I'll have a look and if i find an easier way i'll let you know!


CreatePlease to create content