>>>>> "KRV" == K R Venkateshan writes:

KRV> But on a Net-SNMP system (5.1.4), the same sub-agent
KRV> code, even though is returning a
KRV> "SNMP_ERR-COMMITFAILED" or any other SNMP error, still
KRV> the client does not receive any error as part of the
KRV> SNMP response.

KRV> But when I move the commit phase code to the action
KRV> phase within the sub-agent, I get the exact error code
KRV> as provided by the subagent.

The commit phase shouldn't be allowed to have errors (and if it does,
it's too late to revert the change).

See: http://www.net-snmp.org/wiki/index.p...g_a_MIB_Module

on the bottom of that page is the diagram for how the flow works.
Errors should be checked for during the action phase.

Wes Hardaker
Sparta, Inc.

Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
Net-snmp-coders mailing list