On Wed, Sep 28, 2005 at 03:14:56PM +0100, Patrick Welche wrote:
> On Tue, Sep 27, 2005 at 10:55:15AM -0700, Wes Hardaker wrote:
> > >>>>> On Tue, 27 Sep 2005 17:12:16 +0100, Patrick Welche <[EMAIL
> > >>>>> PROTECTED]> said:
> >
> > Patrick> from snmpget. Still playing spot the difference.. Any tips/hints?
> >
> > Works for me, assuming I cut out the free of the pdu that shouldn't be
> > freed:
> >
> > 0, 9: DISMAN-EVENT-MIB::sysUpTimeInstance
> > 1, 9: SNMPv2-MIB::sysDescr.0
> > 2, 11: IF-MIB::ifIndex.1
> > All...
> > DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (14901) 0:02:29.01
> > SNMPv2-MIB::sysDescr.0 = STRING: XXX
> > ...OK
>
> but... (there's always a but) Dave's note was about a second varbind
> being wrong, even though there doesn't appear to be one. If I tcpdump
> the apparently working programme above:
>
> { GetRequest(36) R=1338484700 .1.3.6.1.2.1.1.3.0 .1.3.6.1.2[|snmp] }
> { GetResponse(36) R=1338484700 .1.3.6.1.2.1.1.3.0=1072276364 =[|snmp] }
>
> If I do an snmpget, I see
>
> { GetRequest(28) R=1858222893 .1.3.6.1.2.1.1.3.0 }
> { GetResponse(32) R=1858222893 .1.3.6.1.2.1.1.3.0=1072288959 }
>
> i.e., no extra stuff after the ...1.1.3.0 You should see that if you
> tcpdump. The chances are that it's that extra stuff that is causing
> the noSuchName...
It gets better :-( Running that programme against a locally running snmpd
gives me clean trace e.g. (peername=127.0.0.1)
GetRequest(42) R=373369654 .1.3.6.1.2.1.1.3.0 .1.3.6.1.2.1.1.1.0
GetResponse(46) R=373369654 .1.3.6.1.2.1.1.3.0=8600 .1.3.6.1.2.1.1.1.0=[|snmp]
as opposed to across the wire
GetRequest(36) R=1459451023 .1.3.6.1.2.1.1.3.0 .1.3.6.1.2[|snmp]
GetResponse(36) R=1459451023 .1.3.6.1.2.1.1.3.0=1473266649 =[|snmp]
Same programme, just different session.peername :-(
Any thoughts?
Cheers,
Patrick
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders