
Hi, I'm seeing some unexpected behavior in libsmi 0.4.1. I'm using a .smirc config file that contains one "level" statement, one "path" statement, then a big section of about 45 or 50 "load" statements. One of the load statements is:
load SNMP-COMMUNITY-MIB
I do have a file by that name in the search path, and I've verified that its syntax is OK by using smilint. Now when I run the following code:
smiInit(); /* some code omitted here */ node = smiGetNode(NULL,"snmpCommunityMIB");
then node is NULL, i.e. libsmi can't seem to find the node named snmpCommunityMIB even though it's defined in my SNMP-COMMUNITY-MIB. In fact, libsmi can't find any of the nodes defined in SNMP-COMMUNITY-MIB.
BUT... if I comment out all of the other load statements from my .smirc file except the one that loads SNMP-COMMUNITY-MIB, then when my code runs, libsmi seems to be able to find the node snmpCommunityMIB, because the variable "node" is not NULL. In fact, libsmi is able to find all of the nodes defined in SNMP-COMMUNITY-MIB.
Is this a libsmi bug? If not, any ideas what could be causing it and how I can fix it? I need to load all of my MIB modules, so it's not acceptable for me to leave the other load statements commented out.
Thanks,
Garth Conrad garthc@us.ibm.com
participants (1)
-
Garth R Conrad