[SNMP4J] Registering multiple DefaultMOTable instances

johan.rask at jayway.se johan.rask at jayway.se
Thu Sep 4 15:16:12 CEST 2008


Solved, my mistake.

The REAL issue had nothing todo with multiple instances of
tables, rather that I hade registered a new MO with
OID = 1.3.6.1.4.1.29868.1.4.1 but I had not added a trailing
zero ->1.3.6.1.4.1.29868.1.4.1.0


/johan

2008-09-04 johan.rask at jayway.se wrote:

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
>_______________________________________________
>SNMP4J mailing list
>SNMP4J at agentpp.org
>http://lists.agentpp.org/mailman/listinfo/snmp4j
>
>


More information about the SNMP4J mailing list