Discussion:
snmpwalk on table works but snmpget on the same fails
(too old to reply)
Pushpa Thimmaiah
2015-09-21 13:59:48 UTC
Permalink
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
Pranesh Kulkarni
2015-09-21 14:11:14 UTC
Permalink
1) Check SNMP agent is running or not
2) check with snmpgetnext

On Mon, Sep 21, 2015 at 7:29 PM, Pushpa Thimmaiah <
Post by Pushpa Thimmaiah
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
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
--
Thanks,
Pranesh
Pushpa Thimmaiah
2015-09-21 16:31:50 UTC
Permalink
Hi Pranesh,

1) Check SNMP agent is running or not
<pushpa> SNMP agent is running </pushpa>
2) check with snmpgetnext
<pushpa> snmpgetnext works </pushpa>
Post by Pranesh Kulkarni
1) Check SNMP agent is running or not
2) check with snmpgetnext
On Mon, Sep 21, 2015 at 7:29 PM, Pushpa Thimmaiah <
Post by Pushpa Thimmaiah
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
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
--
Thanks,
Pranesh
Pushpa Thimmaiah
2015-09-25 04:53:45 UTC
Permalink
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 <
Post by Pushpa Thimmaiah
Hi Pranesh,
1) Check SNMP agent is running or not
<pushpa> SNMP agent is running </pushpa>
2) check with snmpgetnext
<pushpa> snmpgetnext works </pushpa>
Post by Pranesh Kulkarni
1) Check SNMP agent is running or not
2) check with snmpgetnext
On Mon, Sep 21, 2015 at 7:29 PM, Pushpa Thimmaiah <
Post by Pushpa Thimmaiah
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
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
--
Thanks,
Pranesh
Loading...