- To: Vijak Sethaput <vsethapu@nortelnetworks.com>
- Subject: Re: JSNMP and JMIB
- From: Rob Duncan <roduncan@nortelnetworks.com>
- Date: 12 Jul 2000 15:45:14 -0700
- Cc: "Duncan, Robert" <roduncan@AMERICASM06.NT.COM>, "Openet.Lab Team" <openet@baynetworks.com>
- Content-Type: text/plain; charset=US-ASCII
- In-Reply-To: Vijak Sethaput's message of "Wed, 12 Jul 2000 17:39:13 -0400"
- References: <396C66E0.35B177B2@mitre.org> <396C6F3D.42904296@americasm01.nt.com> <396C8956.D12AF299@mitre.org> <396CB652.504E249B@americasm01.nt.com> <396CCA91.3102C2CF@nortelnetworks.com> <396CCDD6.E00FEAF4@americasm01.nt.com> <396CD659.FDCC845B@nortelnetworks.com> <je66qb82vi.fsf@nortelnetworks.com> <396CE580.1EFBF96A@nortelnetworks.com>
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.