Hi,

The issue was , newtable has two index and  I was not adding only one index
to pdu(oid). I used  function netsnmp_table_helper_add_index() add them and
snmpget to each element works properly.

Thanks and Regards,
Pushpa.T

On Mon, Sep 21, 2015 at 10:01 PM, Pushpa Thimmaiah <
pushpa.thimma...@gmail.com> wrote:

> Hi Pranesh,
>
> 1) Check SNMP agent is running or not
> <pushpa>  SNMP agent is running </pushpa>
>  2) check with snmpgetnext
> <pushpa> snmpgetnext works </pushpa>
>
> On Mon, Sep 21, 2015 at 7:11 AM, Pranesh Kulkarni <pranes...@gmail.com>
> wrote:
>
>> 1) Check SNMP agent is running or not
>>  2) check with snmpgetnext
>>
>> On Mon, Sep 21, 2015 at 7:29 PM, Pushpa Thimmaiah <
>> pushpa.thimma...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I have defined new mib table and generated corresponding .c and .h file
>>> using tool 'mib2c'.
>>> I am able to walk on the newly created mib table
>>>
>>> test$ snmpwalk -m ALL -M ~/mibs -v 2c -c pushpa 192.168.107.26
>>> MIBMODULE::newTable
>>> MIBMODULE::newtableElement1.339787776.1 = INTEGER: 24
>>> MIBMODULE::newtableElement2.339787776.1 = INTEGER: 1
>>> MIBMODULE::newtableElement3.339787776.1 = INTEGER: 36
>>>
>>>
>>> $ snmpget -m ALL -M ~/mibs -v 2c -c pushpa 192.168.107.26
>>> MIBMODULE::newtableElement1.339787776.1
>>>
>>> MIBMODULE::newtableElement1.339787776.1= No Such Instance currently
>>> exists at this OID
>>>
>>>
>>> Kindly let me know how to debug the issue.
>>>
>>>
>>> Thanks and Regards,
>>> Pushpa.T
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Net-snmp-users mailing list
>>> Net-snmp-users@lists.sourceforge.net
>>> Please see the following page to unsubscribe or change other options:
>>> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>>>
>>>
>>
>>
>> --
>> Thanks,
>> Pranesh
>>
>
>
------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to