On Fri, Jan 29, 2016 at 12:56:12PM +0530, deepak.sachan wrote: > hello > I am trying to add a new MIB in net-snmp .What i did is- > 1. Generate a new MIB (i.e. DEALN-TROPO-MIB) by some MIB builder software > 2. I copied DEALN-TROPO-MIB into usr/snmp/mibs > 3.I ran mib2c -c DEALN-TROPO-MIB::sysRate > 4. i got following error- > You didn't give mib2c a valid OID to start with. IE, I could not find > any information about the mib node "UCD-DEMO-MIB::ucdDemoPassphrase". 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 > DEALN-TROPO-MIB::sysRate > 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. > have any one solution????
Yes. The problem is that DEALN-TROP-MIB uses UCD-DEMO-MIB::ucdDemoPassphrase (why???) but you have not told mib2c to load that mib. I would probably tell mib2c to load all mibs using MIBS=ALL mib2c -c mib2c.scalar.conf DEALN-TROPO-MIB::sysRate /MF ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders