Re: Unable to Extend snmpd: There is not such variable name in this MIB
Mishustin Kirill <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
01.09.2010 04:11, Leo Lin wrote: > 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; > > First thing to do : try to run snmpd with "-Dmib_init" to see if your module ever gets inited. Second: try to retrieve some variables not from your mib. sysUpTime for example. If module gets inited and other variables retrieving ok - post source code of your module (as attachment) here. ------------------------------------------------------------------------------ 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