Perl script checking route table via snmp against routes in a database

  • Script is based on Cisco MPLS-VPN-MIB, this MIB gives route table information for L3 MPLS VPN instances other wise, ipRouteTable OID can be used.
  • There may be two approach while checking route table. Get the whole route table with snmp walk and cross check with the ones in the database or check the routes in the database one by one in the route table via snmpget. Second method is used in the script.
  • For L3 MPLS VPN, you can get the MPLS VPN name from the database like category, or it can be embedded. Script expects route and MPLS VPN name from the database (although this can be easily change.
  • Also MPLS VPN index is used in the OIDs which is get from a snmpwalk, (explained in the script)

Continue reading “Perl script checking route table via snmp against routes in a database”