[AGENT++] Dynamic Table update: help needed

Frank Fock fock at agentpp.com
Tue Jul 3 20:41:52 CEST 2007


Hi Nilanjan,

You can check with the request ID whether you already
updated the table. Normally it should be sufficient
to update either the whole table or the rows affected
by any of the sub-request of Request*.

Hope this helps.

Best regards,
Frank

Nilanjan Sarkar wrote:
> Hi Friends,
> 
> I am facing a problem to use "MibTable::update(Request*)" method, to
> update the current value of a particular cell(Row+Column) of our Table.
> 
> What we observe, that "update(Request*)" method is called for each cell
> of a table,(or for each subrequest).
> 
> ==========
> 20070703.18:07:13: 10855: (3)EVENT  : RequestList: finished subrequest
> (ind)(oid)(val)(syn): (0), (1.3.6.1.4.1.4978.1.1.1.1.1), (./testmain),
> (4)
> ....
> 20070703.18:07:13: 10855: (3)EVENT  : RequestList: finished subrequest
> (ind)(oid)(val)(syn): (0), (1.3.6.1.4.1.4978.1.1.1.2.1), (10861), (66)
> ...
> 20070703.18:07:13: 10855: (3)EVENT  : RequestList: finished subrequest
> (ind)(oid)(val)(syn): (0), (1.3.6.1.4.1.4978.1.1.1.3.1), (1), (66)
> ...
> ==========
> 
> Where 
> 1) oid (1.3.6.1.4.1.4978.1.1.1.1.1) is for cell name "pname", which is
> of type OctetStr()
> 2) oid (1.3.6.1.4.1.4978.1.1.1.2.1) is for cell name "pid", which is of
> type Gauge32().
> 3) oid (1.3.6.1.4.1.4978.1.1.1.3.1) is for cell name "pstatus", which is
> of type Gauge32().
> 
> Now my question is that, is there anyway to get indication for a
> particular cell obj "get_request(Request* req, int ind)" method when
> "update" method is called, so that we can write our code inside each
> cell get_request(), to modify the current value of the object.
> 
> If not, then can you please guide me how to update each cell's current
> value from "update(Request*)". Is there any sample code for this? One
> example I saw, in "agent.cpp", but that is mainly to add new row into a
> table, not updating the value of an existing cell.
> 
> Thanks in advance.
> Regards,
> Nilanjan
> 
> 
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp

-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the AGENTPP mailing list