Hi,

Thanks for the response. I know the error in MIB file (same as specified by
Dave), but should an erroneous value in MIB crash the application?

I want to know some way that can report error on MIB and exit/write a log.

Thanks and Regards
Gaurav Chaturvedi
(+91) 957-944-3976


On Tue, Aug 10, 2010 at 1:29 PM, Dave Shield <d.t.shi...@liverpool.ac.uk>wrote:

> On 10 August 2010 08:14, Gaurav Chaturvedi <gauravchaturve...@gmail.com>
> wrote:
> > I am using net-snmp v5.5. On loading a particular MIB (attached with the
> > mail), my program crashes on "init_snmp" API.
> > On removing this MIB from the MIB directory, everything works fine.
> >
> > Please share your views on what may be the issue in this case.
>
> Well the obvious error in this MIB is in the TRAP-TYPE definition:
>
>   EventMonitorTrap TRAP-TYPE
>              ENTERPRISE  "EMC CLARiiON Advanced Storage Solutions"
>              VARIABLES   { .....}
>              DESCRIPTION
>                          "...."
>              ::= 2
>
>
> The ENTERPRISES clause is meant to contain the object identifier (name
> or numeric OID) of the defining enterprise.   It's not an arbitrary string.
> See RFC1215, section 2.2.1 for a typical example.
>
> That's almost certainly the cause of the crash.
> There are some other errors as well
>   (OBJECT-TYPE should probably be imported from RFC1212 rather than 1155,
>    TRAP-TYPE is not imported at all, and the EventMonitorTrap name is
>    invalid - it needs to start with a lower-case letter)
>        but I doubt those are likely to cause any real problems.
>
> It'll be the bogus enterprise value that's hitting you - try replacing
> it with 'clariion'
> and see if that works any better.
>
> Dave
>
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to