Jump to content


0

Get mplsVpnVrfName via SNMP


3 replies to this topic

#1 Povelitel

Povelitel

    Junior Member

  • Members
  • PipPip
  • 4 posts
  • 0 thanks

Posted 25 September 2010 - 10:38 AM

Hello! Sorry for my English, but I'am really need help. I need to get mplsVpnVrfName via SNMP. mplsVpnVrfName's oid is  1.3.6.1.3.118.1.2.2.1.1. But result of SNMP request was:

PS C:\> snmpwalk -v 2c -c cisco 172.17.1.97 1.3.6.1.3.118.1.2.2.1.1
SNMPv2-SMI::experimental.118.1.2.2.1.1 = No Such Object available on this agent at this OID

Than, I decided to make this request:

PS C:\> snmpwalk -v 2c -c cisco 172.17.1.97 1.3.6.1.3.118.1.2.2.1
SNMPv2-SMI::experimental.118.1.2.2.1.2.4.86.80.78.49 = STRING: "VPN1"
SNMPv2-SMI::experimental.118.1.2.2.1.2.4.86.80.78.50 = STRING: "VPN2"
SNMPv2-SMI::experimental.118.1.2.2.1.2.4.86.80.78.51 = STRING: "VPN3"
SNMPv2-SMI::experimental.118.1.2.2.1.2.4.86.80.78.52 = STRING: "VPN4"
SNMPv2-SMI::experimental.118.1.2.2.1.3.4.86.80.78.49 = STRING: "10.10.10.1:100"
SNMPv2-SMI::experimental.118.1.2.2.1.3.4.86.80.78.50 = STRING: "10.10.10.1:200"
SNMPv2-SMI::experimental.118.1.2.2.1.3.4.86.80.78.51 = STRING: "10.10.10.1:300"
SNMPv2-SMI::experimental.118.1.2.2.1.3.4.86.80.78.52 = STRING: "10.10.10.1:400"
SNMPv2-SMI::experimental.118.1.2.2.1.4.4.86.80.78.49 = Timeticks: (1907) 0:00:19.07
SNMPv2-SMI::experimental.118.1.2.2.1.4.4.86.80.78.50 = Timeticks: (1908) 0:00:19.08
SNMPv2-SMI::experimental.118.1.2.2.1.4.4.86.80.78.51 = Timeticks: (1910) 0:00:19.10
SNMPv2-SMI::experimental.118.1.2.2.1.4.4.86.80.78.52 = Timeticks: (1911) 0:00:19.11
SNMPv2-SMI::experimental.118.1.2.2.1.5.4.86.80.78.49 = INTEGER: 1
SNMPv2-SMI::experimental.118.1.2.2.1.5.4.86.80.78.50 = INTEGER: 1
SNMPv2-SMI::experimental.118.1.2.2.1.5.4.86.80.78.51 = INTEGER: 1
SNMPv2-SMI::experimental.118.1.2.2.1.5.4.86.80.78.52 = INTEGER: 1
SNMPv2-SMI::experimental.118.1.2.2.1.6.4.86.80.78.49 = Gauge32: 1
SNMPv2-SMI::experimental.118.1.2.2.1.6.4.86.80.78.50 = Gauge32: 1
SNMPv2-SMI::experimental.118.1.2.2.1.6.4.86.80.78.51 = Gauge32: 1
SNMPv2-SMI::experimental.118.1.2.2.1.6.4.86.80.78.52 = Gauge32: 1
SNMPv2-SMI::experimental.118.1.2.2.1.7.4.86.80.78.49 = Gauge32: 2
SNMPv2-SMI::experimental.118.1.2.2.1.7.4.86.80.78.50 = Gauge32: 1
SNMPv2-SMI::experimental.118.1.2.2.1.7.4.86.80.78.51 = Gauge32: 1
SNMPv2-SMI::experimental.118.1.2.2.1.7.4.86.80.78.52 = Gauge32: 1
SNMPv2-SMI::experimental.118.1.2.2.1.8.4.86.80.78.49 = Gauge32: 4294967295
SNMPv2-SMI::experimental.118.1.2.2.1.8.4.86.80.78.50 = Gauge32: 4294967295
SNMPv2-SMI::experimental.118.1.2.2.1.8.4.86.80.78.51 = Gauge32: 4294967295
SNMPv2-SMI::experimental.118.1.2.2.1.8.4.86.80.78.52 = Gauge32: 4294967295
SNMPv2-SMI::experimental.118.1.2.2.1.9.4.86.80.78.49 = Gauge32: 4294967295
SNMPv2-SMI::experimental.118.1.2.2.1.9.4.86.80.78.50 = Gauge32: 4294967295
SNMPv2-SMI::experimental.118.1.2.2.1.9.4.86.80.78.51 = Gauge32: 4294967295
SNMPv2-SMI::experimental.118.1.2.2.1.9.4.86.80.78.52 = Gauge32: 4294967295
SNMPv2-SMI::experimental.118.1.2.2.1.10.4.86.80.78.49 = Gauge32: 4294967295
SNMPv2-SMI::experimental.118.1.2.2.1.10.4.86.80.78.50 = Gauge32: 4294967295
SNMPv2-SMI::experimental.118.1.2.2.1.10.4.86.80.78.51 = Gauge32: 4294967295
SNMPv2-SMI::experimental.118.1.2.2.1.10.4.86.80.78.52 = Gauge32: 4294967295
SNMPv2-SMI::experimental.118.1.2.2.1.11.4.86.80.78.49 = Timeticks: (30652249) 3 days, 13:08:42.49
SNMPv2-SMI::experimental.118.1.2.2.1.11.4.86.80.78.50 = Timeticks: (1934) 0:00:19.34
SNMPv2-SMI::experimental.118.1.2.2.1.11.4.86.80.78.51 = Timeticks: (1938) 0:00:19.38
SNMPv2-SMI::experimental.118.1.2.2.1.11.4.86.80.78.52 = Timeticks: (1942) 0:00:19.42
SNMPv2-SMI::experimental.118.1.2.2.1.12.4.86.80.78.49 = INTEGER: 1
SNMPv2-SMI::experimental.118.1.2.2.1.12.4.86.80.78.50 = INTEGER: 1
SNMPv2-SMI::experimental.118.1.2.2.1.12.4.86.80.78.51 = INTEGER: 1
SNMPv2-SMI::experimental.118.1.2.2.1.12.4.86.80.78.52 = INTEGER: 1
SNMPv2-SMI::experimental.118.1.2.2.1.13.4.86.80.78.49 = INTEGER: 2
SNMPv2-SMI::experimental.118.1.2.2.1.13.4.86.80.78.50 = INTEGER: 2
SNMPv2-SMI::experimental.118.1.2.2.1.13.4.86.80.78.51 = INTEGER: 2
SNMPv2-SMI::experimental.118.1.2.2.1.13.4.86.80.78.52 = INTEGER: 2

