Hi, I'm using net-snmp version 5.1.2, as it's the one supported by RedHat 9. I've created an AgentX subagent with a MIB that has 5 scalar counters. I'm using the code generated by mib2c.scalar.conf and in the generated code i've completed the handlers as follows:
... uint32 value; ... case MODE_GET: sleep(1); /* Just to simulate the processing time to set the value */ snmp_set_var_typed_value(requests->, ASN_COUNTER, (u_char *) &value, sizeof(value)); break; ... If i run snmpwalk with a big timeout to any oid that makes snmpwalk perform a get-next to the 5 scalar objects i have in my MIB, my subagent dies after returning three of them, and without giving any error. I've looked at the debug information, but i couldn't see anything strange. I think it's quite easy to recreate the situation, but if needed i can provide the code and the debug information. Thanks in advance, Óscar ----------------------------------------- This email was sent using Qindel Webmail. http://www.qindel.es/ ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
