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: Anton Boronnikov
Subject: Re: [Mibble-users] 'couldn't find referenced MIB' error
Date: Tue, 06 May 2008 10:56:03 +0400
User-agent: Opera Mail/9.26 (Win32)

Thanks! I've edited one of my mib files using "RFC1213-MIB" name. And it was parsed successfully!

On Sun, 04 May 2008 18:12:12 +0400, Per Cederberg <address@hidden> wrote:

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



_______________________________________________
Mibble-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/mibble-users




--
Yours respectfully, Anton Boronnikov




reply via email to

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