SNMP_COMMIT_FAILED error returning from commit_mode

Harini Donthineni <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAHfs=WxF+=8dVD9qdbHfdm33+dNzX6KQJV=rdqBwzj=Yt5SCHQ@mail.gmail.com>
Hi  Dave,



This is a query  regarding the net-snmp  subagent implementation.





I  am using the net-snmp version 5.1.4 ,in which I have some validation in
commit phase from (data base) and if validation fails my intention is to
return the SNMP ERROR (COMMIT_FAILED) but it looks like the

>From Net-snmp  forum I saw that the Commit phase can’t return errors
(everything is fine then only commit happens)I have moved my code which has
validation to the SET_ACTION Phase ,it works for certain validations. But
while creating a new row making new row status active it returns in
inconsistent value.







Pls help me before my code:





case MODE_SET_COMMIT:

                if (!ci->have_committed) {

                    /** do this once per row only */

                    genRstpTable_commit_row(&ci->data_context, ci->new_row);

                    ci->have_committed = 1;

                }

Break;







After the change                    genRstpTable_commit_row moved to action
code we have removed everything from commit-phase and moved to action
phase).





case MODE_SET_COMMIT:

break:





Can you please let me know any idea on what could be happening the issue.





Thanks,

Harini.


















-- 
Thanks & Regards
Harini

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.