[SNMP4J] Registering multiple DefaultMOTable instances

johan.rask at jayway.se johan.rask at jayway.se
Thu Sep 4 14:12:27 CEST 2008


Hi,

I am trying to register multiple DefaultMOTable instances with the 
DefaultMOServer.
I create the DefaultMOTable similar to how it is created in TestAgent.

table1 = new DefaultMOTable(
                new OID("1.3.6.1.4.1.29868.1.4.3"), indexDef, columns);

table2 = new DefaultMOTable(
                new OID("1.3.6.1.4.1.29868.1.5.4"), indexDef, columns);

server.register(table1,null);
server.register(table2,null)

Second registstration generates a
org.snmp4j.agent.DuplicateRegistrationException with msg:
org.snmp4j.agent.DefaultMOContextScope[
context=null,
lowerBound=1.3.6.1.4.1.29868.1.4.3,
lowerIncluded=false,
upperBound=1.3.6.1.4.1.29868.1.4.4,
upperIncluded=false]

I am obviously missing something here, why are these equal?

Regards /Johan



More information about the SNMP4J mailing list