Hello List,


I am posting this to the devel list as suggested.



I fancy having a go at fixing this myself.



My first thought was to model the fix on the same way the VlanTable is
populated and change the OID based on the ClassName of the device.



The problem with this approach is that different Cisco IOS loads will
use different OIDs so there is no 1 correct OID that will work for all
Cisco routers.

Either I need to have a new configuration parameter to tell me which OID
to use to get the routing info or I need to check the IOS version and
have some sort of lookup table to try to figure it out.



Any suggestions would be appreciated.



Thanks

AlanE



------------------------------------------------





I was wondering if anyone else has come across this problem and if there
was a known solution.



According to the Linkd wiki http://www.opennms.org/wiki/Linkd one of the
first things Linkd does is walk the ipRouteTable.



However I have a Cisco Router (7604) which doesn't have an ipRouteTable.



Apparently this has been removed by Cisco and I am now supposed to use
the ipCidrRouteTable in the IP-FORWARD-MIB.
In fact even has been deprecated in the latest Cisco IOS and we should
now use inetCidrRouteTable.



If I try snmpwalk. I can confirm that on my router ipRouteTable doesn't
work but the ipCidrRouteTable does work.



[r...@nms daemon]# snmpwalk -t5 -r5 -v2c -c public ks1-trial-lbr
.1.3.6.1.2.1.4.21

RFC1213-MIB::ipRouteTable = No Such Object available on this agent at
this OID

[r...@nms daemon]#



[r...@nms daemon]# snmpwalk -t5 -r5 -v2c -c public ks1-trial-lbr
IP-FORWARD-MIB::ipCidrRouteTable

IP-FORWARD-MIB::ipCidrRouteDest.0.0.0.0.0.0.0.0.0.10.101.24.9 =
IpAddress: 0.0.0.0

IP-FORWARD-MIB::ipCidrRouteDest.10.101.24.0.255.255.255.0.0.0.0.0.0 =
IpAddress: 10.101.24.0

IP-FORWARD-MIB::ipCidrRouteDest.10.101.24.4.255.255.255.255.0.0.0.0.0 =
IpAddress: 10.101.24.4

IP-FORWARD-MIB::ipCidrRouteDest.10.101.30.0.255.255.255.0.0.0.0.0.0 =
IpAddress: 10.101.30.0

<snip>



The problem I have is that the "Physical Interface" tab on the node view
is blank and the "Node Links" table has no information.



I have another router with an older IOS running and this works just
fine. I can walk the ipRouteTable and the "Physical Interfaces" display
correctly.



I am using opennms version: 1.7.10



Any suggestions would be appreciated.

Thanks

AlanE



------------------------------------------





From: Alan Evans
Sent: Tuesday, May 18, 2010 8:35 PM
To: 'opennms-disc...@lists.sourceforge.net'
Subject: RE: [opennms-discuss] Problem with Linkd and Cisco Router : No
ipRouteTable in MIB



So I took a look at the source code and it appears that I am out of
luck.

I can see in
opennms/opennms-services/src/main/java/org/opennms/netmgt/linkd/snmp/IpR
outeTableEntry.java

The ipRouteTable OID is hardcoded and there doesn't appear to be any
other options available.



I've searched bugzilla and there doesn't seem to be a bug report for
this issue which seems a bit odd, I'm sure I'm not the only one managing
Cisco Routers that have no ipRouteTable.



Anyway, I will raise a bug report as soon as I receive my randomly
assigned password to login to bugzilla.



Cheers



AlanE

------------------------------------------------------------------------------

_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this 
page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel

Reply via email to