On Wed,  9 Jun 2004 12:29:28 +051800 [EMAIL PROTECTED] wrote:
VC> I have a small problem in generating code for an experimental mib i wrote.
VC> I have a mib called MY-MIB and it has a table MyTable.

Have you tried running smilint on your mib to make sure it is syntactically
correct?

VC> when I try to run mib2c to generate the skeletal c code for MyTable I
VC> always get the message "you didn't give me a valid OID to start with at
VC> /usr/bin/mib2c line 115."
VC> I have tried various options with mib2c like :
VC> mib2c -c mib2c.iterate.conf -m ALL -M <the path of my mib file>
VC> MY-MIB::MyTable Prior to this I also ran export MIBS=ALL
VC> 
VC> My mib loads in any browser and also if i run the following command :
VC> snmptranslate -m ALL -M <the path of my mib file> -T pd MY-MIB::MyTable

First, -M expects a directory, not a file.

Second, I suggest that you get snmptranslate working without any extra command
lines. Create ~/.snmp/snmp.conf, and add

        mibs ALL
        mibdirs +<patch to directory where your mib is>

Once 'snmptranslate MY-MIB::MyTable' works, try mib2c again.


-- 
Robert Story; NET-SNMP Junkie <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. 


-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to