[Q] Query a router for it's routing table

Robert Seeger (Robert_Seeger@BayNetworks.COM)
Tue, 17 Jun 1997 02:21:12 -0400

I imagine that this is a simple request, or at least I hope so. I was hoping
somebody might have some sample source code to query a router for it's
routing table. I'm writing a discovery algorithm to find all the routers
that are connected to the seed router. To do this, I need to be able to
query a router for two peices of information:
1) It's routing table: I know this is done by using an snmp request for the
routing table, and then successive requests to get the next entry, and the
next one, and so on. I just don't know enough to be able to do it.
2) It's interfaces: I need to find out all the interfaces that the router
has, so I can determine the difference between a hop to a router, and one to
a network.

I'm a good tcl programmer, I just don't have any experience with Scotty.
Thus, I'd like to take a look at some sample code in order to see how this
is done. If you have some sample code that does one, or both, of the above
things, I'd appreciate a look. As a note, this is for a commercial product.
Thus, if you don't want me to use your code, let me know. I don't intend to
copy any code verbatim, but it's best to state such things beforehand.

Thanks in advance,
Robert Seeger

PS: Any pointers to information pertaining to these questions would be
appreciated also. Can't hurt to look at a page that discusses algorithms for
such things, too.
========================================
Robert Seeger
Network Engineer
Bay Networks

Tel: (518) 237-2087
Pager: (800) SKY-8888 Pin#1264792
Fax: (518) 237-2593
Email: rseeger@baynetworks.com
Address: 224 5th Ave
Lansingburgh, NY 12180
========================================

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.