On Mon, 31 Dec 2007 15:39:33 +0530 deepak wrote:
DB> Here is how i issued the snmpget command,
DB> [EMAIL PROTECTED]:/home/deepak/clovis/buildtools/local/bin# ./snmpget -v 2c 
-c
DB> clovis localhost:161 1.3.6.1.4.1.94480.1.1.1.10.1.1.1
DB> Error in packet
DB> Reason: (noSuchName) There is no such variable name in this MIB.
DB> Failed object: SNMPv2-SMI::enterprises.94480.1.1.1.10.1.1.1
DB> 
DB> One thing to note, my GetFirstDataPoint() is getting the correct OID
DB> [1.3.6.1.4.1.94480.1.1.1.10] and the code writes the correct index value
DB> with correct length in put_index_data, value 1 and length 4 in this case
DB> using snmp_set_var_value().
DB> 
DB> Now, when my handler is called, the value is correct, the length is 8 and
DB> the OID is
DB> 1.0.3.0.6.0.1.0.4.0.1.0.94480 ! My understanding is that whatever is written
DB> to put_index_data(index value and length) should be passed to the handlers
DB> but in this case, the index length(which is 8) and OID is incorrect.

Is you handler code available for review? 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to