Hi Ron,

Thanks for your response. I was missing the 'git commit' step.

I've now managed to create the patch file and I have attached it to the
bug.

What happens next?

Cheers
AlanE
----------------------------------------------------------------------

Message: 1
Date: Wed, 2 Jun 2010 11:20:58 -0500
From: "Roskens, Ronald" <rosk...@biworldwide.com>
Subject: Re: [opennms-devel] Problem with Linkd and Cisco Router :
        NoipRouteTable in MIB
To: "OpenNMS Code Development and Bugs"
        <opennms-devel@lists.sourceforge.net>
Message-ID:
        <64085d397c43214d8b5d23b429150376e6a...@exchange3.biperf.com>
Content-Type: text/plain; charset="us-ascii"

Alan,
 
Commit your patches to your local repo, then "git format-patch -M -C
remotes/origin/master" should give you a patch file.
 
Ron

________________________________

From: Alan Evans [mailto:aev...@kineto.com] 
Sent: Wednesday, June 02, 2010 11:00 AM
To: Alan Evans; opennms-devel@lists.sourceforge.net
Subject: Re: [opennms-devel] Problem with Linkd and Cisco Router :
NoipRouteTable in MIB



Hello Developers,

 

I have a fix ready to check in for this Feature Enhancement
(http://bugzilla.opennms.org/show_bug.cgi?id=3773 )

 

However I am having problems following the instructions
http://www.opennms.org/wiki/Developing_with_Git#Pushing_Changes_Upstream

 

When I try to make a patch I'm not getting anywhere:

 

[tacu...@pilot opennms]$ git status

# On branch master

# Changes to be committed:

#   (use "git reset HEAD <file>..." to unstage)

#

#          modified:
opennms-base-assembly/src/main/filtered/etc/linkd-configuration.xml

#          modified:
opennms-config/src/main/castor/linkd-configuration.xsd

#          modified:
opennms-services/src/main/java/org/opennms/netmgt/config/LinkdConfigMana
ger.java

#          modified:
opennms-services/src/main/java/org/opennms/netmgt/eventd/processor/Event
Expander.java

#          modified:
opennms-services/src/main/java/org/opennms/netmgt/linkd/DbEventWriter.ja
va

#          modified:
opennms-services/src/main/java/org/opennms/netmgt/linkd/LinkableNode.jav
a

#          modified:
opennms-services/src/main/java/org/opennms/netmgt/linkd/Linkd.java

#          modified:
opennms-services/src/main/java/org/opennms/netmgt/linkd/SnmpCollection.j
ava

#          new file:
opennms-services/src/main/java/org/opennms/netmgt/linkd/snmp/InetCidrRou
teTable.java

#          new file:
opennms-services/src/main/java/org/opennms/netmgt/linkd/snmp/InetCidrRou
teTableEntry.java

#          new file:
opennms-services/src/main/java/org/opennms/netmgt/linkd/snmp/IpCidrRoute
Table.java

#          new file:
opennms-services/src/main/java/org/opennms/netmgt/linkd/snmp/IpCidrRoute
TableEntry.java

#          new file:
opennms-services/src/main/java/org/opennms/netmgt/linkd/snmp/IpRouteColl
ectorEntry.java

#

[tacu...@pilot opennms]$ git format-patch -M -C remotes/origin/master

[tacu...@pilot opennms]$

 

 

Can someone help me?

Thanks

AlanE

 

________________________________

From: Alan Evans 
Sent: Friday, May 21, 2010 12:36 PM
To: 'opennms-devel@lists.sourceforge.net'
Subject: Problem with Linkd and Cisco Router : No ipRouteTable in MIB

 

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


This e-mail message is being sent solely for use by the intended
recipient(s) and may contain confidential information.  Any unauthorized
review, use, disclosure or distribution is prohibited.  If you are not
the intended recipient, please contact the sender by phone or reply by
e-mail, delete the original message and destroy all copies. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...

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

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



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

_______________________________________________
opennms-devel mailing list
opennms-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opennms-devel


End of opennms-devel Digest, Vol 49, Issue 2
********************************************

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
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