[SNMP4J] Sending v1 and v2 traps to the same target
Matthieu Casanova
chocolat.mou at gmail.com
Fri Mar 9 16:56:12 CET 2007
Hi, I would like to send v1 and v2 traps to the same target.
buf if I do
target.setVersion(SnmpConstants.version2c);
I can send v2 traps but not v1 traps.
Is it allowed to do something like that ?
if (pdu instanceof PDUv1)
target.setVersion(SnmpConstants.version1);
else
target.serVersion(SnmpConstants.version2c);
before sending the trap or I really need to have two target ?
Matthieu
More information about the SNMP4J
mailing list