[SNMP4J] Sending a trap/notification to a subset of the SnmpTargetMIB
Frank Fock
fock at agentpp.com
Fri Aug 12 21:30:56 CEST 2005
Hello Matthias,
What you are trying to accomplish is already there. Please
take a look at the SnmpNotificationMIB class. It is used
by the default notification originator to determine the targets
a trap/notification needs to be sent to.
So it's just a matter about configuring some SNMP tables...
Best regards,
Frank
Matthias Wiesmann wrote:
>Hello everybody,
>
>Im am writing an agent that should send on a regular basis
>traps/notifications to a subset of the targets present in the
>SnmpTargetMIB but I see no convenient way to do so.
>
>The default NotificationOriginator used by the BaseAgent does not
>offer any method to notify a subset of all targets. I there a way to
>do this without rewriting most of the functionality defined in class
>NotificationOriginatorImpl?
>
>Method sendNotification as well as all the table index definitions are
>private. I can't use them from my code, so the only solution I see at
>the moment is either to copy/paste a lot of code, or modify the
>original NotificationOriginatorImpl to add the methods I would need.
>
>Basically, I would need something like
>
>public ResponseEvent[] notifyTag(OctetString tag, OctetString context,
>OID notificationID, VariableBinding[] vbs) {
>
>Did I missing something?
>
>Thanks in advance...
>
>Matthias Wiesmann
>_______________________________________________
>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