Mail Archive: Open Networks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: JMIB Example (with logs)
Hi Bryan,
I use the version 4.1.1 on Linux. Moreover, my outputs running the MIB
example and snmpwalk show only ipRouteMetrics1. "ipRouteMetrics2" is
supposed to be outputed only if it exists.
I am not sure what the exact reason is, can you post the error message?
I attach the log of the MIB example for your reference.
Regards,
Phil
> "Ha, Bryan [HAL02:HG00:EXCH]" wrote:
>
> Hi Phil,
>
> I have installed the ucd-snmp 4.1.2 on a Solaris Sparc machine and I
> have encountered the following exception when I loads the JMIB
> Example. It throws an ClassCastException exception when it tries to
> access its Routing Table. It looks very likely that it fails when it
> tries to access the parameter ipRouteMetrics2 under the ipRouteEntry
> subtree.
>
> I have done a snmpwalk but only ipRouteMetrics1 exists. Are you using
> ucd-snmp 4.1.2 ? I have read from the ucd-snmp FAQ that certain
> parameters are missed out if they cannot be determined (contrary to
> SNMP specification) but ipRuteMetrics2/3/4 are not among the published
> attributes.
>
> Any comments much appreciated.
>
> Bryan
>
> -----Original Message-----
> From: Wang, Phil [CAR:FD70:EXCH]
> Sent: Thursday, October 12, 2000 2:23 PM
> To: Ha, Bryan [HAL02:HG00:EXCH]
> Cc: open_networks@openetlab.org;
> active_networks@openetlab.org
> Subject: Re: Exception when calling setName on SystemGroup
>
> I used the UCD one, which is available from
> "http://ucd-snmp.ucdavis.edu".
>
> Phil
>
> > "Ha, Bryan [HAL02:HG00:EXCH]" wrote:
> >
> > Thanks a lot for your replies. I will see what I can do on NT
> as well.
> >
> > Which SNMP daemon are you using on LINUX ?
> >
> > Many thanks,
> >
> > Bryan
> >
> > -----Original Message-----
> > From: Wang, Phil [SMTP:pywang@americasm01.nt.com]
> > Sent: Wednesday, October 11, 2000 7:31 PM
> > To: Duncan, Robert
> > Cc: Ha, Bryan ; open_networks@openetlab.org;
> > active_networks@openetlab.org; Duncan, Robert
> > Subject: Re: Exception when calling setName on
> SystemGroup
> >
> > For the time being, we can the two default communities for
>
> > different
> > SNMP operations, the "public" community is for read-only
> (i.e.,
> > SNMPGET)
> > and the "private" one for write (i.e., SNMPSET). They
> share the
> > same mib
> > view (with read or write permissions).
> >
> > I've made the above two communities working on Linux.
> However,
> > "snmpd.conf" is a bit tricky at the beginning. -:)
> >
> > Phil
> >
> > Rob Duncan wrote:
> > >
> > > "Wang, Phil " <pywang@americasm01.nt.com> writes:
> > >
> > > > > 2. As I read from the SNMP spec, SNMP requests
> should
> > indicate the
> > > > > community name it is using, how is that achieved in
> the API
> > ? Where
> > > > > should I set the community name to be for
> authentication
> > purpose ?
> > >
> > > > Two communities are used internally by
> "jmibmap_loopback",
> > they are
> > > > "public" and "private". If you want to use your own
> > communities, you'd
> > > > re-write the a new JMIB mapper.
> > > >
> > > > On the other hand, these Java mibs (e.g., jmib_mib2
> for MIB
> > II) are
> > > > automatically generated from their mib texts which do
> not
> > contain a
> > > > community name. So, the JMIB APIs do not support
> setting a
> > community
> > > > name. Rob, it that right?
> > >
> > > Yes. This is a bug in our APIs. Right now the
> community
> > strings are
> > > hardwired into the Loopback service implementation.
> I'll fix
> > this for
> > > the next release by adding an API for this into the
> Loopback
> > service,
> > > and probably also by setting some configuration
> variables
> > somewhere.
> > >
> > > R.
--
Phil Yonghui Wang, Ph.D.
Principal Network Architect, Nortel Networks Technology Center
Web: www.openetlab.org Email: pywang@nortelnetworks.com
Tel: (613) 765-6607 (ESN 395) Fax: (613) 765-4962 (ESN 395)
mib_example.log
Home |
Date Index |
Thread Index