[SNMP4J] DuplicationRegistrationException
Frank Fock
fock at agentpp.com
Fri Jul 22 17:58:18 CEST 2011
Hi,
"1.3.6.1.9348.13.1.2..."
and "1.3.6.1.9348.13.1.3..."
are not valid OIDs.
Best regards,
Frank
On 21.07.2011 14:10, karuna s wrote:
> Hello,
>
> I am beginner to snmp4j. I have a task to write my own mib file.
> So when i want to register oid's to agent, it is throwing an exception
> DuplicationRegistrationException.
>
>
> ---------------------------------------------------------
> testOID = "1.3.6.1.9348.13.1.2...";
> registerManagedObject(new MOScalar(testOID,MOAccessImpl.ACCESS_READ_ONLY,new
> OctetString("Sample OID")));
>
> testOID1 = "1.3.6.1.9348.13.1.3...";
> registerManagedObject(new
> MOScalar(testOID1,MOAccessImpl.ACCESS_READ_ONLY,new OctetString("Sample
> OID")));
>
> public void registerManagedObject(ManagedObject mo) {
> try {
> //server.register(mo,new OctetString("look2"));
> server.register(mo, null);
> } catch (DuplicateRegistrationException ex) {
> throw new RuntimeException(ex);
> }
> }
>
> How to avoid this problem?
>
> Thanks in advance :).
>
> Regards
> nani
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
--
AGENT++
http://www.agentpp.com
http://www.snmp4j.com
http://www.mibexplorer.com
http://www.mibdesigner.com
More information about the SNMP4J
mailing list