On 11 January 2011 22:45, Homan, Dave <[email protected]> wrote:
> Can someone please clarify how (or if) table_dataset.c creates indices for
> new rows if the values are NOT specified in an SNMP SET request?

How is it possible to send such a request?

There must be some varbind within the SET request that is used to
trigger the creation of the row.   This will typically be a 'RowStatus'
varbind.
    So this varbind will include the desired index values - which are
then used to create the new row.



>                             Note that evalIndex
> is read-only – this appears to be common in MIBs when using numeric
> indices.

It shouldn't be read-only - it ought to be 'not-accessible'
And this doesn't just apply to numeric indices - *all* index objects
should be 'not-accessible'


>  I can certainly set MAX-ACCESS of the evalIndex ‘read-create’ and
> simply supply the index value in the multivariable SET, but I kinda wanted
> to know how the big boys do it with a ‘read-only’ index.

Take the index values from the other varbinds in the SET request.
You shouldn't need to (or be able to) supply varbinds for the index
objects explicitly.



> I have been able to set all the other columnar objects (including the
> RowStatus column) using a multivariable snmpset (with no index value
> supplied).

Eh?
How can you even *refer* to a RowStatus instance without supplying an
index value for it?



> I also tried setting the RowStatus value to ‘active’, thinking this might
> trigger some row index activity in the table data set handler.  When I try
> to get the value of the index, I get a “no such instance message”.

That's because you haven't yet created the new row.

Please re-read the description of RowStatus syntax - either from the
MIB definitions, or any SNMP book.   Pay particular attention to the
values 'create-and-wait'  and 'create-and-go'


Dave

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
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

Reply via email to