[SNMP4J] TestAgent Trap
Frank Fock
fock at agentpp.com
Thu Dec 15 23:41:18 CET 2005
Hi Jack,
Houghton, Jack SPAWAR wrote:
>1) What is the mechanism for a change in a MIB triggering a trap?
>
>
This totally depends on how you define it in your MIB and how you implement
it. SNMP4J-Agent does not make any restrictions here.
>2) I believe I might have found a needed correction. In
>NotificationOriginatorImpl.isAccessGranted(), should the following code:
>
>
Yes, that's one of the famous "it works only in debug mode" bugs.
I have fixed that for the next release.
Best regards,
Frank
> if (!notificationMIB.passesFilter(paramsRow.getIndex(),
>notificationID, vbs)) {
> if (logger.isInfoEnabled()) {
> logger.info("Notification " + notificationID + " did not pass
>filter " +
> paramsRow.getIndex());
> return false;
> }
> }
>
>be changed to:
>
> if (!notificationMIB.passesFilter(paramsRow.getIndex(),
>notificationID, vbs)) {
> if (logger.isInfoEnabled()) {
> logger.info("Notification " + notificationID + " did not pass
>filter " +
> paramsRow.getIndex());
> }
> return false;
> }
>
>Regards,
>Jack Houghton
>
>
More information about the SNMP4J
mailing list