Re: snmpd crash after "response to proxy request illegal. We're screwed"
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 30 March 2011 10:49, Tomasz Chmielewski <[email protected]> wrote: > But - thanks for your help - I think we found a bug in the application and it now replies: > > # snmpget -v 2c -c public localhost:1611 .1.3.6.1.4.1.34039.10.9 .1.3.6.1.4.1.34039.10.2 > SNMPv2-SMI::enterprises.34039.10.9 = INTEGER: 0 > SNMPv2-SMI::enterprises.34039.10.2 = No Such Instance currently exists at this OID > > > snmpd does not crash anymore. Could it be it was the cause for snmpd crashing? Yes - an incomplete response might well result in the Net-SNMP agent crashing. I'll look to see if I can spot how to protect against this. But I can see another problem. The response above shows that the proxied agent is now returning a value for .1.3.6.1.4.1.34039.10.9 This means that a GETNEXT request for any OID prior to this, ought to return the same varbind (or something earlier). However: > Other outputs you asked for (before, after the "fix" the output is the same): > > # snmpgetnext -v 2c -c public localhost:1611 .1.3.6.1.4.1.34039.10.2 > SNMPv2-SMI::enterprises.34039.10.2 = No more variables left in this MIB View This is reporting that there isn't anything after ....10.2 These two responses are inconsistent. Either GET on 10.9 should return noSuchInstance or GETNEXT on 10.2 should return the 10.9 varbind And given the structure of the information returned under 10.1, I'm really not convinced that 10.9 can possibly be a valid instance OID. What does the MIB that defines this information look like? Dave ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users