This is a discussion on Re: on 64 bit within the SNMP Coders forums, part of the Networking and Network Related category; --===============1864785833== Content-Type: multipart/alternative; boundary="----=_Part_25805_213433.1199095773554" ------=_Part_25805_213433.1199095773554 Content-Type: text/plain; charset=ISO-8859-1 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============1864785833==
Content-Type: multipart/alternative; boundary="----=_Part_25805_213433.1199095773554" ------=_Part_25805_213433.1199095773554 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 root@amd64-2:~# uname -a Linux amd64-2 2.6.20-15-generic #2 SMP Sun Apr 15 06:17:24 UTC 2007 x86_64 GNU/Linux root@amd64-2:~# 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, root@amd64-2:/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 <D.T.Shield@liverpool.ac.uk> wrote: > > > > On 12/12/2007, deepak b <deepakb.se@gmail.com> 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. ------=_Part_25805_213433.1199095773554 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Ok, now i have tested this using both 5.4 and 5.4.1 and the results are same.<br>I am listing below the details of my testing<br>1. Details of my m/c<br>root@amd64-2:~# uname -a<br>Linux amd64-2 2.6.20-15-generic #2 SMP Sun Apr 15 06:17:24 UTC 2007 x86_64 GNU/Linux <br>root@amd64-2:~# cat /etc/issue<br>Ubuntu 7.04 \n \l<br><br>2. After installing net-snmp-5.4.1, compiling my code against it, ran snmpget command and the results are still same.<br>Here is how i issued the snmpget command, <br>root@amd64-2:/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<br>Error in packet<br>Reason: (noSuchName) There is no such variable name in this MIB.<br> Failed object: SNMPv2-SMI::enterprises.94480.1.1.1.10.1.1.1<br><br>One thing to note, my GetFirstDataPoint() is getting the correct OID<br>[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(). <br><br>Now, when my handler is called, the value is correct, the length is 8 and the OID is<br>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. <br><br>Please note that in 32 bit machines, the value, length and OID comes as 1, 4 and <br>1.3.6.1.4.1.94480.1.1.1.10.1.1 resp.<br><br>Its been reported that net-snmp-5.4.1 works with many 64 bit m/cs, so the question is what is missing here? <br><br>On Dec 17, 2007 3:04 PM, Dave Shield <<a href="mailto:D.T.Shield@liverpool.ac.uk">D.T.Shiel d@liverpool.ac.uk</a>> wrote:<br>> <br>> <br>> <br>> On 12/12/2007, deepak b <<a href="mailto:deepakb.se@gmail.com"> deepakb.se@gmail.com</a>> wrote:<br>> > I was trying to use my generated code from mib2c.iterate.conf to do some<br>> > simple tests(get/set/walk) on a 64 bit m/c and i noticed that for an OID(say<br>> > 1.3.6.1.4.1.94480.1.1.1), the requests(netsnmp_request_info) passed to the<br>> > handlers contains the OID as zero padded, eg:<br>> > 1.0.3.0.6.0.1.0 ... .<br>> > Am i doing something wrong or net-snmp doesnt work with 64 bit m/cs? Btw, <br>> > the same code works in 32 bit m/cs.<br>> <br>> <br>> Which version of the code are you using?<br>> There has been a significant amount of work done<br>> on 64-bit support recently, so please make sure you <br>> are using the latest release (5.4.1)<br>> <br>> Dave<br>> <br><br><br><br>-- <br>Regards,<br>Deepak B. ------=_Part_25805_213433.1199095773554-- --===============1864785833== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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/ --===============1864785833== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders --===============1864785833==-- |