Hi,

I'm using net-snmp version 5.1.2, as it's the one supported by RedHat
RHEL4, but it behaves the same with 5.2.2 on Suse 10.
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 SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to