!
No problem, I hope it may help:
MibLoader loader = new MibLoader();
mib = loader.load(new File(fileSNMPv2SMI));
mib = loader.load(new File(fileSNMPv2TC));
mib = loader.load(new File(fileSNMPv2CONF));
mib = loader.load(new File(fileIANAifTypeMIB));
mib = loader.load(new File(fileSNMPv2MIB));
mib = loader.load(new File(fileIFMIB));
valuesymbol = mib.getSymbolByOid(OID);
But as far as im concern, the IF-MIB only extends the MIB tree of SNMPv2-MIB.
Besides the IF-MIB needs the SNMPv2-MIB (it never loads without that -
so it needs thiese multiple loadings) and there arent any nodes, which
would be on both MIBs' trees, so there is nothing to overwrite, I
think.
As I know, the load method can load multiple MIB without problem....or not?
"Loads a MIB file. This method will also load all imported MIB:s if
not previously loaded by this loader.(--doesnt work for me) If a MIB
with the same file name has already been loaded, it will be returned
directly instead of reloading it."
Thanks anyway...
regards,
Daniel
On 3/13/07, Hall, Matthew <[EMAIL PROTECTED]> wrote:
It might help to see more complete code, but aren't you overwriting the
reference 'mib' by assigning the value of two different loader queries into the
same reference?
Regards,
Matthew Hall
Security Solutions Engineer
Hewlett-Packard Company
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Daniel Gyorfi
> Sent: Tuesday, March 13, 2007 7:46 AM
> To: [email protected]
> Subject: [Mibble-users] problem with MIbLoader.load
>
> Hi All!
>
> Im using MibLoader to load multiple MIB from multiple files.
> ...
> mib = loader.load(mib1); //SNMPv2-MIB
> mib = loader.load(mib2); //IF-MIB
> ...
>
> after this, im trying to get a mibsymbol with getValueByOid.
> The problem is, that i cannot get the mibsymbol from mib1, after mib2
> is loaded, only from mib2.
> (after commenting the line with mib2, the mibsymbol is reachable)
>
> is this a common problem or i missed something?
>
> Many thanks,
>
> --
> Daniel Gyorfi
> xn--gyrfidniel-x4a35k
>
>
> _______________________________________________
> Mibble-users mailing list
> [email protected]
> http://lists.nongnu.org/mailman/listinfo/mibble-users
_______________________________________________
Mibble-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/mibble-users
--
Daniel Gyorfi
xn--gyrfidniel-x4a35k
_______________________________________________
Mibble-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/mibble-users