Mail Archive: Open Networks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JSNMP and JMIB



For the people interested in JSNMP and JMIB, please get info from the
attachment.

Cheers,
Phil


Vijak Sethaput <vsethapu@nortelnetworks.com> writes:

> I need the routing table MIB which I believe is in ipForward group
> in MIB-2.

This is already generated and part of the ORE distribution you have.
You can find all of the MIB-2 stuff in the jmib_mib2.jar oplet.

In particular you should look at:

com.nortelnetworks.ore.service.jmib.mib2.IpRouteTable
com.nortelnetworks.ore.service.jmib.mib2.IpRouteTableIndex
com.nortelnetworks.ore.service.jmib.mib2.IpRouteEntry

> So, how do you get MIB-II from Linux box, particularlly this
> ipForwarding table? Who will get that information? JSnmp will get
> those off the linux for me? I would like to somehow get this info,
> so I can pass this info along to my service.

As I said, you shouldn't worry about *how* JMib will get hold of the
information.  As a client you only need to use the API provided by the
classes above.

However, just so you know, it will internally use JSnmp to make
standard SNMP calls to access the variables.  By default it will use
localhost as the target to send the SNMP messages, but you can
redirect it to another address by defining the Java system property
jmibmap.loopback.target.  The best way to do that in a work
station-based system is to define the OREPROPERTIES environment
variable:

export OREPROPERTIES="-Djmibmap.loopback.target=10.120.101.102"
or
setenv OREPROPERTIES "-Djmibmap.loopback.target=10.120.101.102"

[Phil, these are good candidates for inclusion in a FAQ]

R.



Home | Date Index | Thread Index