Hi,
I tried looking at the documentation and
searching
the mailing list but could not find the answer to
this
question: Is it possible to use libsmi to get the
name and description from an OID (which is defined
in
a MIB that is present in the MIB search
path)?
I tried this code:
SmiNode *smiNode = ::smiGetNodeByOID(oidLen,
oidArr);
with oidArr = {1,3,6,1,2,1,1,3} and oidLen =
8,
but smiNode->description is NULL and ->name
is "iso". I expected
name to be "sysUpTime" and description to be
The ->oid member is simply {1}. Shouldn't it be
{1,3,6,1,2,1,1,3}?
Initializations is done like this:
smiInit(NULL);
char* pc = smiGetPath(); // For
verification.
where pc is a list of directories where I have my
MIBs.
Thanks for any suggestions you might have. I
am running on
Win2k and libsmi-0.3.1. I had to modify dump-scli.c
to make it
compile, since msvc 6 does not have
regexp.h.
Thanks,
Henrik