i need to get the route table from a router and i think snmp is capable of doing that, any idea of a good snmp client to accomplish this, or, any idea not involving snmp to solve this problem?
thanks in advance
Assuming your router speaks SNMP and is exporting its route table via SNMP then yes, an SNMP client can retrieve this information.
A "good" SNMP client depends on what you're looking for. As a Unix guy I'd suggest snmpwalk from the net-snmp distribution of tools. Other popular ones include commercial tools like HP OpenView, or the free MIB Browser from iReasoning.
In any case the MIB you want for the routing table is 1.3.6.1.2.1.4.21 -- this will be a SNMP table that reflects the contents of your IP routing table. (Thanks to our sister site StackOverflow for popping up in a google search and saving me from having to look through MIB files :-)
Assuming your router speaks SNMP and is exporting its route table via SNMP then yes, an SNMP client can retrieve this information.
A "good" SNMP client depends on what you're looking for. As a Unix guy I'd suggest
snmpwalk
from the net-snmp distribution of tools. Other popular ones include commercial tools like HP OpenView, or the free MIB Browser from iReasoning.In any case the MIB you want for the routing table is
1.3.6.1.2.1.4.21
-- this will be a SNMP table that reflects the contents of your IP routing table. (Thanks to our sister site StackOverflow for popping up in a google search and saving me from having to look through MIB files :-)Use Net-SNMP(OID ip.ipRouteTable.ipRouteEntry) or library for your preferred language. Also, you may use telnet/ssh to remote call command.