How to avoid getting BGP routes while getting a router's routing table

Discussion in 'Cisco' started by ncosta, Jan 24, 2006.

  1. ncosta

    ncosta Guest

    Hi everyone,

    I am using SNMP to get a router's routing table, but it takes a lot of
    time because this router has BGP routes. Is there any way to avoid
    getting its BGP entries?

    This is the route entry oid that i use to get the route table
    information:
    .1.3.6.1.2.1.4.21.1

    Thanks in advance,

    Nelson Costa
     
    ncosta, Jan 24, 2006
    #1
    1. Advertisements

  2. ncosta

    stl-eng Guest

    Drill down more and you get the .9 which is by protocol

    OID 1.3.6.1.2.1.4.21.1.9
    Type INTEGER
    Units
    Access read-only
    Status mandatory

    The routing mechanism via which this route was
    learned. Inclusion of values for gateway routing
    protocols is not intended to imply that hosts
    should support those protocols.

    Possible Values :
    other(1)
    local(2)
    netmgmt(3)
    icmp(4)
    egp(5)
    ggp(6)
    hello(7)
    rip(8)
    is-is(9)
    es-is(10)
    ciscoIgrp(11)
    bbnSpfIgp(12)
    ospf(13)
    bgp(14)
     
    stl-eng, Jan 24, 2006
    #2
    1. Advertisements

  3. ncosta

    ncosta Guest

    I know that the OID 1.3.6.1.2.1.4.21.1.9 returns the routing protocol.
    When i try to get that information, it takes a lot of time because the
    table returned has 171091 entries and i only want those that the
    routing protocol is ospf.
    Is there any way of getting only the ospf entries in order to take less
    time?

    Thanks in advance,

    Nelson Costa
     
    ncosta, Jan 25, 2006
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.