So, I has received all, except mplsVpnVrfName (1.3.6.1.3.118.1.2.2.1.1). Can someone help me?

P.S. I tried this on different devices...
Source - http://www.cisco.com/en/US/docs/ios/12_0st/12_0st21/feature/guide/fsvpnmib.html

#2 goldplated

goldplated

    Cisco TE

  • Technical Expert
  • PipPipPip
  • 508 posts
  • 93 thanks
  • Location127.0.0.1

Posted 28 September 2010 - 02:07 AM

I looked into this for a while and I do see references to the above OID you mentioned mplsVpnVrfName (1.3.6.1.3.118.1.2.2.1.1)...  Supposedly that value gets set when the However I was not able to get this to work either...

BUT  I was able to get the following:

snmpwalk -v2c -c TEST 10.10.10.4 .1.3.6.1.3.118.1.2.2.1.2
SNMPv2-SMI::experimental.118.1.2.2.1.2.8.73.78.84.69.82.78.69.84 = STRING: "INTERNET"

I went under my VRF and added a description...   Here is all the info I got when i walked the device and used a MIB Browser with the MPLS-VPN-MIB

.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnScalars.mplsVpnConfiguredVrfs.0 = 1
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnScalars.mplsVpnActiveVrfs.0 = 1
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnScalars.mplsVpnConnectedInterfaces.0 = 1
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnScalars.mplsVpnNotificationEnable.0 = true
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnScalars.mplsVpnVrfConfMaxPossibleRoutes.0 = 0
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnConf.mplsVpnInterfaceConfTable.mplsVpnInterfaceConfEntry.mplsVpnInterfaceLabelEdgeType.8.73.78.84.69.82.78.69.84.2 = providerEdge
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnConf.mplsVpnInterfaceConfTable.mplsVpnInterfaceConfEntry.mplsVpnInterfaceVpnClassification.8.73.78.84.69.82.78.69.84.2 = enterprise
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnConf.mplsVpnInterfaceConfTable.mplsVpnInterfaceConfEntry.mplsVpnInterfaceVpnRouteDistProtocol.8.73.78.84.69.82.78.69.84.2 =
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnConf.mplsVpnInterfaceConfTable.mplsVpnInterfaceConfEntry.mplsVpnInterfaceConfStorageType.8.73.78.84.69.82.78.69.84.2 = volatile
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnConf.mplsVpnInterfaceConfTable.mplsVpnInterfaceConfEntry.mplsVpnInterfaceConfRowStatus.8.73.78.84.69.82.78.69.84.2 = active
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnConf.mplsVpnVrfTable.mplsVpnVrfEntry.mplsVpnVrfDescription.8.73.78.84.69.82.78.69.84 = INTERNET
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnConf.mplsVpnVrfTable.mplsVpnVrfEntry.mplsVpnVrfRouteDistinguisher.8.73.78.84.69.82.78.69.84 =
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnConf.mplsVpnVrfTable.mplsVpnVrfEntry.mplsVpnVrfCreationTime.8.73.78.84.69.82.78.69.84 = 358
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnConf.mplsVpnVrfTable.mplsVpnVrfEntry.mplsVpnVrfOperStatus.8.73.78.84.69.82.78.69.84 = up
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnConf.mplsVpnVrfTable.mplsVpnVrfEntry.mplsVpnVrfActiveInterfaces.8.73.78.84.69.82.78.69.84 = 1
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnConf.mplsVpnVrfTable.mplsVpnVrfEntry.mplsVpnVrfAssociatedInterfaces.8.73.78.84.69.82.78.69.84 = 1
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnConf.mplsVpnVrfTable.mplsVpnVrfEntry.mplsVpnVrfConfMidRouteThreshold.8.73.78.84.69.82.78.69.84 = 4294967295
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnConf.mplsVpnVrfTable.mplsVpnVrfEntry.mplsVpnVrfConfHighRouteThreshold.8.73.78.84.69.82.78.69.84 = 4294967295
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnConf.mplsVpnVrfTable.mplsVpnVrfEntry.mplsVpnVrfConfMaxRoutes.8.73.78.84.69.82.78.69.84 = 4294967295
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnConf.mplsVpnVrfTable.mplsVpnVrfEntry.mplsVpnVrfConfLastChanged.8.73.78.84.69.82.78.69.84 = 27493
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnConf.mplsVpnVrfTable.mplsVpnVrfEntry.mplsVpnVrfConfRowStatus.8.73.78.84.69.82.78.69.84 = active
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnConf.mplsVpnVrfTable.mplsVpnVrfEntry.mplsVpnVrfConfStorageType.8.73.78.84.69.82.78.69.84 = volatile
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnConf.mplsVpnVrfSecTable.mplsVpnVrfSecEntry.mplsVpnVrfSecIllegalLabelViolations.8.73.78.84.69.82.78.69.84 = 0
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnConf.mplsVpnVrfSecTable.mplsVpnVrfSecEntry.mplsVpnVrfSecIllegalLabelRcvThresh.8.73.78.84.69.82.78.69.84 = 0
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnPerf.mplsVpnVrfPerfTable.mplsVpnVrfPerfEntry.mplsVpnVrfPerfRoutesAdded.8.73.78.84.69.82.78.69.84 = 1
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnPerf.mplsVpnVrfPerfTable.mplsVpnVrfPerfEntry.mplsVpnVrfPerfRoutesDeleted.8.73.78.84.69.82.78.69.84 = 0
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnPerf.mplsVpnVrfPerfTable.mplsVpnVrfPerfEntry.mplsVpnVrfPerfCurrNumRoutes.8.73.78.84.69.82.78.69.84 = 1
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnRoute.mplsVpnVrfRouteTable.mplsVpnVrfRouteEntry.mplsVpnVrfRouteDestAddrType.8.73.78.84.69.82.78.69.84.4.11.11.11.0.4.255.255.255.0.0.4.0.0.0.0 = ipv4
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnRoute.mplsVpnVrfRouteTable.mplsVpnVrfRouteEntry.mplsVpnVrfRouteMaskAddrType.8.73.78.84.69.82.78.69.84.4.11.11.11.0.4.255.255.255.0.0.4.0.0.0.0 = ipv4
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnRoute.mplsVpnVrfRouteTable.mplsVpnVrfRouteEntry.mplsVpnVrfRouteTos.8.73.78.84.69.82.78.69.84.4.11.11.11.0.4.255.255.255.0.0.4.0.0.0.0 = 0
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnRoute.mplsVpnVrfRouteTable.mplsVpnVrfRouteEntry.mplsVpnVrfRouteNextHop.8.73.78.84.69.82.78.69.84.4.11.11.11.0.4.255.255.255.0.0.4.0.0.0.0 =
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnRoute.mplsVpnVrfRouteTable.mplsVpnVrfRouteEntry.mplsVpnVrfRouteNextHopAddrType.8.73.78.84.69.82.78.69.84.4.11.11.11.0.4.255.255.255.0.0.4.0.0.0.0 = ipv4
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnRoute.mplsVpnVrfRouteTable.mplsVpnVrfRouteEntry.mplsVpnVrfRouteIfIndex.8.73.78.84.69.82.78.69.84.4.11.11.11.0.4.255.255.255.0.0.4.0.0.0.0 = 2
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnRoute.mplsVpnVrfRouteTable.mplsVpnVrfRouteEntry.mplsVpnVrfRouteType.8.73.78.84.69.82.78.69.84.4.11.11.11.0.4.255.255.255.0.0.4.0.0.0.0 = local
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnRoute.mplsVpnVrfRouteTable.mplsVpnVrfRouteEntry.mplsVpnVrfRouteProto.8.73.78.84.69.82.78.69.84.4.11.11.11.0.4.255.255.255.0.0.4.0.0.0.0 = local
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnRoute.mplsVpnVrfRouteTable.mplsVpnVrfRouteEntry.mplsVpnVrfRouteAge.8.73.78.84.69.82.78.69.84.4.11.11.11.0.4.255.255.255.0.0.4.0.0.0.0 = 21
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnRoute.mplsVpnVrfRouteTable.mplsVpnVrfRouteEntry.mplsVpnVrfRouteInfo.8.73.78.84.69.82.78.69.84.4.11.11.11.0.4.255.255.255.0.0.4.0.0.0.0 = .0.0
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnRoute.mplsVpnVrfRouteTable.mplsVpnVrfRouteEntry.mplsVpnVrfRouteNextHopAS.8.73.78.84.69.82.78.69.84.4.11.11.11.0.4.255.255.255.0.0.4.0.0.0.0 = 0
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnRoute.mplsVpnVrfRouteTable.mplsVpnVrfRouteEntry.mplsVpnVrfRouteMetric1.8.73.78.84.69.82.78.69.84.4.11.11.11.0.4.255.255.255.0.0.4.0.0.0.0 = 0
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnRoute.mplsVpnVrfRouteTable.mplsVpnVrfRouteEntry.mplsVpnVrfRouteMetric2.8.73.78.84.69.82.78.69.84.4.11.11.11.0.4.255.255.255.0.0.4.0.0.0.0 = -1
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnRoute.mplsVpnVrfRouteTable.mplsVpnVrfRouteEntry.mplsVpnVrfRouteMetric3.8.73.78.84.69.82.78.69.84.4.11.11.11.0.4.255.255.255.0.0.4.0.0.0.0 = -1
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnRoute.mplsVpnVrfRouteTable.mplsVpnVrfRouteEntry.mplsVpnVrfRouteMetric4.8.73.78.84.69.82.78.69.84.4.11.11.11.0.4.255.255.255.0.0.4.0.0.0.0 = -1
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnRoute.mplsVpnVrfRouteTable.mplsVpnVrfRouteEntry.mplsVpnVrfRouteMetric5.8.73.78.84.69.82.78.69.84.4.11.11.11.0.4.255.255.255.0.0.4.0.0.0.0 = -1
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnRoute.mplsVpnVrfRouteTable.mplsVpnVrfRouteEntry.mplsVpnVrfRouteRowStatus.8.73.78.84.69.82.78.69.84.4.11.11.11.0.4.255.255.255.0.0.4.0.0.0.0 = active
.iso.org.dod.internet.experimental.mplsVpnMIB.mplsVpnObjects.mplsVpnRoute.mplsVpnVrfRouteTable.mplsVpnVrfRouteEntry.mplsVpnVrfRouteStorageType.8.73.78.84.69.82.78.69.84.4.11.11.11.0.4.255.255.255.0.0.4.0.0.0.0 = volatile



Hope this helps...

#3 goldplated

goldplated

    Cisco TE

  • Technical Expert
  • PipPipPip
  • 508 posts
  • 93 thanks
  • Location127.0.0.1

Posted 28 September 2010 - 02:09 AM

Here is the link i used to download the MIB for this..

http://www.oidview.com/mibs/0/MPLS-VPN-MIB.html


I just used a basic MIB Browser on Ubuntu

#4 Povelitel

Povelitel

    Junior Member

  • Members
  • PipPip
  • 4 posts
  • 0 thanks

Posted 28 September 2010 - 06:40 AM

Yes, I have noticed that if I set description on vrf, I can get it via .1.3.6.1.3.118.1.2.2.1.2 (mplsVpnVrfDescription). Initially I wanted to get unique value that will define vrf, like it's Name(not Description) or Route Distinguisher. Ok, thx anyway, I will use Route Distinguisher.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Organization

Community

Downloads

Test Providers

Site Info


Go to top