Opening and reading MIB files

Christopher Draycott <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
I would like to be able to open MIB files within my own application, obtain a tree structure of all the items within those mib files and present the items in my user interface to be picked (much like a mib browser).
 
I have started by using the following function calls:
 
init_mib()
 
add_mibdir()
 
read_mib()
 
I have some questions regarding this:
 
1. Are these the correct functions to be using?
2. Are there any dependencies on other programs running for them to work?
3. Do i need to perform any init_snmp() type functions if all i want to do is browse some MIB files?
4. What default directories are added as MIB file directories, if any?
4. When I use the above functions my tree structure is always returned as NULL? I am obviously missing something. Do you have any idea?
 
Any help much appreciated.
 
Thanks
_________________________________________________________________
The next generation of MSN Hotmail has arrived - Windows Live Hotmail
http://www.newhotmail.co.uk

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.