[AGENT++] creating a string index to a AgentXSharedTable using agentx++

Efrat Lefeber ELefeber at trustwave.com
Mon Dec 10 17:47:13 CET 2012


How can I set the index of a table to be a string?
I created the table using the index_info:
Agentpp::index_info indIfEntry[1] = { {sNMP_SYNTAX_OCTETS, FALSE, 0, 128}};

But when I add the row to the table I get an error.

Agentpp::Oidx index("myIndex");
Agentpp::MibTableRow *row = tableEntry->add_row(index);
if (!row)
{
               std::cout<<"add_row failed"<<std::endl;
               return 1;
}

________________________________

This transmission may contain information that is privileged, confidential, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format.


More information about the AGENTPP mailing list