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

2010-09-12 Thread anup.shankar
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:

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

2010-09-10 Thread anup.shankar
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

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

2010-08-26 Thread Dave Shield
On 26 August 2010 06:27, anup.shan...@emc.com wrote: Could you get a chance to look into this. I've managed to reproduce the problem, yes. (Once I'd stripped out all of the remaining C++ stuff from your example code!) Unfortunately I've only got one day before I leave for a week's

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

2010-08-26 Thread anup.shankar
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. Thanks, Anup -Original Message- From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent:

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

2010-08-26 Thread Dave Shield
On 26 August 2010 12:10, anup.shan...@emc.com 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

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

2010-08-25 Thread anup.shankar
Hi Dave, I changed the code as below, but now Get fails and Get next works. The below is the response. Dev6-MgmtServer:/usr/sbin # snmpget -v 2c -c public 127.0.0.1 1.3.6.1.4.1.1139.21.2.2.5.1.1.128.221.252.35 SNMPv2-SMI::enterprises.1139.21.2.2.5.1.1.128.221.252.35 = No Such Instance

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

2010-08-25 Thread Dave Shield
On 25 August 2010 07:21, anup.shan...@emc.com wrote: I changed the code as below, but now Get fails and Get next works The code snipprt is as below:: Hmmm... I'm not quite sure what is happening here. Could you please post (as attachments) the *complete* code of the MIB module that you

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

2010-08-25 Thread anup.shankar
Attached is the code.. Thanks for your help. ~Anup -Original Message- From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent: Wednesday, August 25, 2010 12:50 PM To: Shankar, Anup Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Fails::

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

2010-08-25 Thread Dave Shield
On 25 August 2010 08:30, anup.shan...@emc.com wrote: Attached is the code.. And the header files? What I'm looking to do is to try out your MIB module on my local system, so I can see exactly what is going wrong. In order to do that, I need *ALL* the stuff that you have added (including the

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

2010-08-25 Thread anup.shankar
Attached is the compiled code... -Original Message- From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent: Wednesday, August 25, 2010 1:20 PM To: Shankar, Anup Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Fails:: SNMPGetNext and

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

2010-08-25 Thread anup.shankar
Hi Dave, Could you get a chance to look into this. Thanks, Anup -Original Message- From: Shankar, Anup Sent: Wednesday, August 25, 2010 1:45 PM To: 'Dave Shield' Cc: net-snmp-users@lists.sourceforge.net Subject: RE: Fails:: SNMPGetNext and GetBulk has the IP Address Index reversed in

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

2010-08-24 Thread anup.shankar
Hi All, We are using NET-SNMP code for building an SNMP agent for servicing our MIB file. The MIB file reports performance metrics for the hardware. The Table entries in the MIB use IP Address as index. The setup is as below: - NET-SNMP : net-snmp-5.3.0.1-25.25 OS:

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

2010-08-24 Thread Dave Shield
On 24 August 2010 13:48, anup.shan...@emc.com wrote:        snmp_set_var_typed_integer( idx, ASN_IPADDRESS, ntohl(entry-vplexDirectorPrimaryIpAddr) ); The SMI type IpAddress is not an integer-based type. It is a (four-octet) binary string, which holds the address in network-byte order.