[AGENT++] Query in Creating row

shylaja.siddappa at wipro.com shylaja.siddappa at wipro.com
Mon Apr 16 07:32:31 CEST 2007


Hi All,

I am implementing SNMP agent using  Agent++. According to my requirement
in case of row creation using SNMP SET  i  need to store the row in  the
database. But it looks like it is stored in  the  memory in Agent++ .

 My questions are as mentioned below

 1) Is there any way to  access (any API provided by agent++ ) the rows
stored in agent++ memory?

2) Can we configure agent++ such a way that  it will  not store rows in
agent++ memory?

3) Is there any way to get all the column values at a time in the
handler code so that I can store those values in database?

--Shylaja


________________________________

From: Shylaja Siddappa (WT01 - Broadband Networks) 
Sent: Tuesday, April 03, 2007 6:02 PM
To: 'agentpp at agentpp.org'
Subject: Query in Creating row


Hi,
        I'm having problem when I'm use set functionality to create a
row in the SNMP table.
 
I went through the example code given in the atm_mib directory
 
As far as I understand,we have to create an index statically and then
have to set values to the attributes.
 
Can anybody please let me know whether my understanding is correct?
 
Is there any other way to create rows in the table without crating the
index?
 
I'm providing the code snippet which I have written for creating the row
 
 //adding the index of the row
 Oidx id1("1");
 Oidx id2("2");
 
  //adding the column values in the table
  add_col(new
agentppTestFmxUserPassword(colAgentppTestFmxUserPassword));
  add_col(new
agentppTestFmxUserAccessRights(colAgentppTestFmxUserAccessRights));
  add_col(new
agentppTestFmxUserLanguage(colAgentppTestFmxUserLanguage));
  add_col(new
agentppTestFmxUserWebCtPoolIntervel(colAgentppTestFmxUserWebCtPoolInterv
el));
  add_col(new
agentppTestFmxUserRowStatus(colAgentppTestFmxUserRowStatus));
  add_row(id1);
  add_row(id2);

.....
 
As a result,we can only add two rows with index 1 and 2.
 
But we need to create rows dynamically..i.e user will create row as per
is requirement..
 
Is it possible?if so how do we achieve that?
 
 
Thanks in advance
 
 
Regards,
Shylaja
 



The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
 
www.wipro.com


More information about the AGENTPP mailing list