[SNMP4J] localEngineID and enterpriseID

Frank Fock fock at agentpp.com
Tue Nov 20 00:56:09 CET 2012


Hi,

You can simply set your own engine ID with
http://www.snmp4j.org/doc/org/snmp4j/mp/MPv3.html#setLocalEngineID(byte[])

Best regards,
Frank

Am 16.10.2012 19:28, schrieb Binh Le:
> Greetings,
>
> I notice that the enterpriseID is hardcoded with the value 4976 in
> org/snmp4j/mp/MPv3.java and the localEngineID is also created based on
> that enterpriseID plus the host's IP address.
>
> What can I do in order to create the localEngineID in a different
> formula? I was thinking of subclass MPv3 and setting a new
> localEngineID at agent startup from the new class. However, I also see
> that MPv3 is statically referred in several places in the stack, so I
> am afraid that SNMPv3 will not work if I subclass MPv3 like that that.
>
> Would you please throw some suggestions?
>
> Thanks a lot in advance,
> Binh
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

-- 
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
Phone: +49 7024 8688230
Fax:   +49 7024 8688231




More information about the SNMP4J mailing list