Problems getting oid value from table
Kjersti Grønnevik
kgr____morecom.no
Thu Mar 14 15:59:18 CET 2002
Hi Frank.
I have now implemented the function MibTable::update(Request); in
myTableEntry.cpp (and defined in myTableEntry.h), but the the funtion is not
called.
Is there something else I must do to make this work?
Best regards,
Kjersti
----- Original Message -----
From: "Frank Fock" <Frank.Fock____t-online.de>
To: "Kjersti Grønnevik" <kgr____morecom.no>
Cc: <Frank.Fock____t-online.de>; <agentpp-dl____agentpp.com>
Sent: Thursday, March 14, 2002 1:12 AM
Subject: Re: Problems getting oid value from table
> 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