RE: Fails:: SNMPGetNext and GetBulk has the IP Address Index reversed in the request.

<[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

After a bit of investigaton, the Getnext and bulkget calls go to the next table, by adding a dummy colum entry with the below function call.

/*****************************************************************************************************************/
            case COLUMN_TABLENOOP:
                {
                    u_char x = '1';

                    netsnmp_table_build_result(reginfo, requests,
                        table_info, SNMP_NOSUCHOBJECT,
                        (u_char*) &x,
                        sizeof(x)); 
                    break;
                }
/*****************************************************************************************************************/


However the Snmpwalk does not retrive the next table column values, the call reaches the column handler with the call as below, but the snmpwalk stops here, and does not go further.


/*****************************************************************************************************************/
                snmp_set_var_typed_value( request->requestvb, ASN_OCTET_STR,
                    (u_char*)table_entry->rName,
                    table_entry->Name_len);
/*****************************************************************************************************************/


Any ideas further??

~Anup


-----Original Message-----
From: Shankar, Anup 
Sent: Friday, September 10, 2010 8:58 PM
To: Dave Shield
Cc: [email protected]; Shankar, Anup
Subject: RE: Fails:: SNMPGetNext and GetBulk has the IP Address Index reversed in the request.

Hi Dave,

I made the host to network order suggestion, and now it works for Get, GetNext and BulkGet calls.

However iam facing a issues with Getnext/Bulk/Snmpwalk get calls going to the next table, the bulk/walk requests are NOT going to next table, it traverses to the beginning of the same table row.

Attached is the file. I really appreciate any help in this regard as this is a blocking issue.

Thanks,
Anup


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield
Sent: Friday, August 27, 2010 11:10 AM
To: Shankar, Anup
Cc: [email protected]
Subject: Re: Fails:: SNMPGetNext and GetBulk has the IP Address Index reversed in the request.

On 26 August 2010 12:10,  <[email protected]> wrote:
> Any one else in the group, have faced this issue. it's extremely
> high priority to get this issue resolved.
>
> Any help in this is highly appreciated.

If you want a quick-n-dirty hack to get things working,
you could always tweak the vplexDirectorFETable_entry
(and similar) structure to include *two* fields for the
IP address - one held in host order and one in network
order.
   Then use one for the index processing (in the get_first
and get_next routines), and the other in the handler
itself (for the column object).

Dave


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.