Thanks Dave. After using the proper security name, and debugging it
further, I could get my set operation work.
However, I noticed something that I would like to share and get your
opinion on.
I create a final row in the back-end when the ACTION method for
exampleTableEntryRS
is invoked. However, the ACTION method for exampleName is not getting
invoked until after the ACTION method for entryRS is invoked. This causes
an empty string being created in the back-end for exampleName column.So, in
order to workaround, I save exampleName in RESERVED1 action-method.
Is this really expected? Why would the agent not call ACTION methods for
the preceding columns before calling the entryRS column?

-Thanks
Pal


On Fri, Dec 28, 2012 at 5:48 PM, pal snmp <pals...@gmail.com> wrote:

> All,
>
> I created a simple table (one integer index) and got the agent
> implementation using old API handlers done.
> However, I am having tough time understanding how to add a row into the
> table.
> First of all, my write_* methods are never called for some reason though I
> set the write_* methods appropriately.
>
> My table is like this (FYI.no smilint errors in MIB definitions).
>
> exampleTableEntry ::=
>     SEQUENCE {
>     exampleIndex                   Integer32,
>     exampleName                   OCTET STRING,
>     exampleTableEntryRS        RowStatus
>     }
>
> Assume I have 3 rows already pre-populated in the table and trying to add
> a 4th one. what are the sequence of operations (GET, GETNEXT, and SET) for
> adding this new row?
> Also what are the sequence of steps from master Agent to the subagent
> (dynamically built into master)?
> I already looked at AGENT.txt file that has few details on SET operation,
> however, I am puzzled on the very basic sequences.
> Thanks for clarifying
> Pal
>
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to