On Tue, 12 Jun 2007 18:29:49 +0530 Awadhesh wrote:
AK> I am creating row initially at startup. I am using following code in init
AK> method of code.

Ok, that looks ok..

AK> When i do SNMP set request, i am not creating any row, A call back
AK> (gsomcGrpCfgTable_create_row) to create the row is called at runtime by
AK> Net-SNMP.

Ok, if you can get a particular index, but a set on the same index calls
create_row, something is wrong. The set request should find the existing row.

AK> I am again asking, wheather the way of index creation in startup
AK> is correct?

Yess, that looks ok.

AK> How my subagent will know that the request came for SET request on index
AK> column(there are two index in table)?

In the switch statement for the index columns in the reserve1 callback, simply
set rc = SNMP_ERR_NOTWRITABLE.

AK> so that i can delete the row and create a new value? 

I don't know that I'd recommend trying to do this automatically. A set request
on an index should fail. To delete a row, the table should have a RowStatus
column, or some other (non-index) column o delete the row.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to