[SNMP4J] V1 traps
Frank Fock
fock at agentpp.com
Tue May 1 16:03:51 CEST 2007
Hi Nidhin,
Yes, this is a bug. The following patch
fixes it:
@@ -166,6 +166,7 @@
}
int genericID = SnmpConstants.getGenericTrapID(notificationID);
if (genericID < 0) {
+ trap.setGenericTrap(6);
if ((notificationID.size() > 2) &&
(notificationID.get(notificationID.size() - 2) == 0)) {
OID enterprise =
Best regards,
Frank
nidhin wrote:
> Hi,
>
> I have a doubt regarding v1 traps. Shouldn't the generictrap be set to 6 if we are setting the specifictrap for V1 traps?
>
> If yes, in the class NotificationOriginatorImpl, within the method
> <sendNotification>, I could see that generictrap is not set to 6.
>
> Please let me know whether this is a bug or not in the SNMP4j agent.
>
> Regards
> Nidhin
>
>
> ---------------------------------
> Ahhh...imagining that irresistible "new car" smell?
> Check outnew cars at Yahoo! Autos.
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com
More information about the SNMP4J
mailing list