To: tkined@ibr.cs.tu-bs.de
cc:
Subject: PROBLEM using tnm library direct from C/C++
I have built the tnm library directly into my C++ agent. I am using this
simply for MIB knowledge (eg Name <-> OID translation).
The library seems to work well. Use Tnm_MibParse() to load all the asn1
files to setup the internal tree. Then further use the various functions to
get the knowledge from the mib. eg. Tnm_MibGetOid(char *name) to convert a
MIB name to an OID etc etc....
PROBLEM
- ---------------
I want to use the library to convert OID back into name (to find the names
of traps received for example).
I use the function Tnm_MibGetName(char *oid) for this, but it seems to
return NULL every time??? Is there a bug here or am I not using this
correctly.
Here is an example of how I am using the functions:
Tnm_MibGetOid("sysDescr.0", 0) this returns "1.3.6.1.2.1.1.1.0"
Works!!!!
Tnm_MibGetName("1.3.6.1.2.1.1.1.0", 0) returns NULL. Fails!!!!!
Is this a known bug? If not what am I doing wrong?
Gary Hicking
----------------------------------------------
Wavetek, Wandel & Goltermann
Eurotech House, Burrington Way,
Plymouth, Devon, PL5 3LZ.
Tel : +44 (0) 1752 765707
Fax : +44 (0) 1752 783000
Mobile : +44 (0) 7771 822859
e-mail : gary.hicking@wago.de
-----------------------------------------------
-- !! This message is brought to you via the `tkined & scotty' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>. !! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.