Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Cisco Route Graph

 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
sjk



Joined: 01 Jul 2003
Posts: 1
Location: Chicago, IL

PostPosted: Wed Jul 02, 2003 12:07 am    Post subject: Cisco Route Graph Reply with quote

I am looking for a way to graph the bgp route counts and bgp table prefix count on our cisco routers and I can't seem to locate an oid for this value . . . perhaps there isn't one. I could grab the whole table and count it -- but that uses a huge amount of cpu and bandwidth. Just wondering if anyone else has ever tried doing this.

Thanks -- sjk
Back to top
Guest






PostPosted: Mon Aug 25, 2003 7:44 am    Post subject: Reply with quote

Hello,

Never tried this but it would be really cool if this could be done.
Back to top
pestilence
Cacti User


Joined: 25 Jul 2003
Posts: 207
Location: Athens/Greece

PostPosted: Tue Aug 26, 2003 4:00 am    Post subject: Reply with quote

Unfortunatelly there does not exist a routing (at least BGP which i checked) MIB for routing information, there are only some MIBS to show you the information exchanged between the 2 peers, but there isn't a MIB to show you the total ammount of networks exchanged between the 2 peers...Most people have implemented telnet-scripts for this...
Back to top
Rune Nilssen
Guest





PostPosted: Thu Aug 28, 2003 1:10 am    Post subject: Reply with quote

Slightly off topic, but if you would be so kind as to tell me some more about those telnet scripts I would be more than grateful.

Best regards,
Rune Nilssen
www.directconnect.no
Back to top
tincze



Joined: 15 Jul 2008
Posts: 1

PostPosted: Tue Jul 15, 2008 7:04 pm    Post subject: It's possible without telnet scripts Reply with quote

If you have snmp turned on in your cisco router, you should be able to do:
snmpwalk -Os -c yourcommunityname -v 1 yourciscobox ipRouteDest | wc -l

inside of a script. But there really isn't an OID that gives you that count.

If you want to then use that value within cacti, then put the command into a script, and put it under /usr/share/cacti/site/scripts/
and then setup a query according to the instructions here:
http://docs.cacti.net/node/296

I've done that, and works quite nicely, except if you have a lot of bgp peers(like over 1000), then the script takes too long to execute and causes gaps in the graphs. So to get around that. I run the above in a cron job and redirect the output to a file, then my cacti script simply reads that file. Definitely ugly cause there's multiple points of failure, but best way I've found so far.

-T
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group