[AGENT++] Query in Creating row

shylaja.siddappa at wipro.com shylaja.siddappa at wipro.com
Tue Apr 3 14:23:29 CEST 2007


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