[c-nsp] Looking for a tool to monitor OSPF network

John Kristoff jtk at northwestern.edu
Wed Jan 18 11:40:47 EST 2006


On Wed, 18 Jan 2006 17:28:07 +0100
Code Monkey <have.an.email at gmail.com> wrote:

> Does anyone know of any script that analyzes a (Cisco) OSPF database?

I wrote something that is very hacky quite some time back, but still
seems to get the basic job done.  However, depending on your config
the output may not be pretty at all.  I wanted to rewrite this to make
it a little more friendly and multi-threaded, but if you can stand the
sloppy output and if your database doesn't change very quickly you may
find it a start (route-check here):

  <http://ntgrd.depaul.edu/software/>

In an nutshell it uses SNMP (you may have to adjust the command) to
pull the following OID values:

  ospfAreaLsaCount
  ospfAreaLsaCksumSum
  ospfExternLsaCount
  ospfExternLsaCksumSum

For each router, the values for each OID in each area should match (I'll
leave it as an exercise for you to figure out the output if you have
multiple areas) as long as the database is stable.  You might run it a
couple of times if the database is going through a re-calc in the middle
of your run.

John


More information about the cisco-nsp mailing list