Re: [libsmi] How to read in a mib file (text format)

Frances Lung writes:
Frances> I'm new to libsmi and just download libsmi 0.2.12. Does Frances> libsmi can read in a mib file at run time and build a tree Frances> structure internally (I mean in memory)? Does Frances> smiLoadModule(...) will do the job?
Yes. smiLoadModule() loads a module (and all modules imported by that module) into internal data structures. A module can be specified by a pathname to read a concrete file or by module name to read the module from the libsmi module repository. The structures can then be traversed by a number of smiGet...() functions. See the man pages for more details. -- !! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to libsmi-request@ibr.cs.tu-bs.de. !! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.
participants (1)
-
Frank Strauss