cederberg / mibble

Mibble is an open-source SNMP MIB parser library for Java.
https://www.mibble.org/
Other
111 stars 69 forks source link

Imports section in Mib files #42

Open Isra1997 opened 3 years ago

Isra1997 commented 3 years ago

First I would like to thank for this amazing API !! I also had the following questions regarding the imports that are present in the beginning of the Mib file:

  1. Going through the past issues I found that you have to copy all the related MIbs to the mib being pased into the directory that you specify in the loader.addDir() and that the location of the path mentioned in the addDir() should always be in the classpath. So I wand to make if that the case ?

  2. A lot of the mib file that I try to load have missing imports so I keep on getting undefined symbol 'xxx' , however when I add the import to the import section of the mib file it seems to work, even though I tried loading all the standard mibs before loading the specific mib I still encounters a MibLoaderException. So I wanted to know if there is any way to make sure that any loaded mib will not encounter this MibLoaderException if the symbol is not mentioned in the imports?

Thanks in advance !!