Tracking the number of BGP prefixes

Unanswered Question
Jun 26th, 2008


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.


I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
gavin.mckee Thu, 06/26/2008 - 01:33


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!

tdrais Thu, 06/26/2008 - 04:56

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.

gavin.mckee Thu, 06/26/2008 - 06:24


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!



This Discussion