On Tue, Jul 31, 2012 at 1:28 PM, Dave Shield <d.t.shi...@liverpool.ac.uk>wrote:

> On 30 July 2012 15:27, Madhu Sudhana Rao <madhu...@gmail.com> wrote:
> > I replaced net-snmp version 5.2.1 to 5.6.2 which is working on all the
> > tables but for one of the table,
>
> Which table?
> Is this one you wrote yourself, or part of the standard agent?
>

  It is not part of the standard agent, I added this proprietary table.

Copied .c and .h files of myifTable from (agent/mibgroup), which is working
properly (both snmpget & snmpwalk) in version 5.2.1 to version 5.6.2 but in
latest version only snmpget is working but snmpwalk is giving "no such
object". I didn't change anything related to .c and .h files.

>
>
> >                                                snmpget command is
> working fine but
> > snmpwalk command is giving " NO SUCH OBJECT ON THIS OID" and for
> snmptable I
> > am getting "No entries.
>
> What does 'snmpgetnext' report?
>

With older version 5.2.1 I am getting correct output for snmpgetnext, I got
next objects output (below)...

snmpgetnext -Os -c public -M 3M_src/net-snmp/mibs/ -m ALL -v 2c
192.168.210.11 myifTable
myifSpeedSettings.1 = INTEGER: autonegotiate(1)


Where as with new version 5.6.2, I got output of like (below)
snmpgetnext -Os -c public -M src/net-snmp/mibs/ -m ALL -v 2c 192.168.210.11
myifTable
myipDefaultGatewayAddr.0 = IpAddress: 192.168.210.1

myipDefaultGatewayAddr is a scalar which is declared after the myifTable
table in the mib.

myifTable OID                         : 1.3.6.1.4.1.1212.1.14.1.2.6.1
myipDefaultGatewayAddr OID  : 1.3.6.1.4.1.1212.1.14.1.2.6.2


> Dave
>



-- 
Thanks & Regards...
Madhu
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to