Re: [libsmi] failed to locate MIB module

Hi!
Rajaram> Following is the example code present in the libsmi site for Rajaram> dumping the OID subtree for the OID given as argument. But I Rajaram> added some more lines to read a given configuration file and Rajaram> to print 'name' and 'description' of SNMPv2-SMI module. The Rajaram> configure file (see attached below the code) 'load's 3 Rajaram> modules. The smiIsLoaded() calls actually says they are Rajaram> loaded (return 1). But still I get the following errors:
Rajaram> failed to locate MIB module `SNMPv2-SMI' Rajaram> failed to locate MIB module `SNMPv2-TC' Rajaram> failed to locate MIB module `SNMPv2-CONF' Rajaram> LOAD STATUS: 1 1 1 Rajaram> failed to locate MIB module `SNMPv2-SMI' Rajaram> 0 [main] tell 640 handle_exceptions: Exception: Rajaram> STATUS_ACCESS_VIOLATION Rajaram> 4774 [main] tell 640 open_stackdumpfile: Dumping stack trace to Rajaram> tell.exe.stackdump
Rajaram> Any idea what I might be doing wrong? How can I avoid these Rajaram> "failed to locate MIB module" errors despite giving the SMI Rajaram> path so explicitly? Thanks in advance for your time.
The fact that smiIsLoaded() returns 1 is a bug. I've just fixed it and commited the fix to the anonymous CVS repository.
If you specify a path that contains at least one directory that contains the requested modules, the "failed to locate ..." message should disappear.
Please check, whether you are using : or ; as the path separator character. The default on Windows systems is ; so that your specified smiSetPath() argument probably does not what you expect. :-)
The fact that libsmi crashes in this case where some basic modules are not found, is also a bug, of course. I did not yet fix this.
-frank
participants (1)
-
Frank Strauss