On 30 September 2011 08:20, Narasimha Murthy N. <narasim...@tejasnetworks.com> wrote: > I want to get SNMP response in user-friendly format. So, as per the page > http://www.net-snmp.org/docs/FAQ.html#How_do_I_add_a_MIB_to_the_tools_, > I placed all enterprise MIB files in a folder and specified the folder > name in net-snmp commands (-M option).
That tells the tools *where* to find the MIB files. But you also need to tell the tools *which* MIB files to load. e.g. using the '-m' option. If you don't specify this, they will load the default set of MIBs as configured when the tools were compiled. > Even then, when I specify numeric > OIDs, I am not getting the response in a user-friendly format for some > of the operations (1 and 2 listed below). Because you are not telling the tools to load the TEJASCARD-MIB Try adding the option -m +TEJASCARD-MIB > Operation 3: This translation is ok. > [root@narasimha bin]# ./snmptranslate -M +/root/tejmibs -On > TEJASCARD-MIB::localSlot Here you are explicitly telling the snmptranslate tool to load the TEJASCARD-MIB file (as part of specify the OID to translate) > Operation 4: Response is user-friendly > [root@narasimha bin]# ./snmpgetnext -M +/root/tejmibs -v 2c -c > $COMMUNITY $AGENT_IP TEJASCARD-MIB::localSlot Again, you are explicitly telling snmpgetnext to load the TEJASCARD-MIB file (as part of specify the OID to retrieve) Dave ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 _______________________________________________ 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