I think I'm specifying the index properly... could you
confirm that for me? The index is specified in the properties
file like this:

snmp4j.agent.cfg.index.1.3.6.1.6.3.18.1.1.1.0={o}'public'

and then the code that gets run is:

MOTableRow row = communityMIB.getSnmpCommunityEntry().createRow(new OctetString("public").toSubIndex(true), com2sec);
communityMIB.getSnmpCommunityEntry().addRow(row);

I'm I specifying the index properly?

Thanks.


Frank Fock wrote:
Hi Jeff,

There is no commit necessary. Maybe the index
you have used is invalid for the table?

Best regards,
Frank

Jeff Ramin wrote:

When adding a row to a table, should it be available immediately afterward?
Or is some sore of commit() call necessary?

I've got code similar to:

MOTableRow row = communityMIB.getSnmpCommunityEntry().createRow(...);
        communityMIB.getSnmpCommunityEntry().addRow(row);

The second line of code returns true, indicating the row was added, but
when I retrieve the contents of that table, the newly added row is not
returned.

Can anybody explain what I'm doing wrong? Thanks.




--
Jeffrey Ramin
Berbee
[EMAIL PROTECTED]
608.298.1024
_______________________________________________
SNMP4J mailing list
[email protected]
http://lists.agentpp.org/mailman/listinfo/snmp4j

Reply via email to