Hi Forum Members,

I have installed net-snmp-5.3.2.2-7.el5 and 
net-snmp-utils-5.3.2.2-7.el5. When I use net-snmp commands such as 
snmptranslate and snmpgetnext, 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). 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). Instead, I am getting response 
as SNMPv2-SMI::enterprises.8255.1.2.1.2.5.1.1.10. How to get the 
response in user-friendly format? Appreciate an early response.

Operation 1: Response is not user-friendly, as I have to look into MIB 
file to find out the MIB object TEJASCARD-MIB::localSlot
[root@narasimha bin]# ./snmptranslate -M +/root/tejmibs 
.1.3.6.1.4.1.8255.1.2.1.2.5.1.1.10
SNMPv2-SMI::enterprises.8255.1.2.1.2.5.1.1.10

Operation 2: Response is not user-friendly, as I have to look into MIB 
file to find out the MIB object.
[root@narasimha bin]# ./snmpgetnext -M +/root/tejmibs -v 2c -c 
$COMMUNITY $AGENT_IP .1.3.6.1.4.1.8255.1.2.1.2.5.1.1.10
SNMPv2-SMI::enterprises.8255.1.2.1.2.5.1.1.10.1.1 = INTEGER: 1

Operation 3: This translation is ok.
[root@narasimha bin]# ./snmptranslate -M +/root/tejmibs -On 
TEJASCARD-MIB::localSlot
.1.3.6.1.4.1.8255.1.2.1.2.5.1.1.10

Operation 4: Response is user-friendly
[root@narasimha bin]# ./snmpgetnext -M +/root/tejmibs -v 2c -c 
$COMMUNITY $AGENT_IP TEJASCARD-MIB::localSlot
TEJASCARD-MIB::localSlot.1.1 = INTEGER: 1

-- 
Regards, Narasimha Murthy
x825 | +91-96502-10355


------------------------------------------------------------------------------
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

Reply via email to