Not able to retrieve all the Oid's after loading a private MIB

Hello,
I am presently using libsmi-0.3.1 on Windows NT.
I am using the following code given below: for((smiNode = smiGetNode(NULL, "1.3")) && (oidlen = smiNode->oidlen); smiNode && (first || smiNode->oidlen > oidlen); smiNode = smiGetNextNode(smiNode, SMI_NODEKIND_ANY), first = 0) { printf("%*s%-32s\n", (smiNode->oidlen - oidlen + 1) * 2, " ", smiNode->name); };
When I load the standard mib files distributed along with the libsmi like SNMPv2-MIB and SNMPv2-SMI. The above code prints the values till snmpObsoleteGroup. But when I load any private mib file. The above code prints the values till the private mibs and doesn't print anything from security onwards. Kindly advise me on what could be wrong here. Thanks, Yogesh

Hi!
Yogeshwara> I am using the following code given below: Yogeshwara> for((smiNode = smiGetNode(NULL, "1.3")) && (oidlen = smiNode-> oidlen); Yogeshwara> smiNode && (first || smiNode->oidlen > oidlen); Yogeshwara> smiNode = smiGetNextNode(smiNode, SMI_NODEKIND_ANY), Yogeshwara> first = 0) Yogeshwara> { Yogeshwara> printf("%*s%-32s\n", (smiNode->oidlen - oidlen + 1) * Yogeshwara> 2, " ", smiNode->name); Yogeshwara> };
Yogeshwara> When I load the standard mib files distributed along with Yogeshwara> the libsmi like SNMPv2-MIB and SNMPv2-SMI. The above code Yogeshwara> prints the values till snmpObsoleteGroup. But when I load Yogeshwara> any private mib file. The above code prints the values Yogeshwara> till the private mibs and doesn't print anything from Yogeshwara> security onwards. Kindly advise me on what could be wrong Yogeshwara> here.
Please supply a 100% concrete scenario (full compilable code and your private MIBs). Otherwise I cannot reconstruct your problem. Maybe, your first missed object just does not fulfill the `smiNode->oidlen > oidlen' condition?!
-frank
participants (2)
-
Frank Strauss
-
Yogeshwara G