On 29 December 2012 01:48, pal snmp <pals...@gmail.com> wrote:
> 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.

What are the access control settings for your agent?
What SET commands are you using to try and create the new row?

My immediate guess is that you may be trying to create new rows
using the community string 'public', which is typically read-only.
The first requirement is to ensure that the agent is configured
with a read-write community string (or SNMPv3 user), and this
is used for the SET request(s).


> 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?

There's not really sufficient information to answer that question,
but the most likely would be something like

    snmpset ....   exampleTableEntryRS.4 i 4  exampleName.4 s "row4 Name"

which should create a new row with index 4.

Dave

------------------------------------------------------------------------------
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. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
_______________________________________________
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