mibble-users
[Top][All Lists]
Advanced

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

Re: [Mibble-users] 'couldn't find referenced MIB' error


From: Per Cederberg
Subject: Re: [Mibble-users] 'couldn't find referenced MIB' error
Date: Sun, 4 May 2008 16:12:12 +0200

The MIB files are incorrect and Mibble uses more strict validation
than most other MIB parsers. The import should look like this:

IMPORTS
    mib-2
         FROM RFC1213-MIB;

Note that the correct MIB name is "RFC1213-MIB".

Cheers,

/Per

On Sun, May 4, 2008 at 2:14 PM, Anton Boronnikov <address@hidden> wrote:
> Hello!
>  I need some comment about error I get when parse some mib files with
> mibble. Error message is: "couldn't find referenced MIB 'RFC1215'". The mib
> file what I parse contains such string: "TRAP-TYPE FROM RFC1215" in IMPORTS
> part. And I get similar error when parsing another mib: "couldn't find
> referenced MIB 'RFC-1213'". This file containes "DisplayString FROM
> RFC-1213" reference. Of course then I get a lot of errors like "undefined
> symbol 'DisplayString'".
>  Please explain me this error. And what I need to provide to my mib-loader
> object necessary mib file? Or I must not provide it? (Because if we will
> parse my mib files with 'AdventNet SNMPAPI 4' library we will not receive
> any error.)
>
>  My code is below:
>
>     MibLoader loader = new MibLoader();
>
>     try
>     {
>       //Of course I try to provide needed file.
>       //But it does not help.
>       File file = new File("some_path\\RFC1213-MIB");
>       loader.addDir(file.getParentFile());
>
>       loader.load(file);
>
>       loader.load(new File("some_path\\file_with_import_from_rfc1213.mib"));
>     }
>     catch (Exception ex)
>     {
>       //Here we will get MibLoaderException with error described before
>     }
>
>
>
>
>  --
>  Yours respectfully, Anton Boronnikov
>
>
>  _______________________________________________
>  Mibble-users mailing list
>  address@hidden
>  http://lists.nongnu.org/mailman/listinfo/mibble-users
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]