Unable to Extend snmpd: There is not such variable name in this MIB

Leo Lin <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi All,
 
I created a small MIB file with 2 scalar variables, var1, and var2.  I was able to add this MIB file into the snmp.conf file.  and when run snmptranslate -Tp -IR var1 or snmptranslate -Tp IR var2 it was able to interpreted the OID.
 
I configured the snmpd.conf community name to 'public' under read/write access, and I'm using SNMPv1/v2c
 
after creating the skeleton source and header file with mib2c and recompile them; I got the following error while issuing the snmpget command
 
% snmpget -v 1 -c public localhost MY-MIB::var1.0
Error in packet.
Reason: (nosuchName) There is no such variable name in this MIB
Failed object: MY-MIB::var1.0
 
same happens with SNMP-SET
% snmpset -v1 -c public localhost MY-MIB::var1.0 integer 50
Error in packet.
Reason: (nosuchName) There is no such variable name in this MIB
Failed object: MY-MIB::var1.0
 
I know that if my comunity name are not set correctly, Net-SNMP in SNMPv1 will display this error, but I removed all access restrictions under read/write community name.
 
Can anyone tell me what could be wrong?
 
Thanks!!
 
Leo;

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.