Ok, let me explain in detail the problem I am experiencing: I deleted my MIB file from the /usr/local/share/snmp/mibs/ and put it on $HOME/.snmp/mibs/. Then I added my MIB to the MIBS variable so that mib2c could find it, as well as the default mibs, with the command:
$> export MIBS=+MY-MIB As far as I know, that would be enough for mib2c to find the MIB and load it correctly, right?(without the need to set MIBDIRS cause the MIB is in one of the default folders it checks) However, when I run mib2c, I get the following error message stating that it couldn't find the MIB with the node I called it with: No log handling enabled - turning on stderr logging VIA-PE-MIB: Module not found Cannot find module (VIA-PE-MIB): At line 0 in (none) VIA-PE-MIB: Module not found You didn't give mib2c a valid OID to start with. IE, I could not find any information about the mib node "mgcpConfigCallAgent". This could be caused because you supplied an incorrectly node, or by the MIB that you're trying to generate code from isn't loaded. To make sure your mib is loaded, run mib2c using this as an example: env MIBS="+MY-PERSONAL-MIB" mib2c -c mib2c.scalar.conf mgcpConfigCallAgent You might wish to start by reading the MIB loading tutorial at: http://www.net-snmp.org/tutorial-5/commands/mib-options.html And making sure you can get snmptranslate to display information about your MIB node. Once snmptranslate works, then come back and try mib2c again. Now I really don't know what I'm doing wrong. If anybody could point it out I'd really appreciate it... Thanks On 4/21/05, Robert Story <[EMAIL PROTECTED]> wrote: > On Thu, 21 Apr 2005 16:22:17 +0100 Dave wrote: > DS> > It was empty anyway > DS> > DS> But the default list isn't found in MIBDIRS. > DS> It's hardcoded into the SNMP library. > > There is a difference between empty and not set. If MIBDIRS is set to empty, > then that's saying "don't look anywhere for mibs." > > If it is set and empty, then unset it to get the apps to use the internal > defaults. > > -- > NOTE: messages sent directly to me, instead of the lists, will be deleted > unless they are requests for paid consulting services. > > Robert Story; NET-SNMP Junkie > Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> > Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users> > > You are lost in a twisty maze of little standards, all different. > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users