Problems getting oid value from table

Kjersti Grønnevik kgr____morecom.no
Wed Mar 13 11:01:57 CET 2002


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) .

Where are the best place to add rows? Do the rows have to be added before
they are requested for?
My plan are to add the rows when they are requested, by using the index to
fetch the row data from a database.

Best regards,
Kjersti


-----Original Message-----
From: Frank Fock [mailto:Frank.Fock____t-online.de]
Sent: 12. mars 2002 20:26
To: Kjersti Grønnevik
Cc: agentpp-dl____agentpp.com
Subject: Re: Problems getting oid value from table

Hi Kjersti,
Do you have added the row to the table (MibTable::add_row) of which you
want to get a column? How did you hardcode the values?
Best regards,
Frank
Kjersti Grønnevik wrote:
> Hi,
>
> I have problem with getting an oid value from a table.
> The oid value shall be in a database table, but for now I only have hard
coded the value
> in myMib.cpp(originally generatet by agentGen). How can I get past the
tableEntry? It also seems like the function MibTable::get_request(req, ind)
in mib.cpp
>
> at the line: if(o=find(reg->get_oid(ind))) != 0)
>
> does not find the oid when I debug. I am using the windows program MG-Soft
MIB-Browser to get the oid value from my agent.
>
> What could be the possible reason?
>
> I'm running KDevelop with the latest agent++/snmp++ on Linux red hat.The
mib shall only support SNMPv1.
> The lissener port is chanced to 4700
>
> Very grateful for any suggestions or hints!
>
> Best regards,
> Kjersti




More information about the AGENTPP mailing list