Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Reading routing table for different VRF's by SNMP

Hello,

using standard mib2 it is possible to read a router's routing table by snmp. But apparently this is just for router without different VRFs. Is there a way to read vrf specific routing tables by SNMP?

3 REPLIES
Cisco Employee

Re: Reading routing table for different VRF's by SNMP

You need to use SNMP contexts to poll MIB data from individual VRFs.  See this document for more details:

http://www.cisco.com/en/US/partner/docs/ios/12_3t/12_3t2/feature/guide/gtsnmpvp.html

New Member

Reading routing table for different VRF's by SNMP

Hi.

Can anyone give good example on the topic?

The URL above doesn't open.

All info i've found talks about sending traps, but i need to query router.

Tried config like this:

ip vrf LAN

rd 5:5

snmp context LAN

snmp-server user lan lan v2c

snmp-server group lan v2c context LAN

snmp-server host 10.96.37.103 vrf LAN version 2c lan

snmp mib target list lan vrf LAN

but snmp-tools give no result:

# snmpbulkwalk -c lan 10.96.200.56 .1.3.6.1.2.1.4.21

.1.3.6.1.2.1.4.21 = No more variables left in this MIB View (It is past the end of the MIB tree)

Cisco Employee

Reading routing table for different VRF's by SNMP

The document moved.  Check out

http://www.cisco.com/en/US/docs/ios-xml/ios/snmp/configuration/12-4t/nm-snmp-vpn-context.html .  There are a few commands you need to add to map the user to the community.

5757
Views
0
Helpful
3
Replies