Hi,

I have created a MIB file
It is present at path :

[gkasliwal@svl-junos-d072 /b/gkasliwal/14.2_ib_psd/src/junos/shared/mibs]$ ls | 
grep jnx-bgpmib
jnx-bgpmib2.mib
jnx-bgpmib3.mib
jnx-bgpmib3_tc.mib


I have kept all the mibs files at path :
/homes/gkasliwal/.snmp/mibs
As well.

Now I am giving command as follows :

[gkasliwal@svl-junos-d072 /b/gkasliwal/14.2_ib_psd/src/dist/net-snmp/local]$ 
./mib2cgen table jnxbgp4V2DiscontinuityTable

And I am getting errors  :


Warning: This entry is pretty silly (jnxbgp4V2TC): At line 23 in 
/homes/gkasliwal/.snmp/mibs/jnx-bgpmib3_tc.mib
Warning: This entry is pretty silly (jnxBgp4V2): At line 38 in 
/homes/gkasliwal/.snmp/mibs/jnx-bgpmib3.mib
Expected "}" (EOF): At line 1758 in /homes/gkasliwal/.snmp/mibs/jnx-bgpmib3.mib
: (is a reserved word): At line 1758 in 
/homes/gkasliwal/.snmp/mibs/jnx-bgpmib3.mib

You didn't give mib2c a valid OID to start with.  IE, I could not find
any information about the mib node "jnxbgp4V2DiscontinuityTable".  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 -i -c mib2c.jnpr-table.conf 
jnxbgp4V2DiscontinuityTable

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.

indent: jnxbgp4V2DiscontinuityTable_mthd.c: No such file or directory

I tried following :
env MIBS=/homes/gkasliwal/.snmp/mibs/
and

mib2c -i -c mib2c.jnpr-table.conf jnxbgp4V2DiscontinuityTable

still I am facing the same errors. Can you please tell if I am missing anything 
/ things I need to do.


Thanks,
Gaurav

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to