Problems getting oid value from table
Frank Fock
Frank.Fock____t-online.de
Thu Mar 14 01:12:25 CET 2002
Kjersti Grønnevik wrote:
> Hi Frank,
> Thank you so much for great help!
>
> I have not added any row to the table, I just hard coded the one oid
> value( *((OctetStr*)value)="test123";) in myMib.cpp(generated by agentGen)
> in the function MyColumn::get_request(req, ind) .
>
OK.
>
> Where are the best place to add rows? Do the rows have to be added before
> they are requested for?
Yes, you could either run a thread that updates table data regularly. Another,
probably better, aproach could be updating the table by implementing the
update method. See the mailing list archive for details and the AgentX++
subagent (if_mib.cpp) example.
>
> My plan are to add the rows when they are requested, by using the index to
> fetch the row data from a database.
>
See above.
Best regards,
Frank
More information about the AGENTPP
mailing list