
Thanks for the information.
Why do I want to do this is because the MIB filenames are different than their internal module names (I can't change the filenames). And so they are not loaded automatically. I was trying to load each module by their filenames but it crashes at nth module. I think it crashes because I don't load them in the right order - the imported module first, etc. This is why I was trying to get information about imported modules, so I read all imports, unload the module, load the next one, etc. And this way since I have the dependencies I can load them in the right order.
soso
winston writes:
winston> Is it possible to completely unload a module without winston> unloading the whole library - through smiExit?
No.
winston> Also, is it possible to know the names of "imported" modules winston> in a module without having to load them?
The parser automatically loads imported modules (which in most cases is needed unless you have unused imports) so the answer is no. Well, you can of course load a module by making sure that the library does not find any modules from which things are imported. The library will generate a bunch of error messages and I have no clue whether the internal import data structures will be in a usable state. Even if this works, I would not recommend to do this.
/js
-- Juergen Schoenwaelder International University Bremen Phone: +49 421 200 3587 P.O. Box 750 561, 28725 Bremen, Germany Fax: +49 421 200 3103 http://www.iu-bremen.de/
______________________________________________________________________ Do you want a free e-mail for life ? Get it at http://www.email.ro/

winston writes:
winston> Why do I want to do this is because the MIB filenames are winston> different than their internal module names (I can't change winston> the filenames). And so they are not loaded automatically.
So what you are really looking for is a mapping from module names to file names. On my preferred platform, this mapping is a symbolic link but I understand that this might not work in all places. So someone has to write a piece of code so that libsmi can load such mappings from the configuration file and use them while search for modules.
I think this is a good project for someone who wants to learn more about the libsmi internals. ;-)
/js
participants (2)
-
Juergen Schoenwaelder
-
winston