
Hi!
Diego> i'm trying to do a program takes the oid of a trap and shows the Diego> information of that trap, name, description. how could i do this?
The general problem is to get a module&identifier out of an OID. Libsmi can solve this query only for the modules that have been loaded. If you know the set of MIB modules that contain all the required information, then smiLoadModule() all those modules, then smiGetNodeByOID() the SmiNode of each notification OID you receive, and walk through the varbinds.
Unfortunately, there is no tutorial for libsmi, but the man pages and the programs in the tools directory may help to get on the right track.
Diego> i haven't find any example about how to do it, other problem Diego> that i have is that i almost know nothing about how snmp works, Diego> could you point.
The formal way to learn about SNMP is to read the appropriate RFCs. The (in my opinion) in the first step more efficient way, is to read a good book, and then use the RFCs as a reference. What `good' is, depends a little on your goal. My starting point was a former revision of:
@Book{Ros96, author = "M. T. Rose", title = "The Simple Book -- An Introduction to Internet Management, Revised Second Edition", edition = "2", publisher = "Prentice Hall", year = "1996", ISBN = "0-13-451659-1", }
-frank -- !! 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.