This is a discussion on Request help in Table implementation within the SNMP Coders forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. --=_Boundary_4YgAp1L6nsLrs4sQwMHf Content-Type: text/html; charset=iso-8859-1 Content-Transfer-...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
This is a multi-part message in MIME format.
--=_Boundary_4YgAp1L6nsLrs4sQwMHf Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Diso-8859-1"> <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version = 6.5.7638.1"> <TITLE>Request help in Table implementation</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P><FONT SIZE=3D2 FACE=3D"Arial">Hi</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Arial">I generated the .c and .h files = using "mib2c.create-dataset.conf" for a table with a = integer as index. (only one index for the table)</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Arial">I did follow the steps as in the = example "data_set.c".</FONT> </P> <P><B><FONT SIZE=3D2 FACE=3D"Arial">The GETNEXT on the table works = correctly , but the GET fails for some reason. (always returns a null). = </FONT></B> </P> <P><B><FONT SIZE=3D2 FACE=3D"Arial">It doesn't reach my handler method = at all for the GET request, but reaches my handler method for = GETNEXT.</FONT></B> </P> <P><FONT SIZE=3D2 FACE=3D"Arial">Could you please throw some light on = this issue?</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Arial">The table is indexed by an integer and = I have 4 instances in an array that I maintain.(eg indexes are = 2002, 2003, 2004, 2005)</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Arial">On debugging, I could find the flow as = given below. Please correct me if I am wrong.</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Arial">GETNEXT Debug</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">--------------------------</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">The "netsnmp_call_handler" = invokes the following methods </FONT> <BR> <FONT SIZE=3D2 = FACE=3D"Arial">bulk_to_next</FONT> <BR> <FONT SIZE=3D2 = FACE=3D"Arial">table</FONT> <BR> <FONT SIZE=3D2 = FACE=3D"Arial">table_data</FONT> <BR> <FONT SIZE=3D2 = FACE=3D"Arial">netsnmp_table_data_set</FONT> <BR> <FONT SIZE=3D2 = FACE=3D"Arial">helper handler</FONT> <BR> <FONT SIZE=3D2 = FACE=3D"Arial">myTable</FONT> </P> <BR> <P><FONT SIZE=3D2 FACE=3D"Arial">GET Debug</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">-----------------</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">The "netsnmp_call_handler" = invokes the following methods on GET</FONT> <BR> <FONT SIZE=3D2 = FACE=3D"Arial">bulk_to_next</FONT> <BR> <FONT SIZE=3D2 = FACE=3D"Arial">table</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Arial">It stops with "table". It = does not reach table_data , netsnmp_table_data_set, or myTable.</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Arial">Please help me to know what could be = the reason and how to resolve it.</FONT> </P> <BR> <P><FONT SIZE=3D2 FACE=3D"Arial">Thanks in advance</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Arial">Thanks & Regards</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">Anuradha.A</FONT> </P> <BR> </BODY> </HTML> --=_Boundary_4YgAp1L6nsLrs4sQwMHf Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit DISCLAIMER: ----------------------------------------------------------------------------------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. ----------------------------------------------------------------------------------------------------------------------- --=_Boundary_4YgAp1L6nsLrs4sQwMHf 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/ --=_Boundary_4YgAp1L6nsLrs4sQwMHf 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 --=_Boundary_4YgAp1L6nsLrs4sQwMHf-- |