Ok, now i have tested this using both 5.4 and 5.4.1 and the results are
same.
I am listing below the details of my testing
1. Details of my m/c
[EMAIL PROTECTED]:~# uname -a
Linux amd64-2 2.6.20-15-generic #2 SMP Sun Apr 15 06:17:24 UTC 2007 x86_64
GNU/Linux
[EMAIL PROTECTED]:~# cat /etc/issue
Ubuntu 7.04 \n \l

2. After installing net-snmp-5.4.1, compiling my code against it, ran
snmpget command and the results are still same.
Here is how i issued the snmpget command,
[EMAIL PROTECTED]:/home/deepak/clovis/buildtools/local/bin# ./snmpget -v 2c -c
clovis localhost:161 1.3.6.1.4.1.94480.1.1.1.10.1.1.1
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: SNMPv2-SMI::enterprises.94480.1.1.1.10.1.1.1

One thing to note, my GetFirstDataPoint() is getting the correct OID
[1.3.6.1.4.1.94480.1.1.1.10] and the code writes the correct index value
with correct length in put_index_data, value 1 and length 4 in this case
using snmp_set_var_value().

Now, when my handler is called, the value is correct, the length is 8 and
the OID is
1.0.3.0.6.0.1.0.4.0.1.0.94480 ! My understanding is that whatever is written
to put_index_data(index value and length) should be passed to the handlers
but in this case, the index length(which is 8) and OID is incorrect.

Please note that in 32 bit machines, the value, length and OID comes as 1, 4
and
1.3.6.1.4.1.94480.1.1.1.10.1.1 resp.

Its been reported that net-snmp-5.4.1 works with many 64 bit m/cs, so the
question is what is missing here?

On Dec 17, 2007 3:04 PM, Dave Shield <[EMAIL PROTECTED]> wrote:
>
>
>
> On 12/12/2007, deepak b <[EMAIL PROTECTED]> wrote:
> > I was trying to use my generated code from mib2c.iterate.conf to do some
> > simple tests(get/set/walk) on a 64 bit m/c and i noticed that for an
OID(say
> > 1.3.6.1.4.1.94480.1.1.1), the requests(netsnmp_request_info) passed to
the
> > handlers contains the OID as zero padded, eg:
> > 1.0.3.0.6.0.1.0 ... .
> >  Am i doing something wrong or net-snmp doesnt work  with 64 bit m/cs?
Btw,
> > the same code works in 32 bit m/cs.
>
>
> Which version of the code are you using?
> There has been a significant amount of work done
> on 64-bit support recently, so please make sure you
> are using the latest release (5.4.1)
>
> Dave
>



-- 
Regards,
Deepak B.
-------------------------------------------------------------------------
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