sorry for the delay, I took a little vacation. On Tue, 17 May 2011 17:15:54 +0200 Giuseppe wrote: GM> Now I understand. The handler should returns always GM> SNMP_ERR_NOERROR, but the variable should be marked with an error GM> code with netsnmp_set_request_error().
Exactly. GM> Thank you for point me that. I have tried returning the error from GM> the handler and I had snmpwalk stopped at that OID. Does GM> netsnmp_set_request_error() solve the problem and let snmpwalk to GM> cross the entire tree, even in presence of errors for some GM> variables? yes, as long as the errors are with a particular oid and not a general failure. GM> > GM> 3. Variables that are related to hardware sub-sections in the GM> > GM> machine. What should I return if this sub-section stop communicating GM> > GM> with the agent (for a mulfunction)? Which error code to choose? GM> > GM> > SNMP_ERR_RESOURCEUNAVAILABLE. GM> GM> Should I use netsnmp_set_request_error() as above, or should I GM> return this error from the handler function? Yes, use netsnmp_set_request_error(). ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
