[SNMP4J] Oid overlapping

Frediano Sorvino sorfrena at gmail.com
Wed Mar 5 13:32:33 CET 2008


Hi all!

I am trying to create 2 tables:
the first 1 has these kinds of oids:
1.3.6.1.2.1.2.2.1.1
1.3.6.1.2.1.2.2.1.2
1.3.6.1.2.1.2.2.1.3
1.3.6.1.2.1.2.2.1.4
etc.

and the 2nd one these:

1.3.6.1.2.1.2.2.1.1.1
1.3.6.1.2.1.2.2.1.1.2
1.3.6.1.2.1.2.2.1.1.3
1.3.6.1.2.1.2.2.1.1.4
etc.

I create the tables correctly but when trying to register on the server I
get

org.snmp4j.agent.DuplicateRegistrationException:
org.snmp4j.agent.DefaultMOConte
xtScope[context=null,lowerBound=1.3.6.1.2.1.2.2.1
,lowerIncluded=false,upperBound
=1.3.6.1.2.1.2.2.2,upperIncluded=false]
        at org.snmp4j.agent.DefaultMOServer.register(DefaultMOServer.java
:157)
        at org.snmp4j.agent.test.TestAgent.registerManagedObjects(
TestAgent.java
:120)
        at org.snmp4j.agent.BaseAgent.registerSnmpMIBs(BaseAgent.java:205)
        at org.snmp4j.agent.test.TestAgent.registerSnmpMIBs(TestAgent.java
:535)
        at org.snmp4j.agent.BaseAgent.init(BaseAgent.java:173)
        at org.snmp4j.agent.test.TestAgent.main(TestAgent.java:484)

How can I do to register both these tables?
Thanks,
Freddy



More information about the SNMP4J mailing list