[SNMP4J] Agent Notification Example
Prusi, Jesse R
jesse.r.prusi at lmco.com
Tue Apr 4 23:56:14 CEST 2006
The NotificationOriginator in the BaseAgent is local to the init()
method. I think it would make sense to call setNotificationOriginator()
from the init() method of BaseAgent. This would allow you to call
agent.notify() from a class that extends BaseAgent. Or is there another
way to do this that I'm not seeing?
Thanks,
Jesse
-----Original Message-----
From: Frank Fock [mailto:fock at agentpp.com]
Sent: Tuesday, April 04, 2006 4:47 PM
To: Prusi, Jesse R
Cc: snmp4j at agentpp.org
Subject: Re: [SNMP4J] Agent Notification Example
Jesse,
Creating a single NotificationOriginator(Impl) is enough.
The BaseAgent already has one. To send a notification call for example:
notificationOriginator.notify(new OctetString(),
SnmpConstants.coldStart,
new VariableBinding[0]);
Best regards,
Frank
Prusi, Jesse R wrote:
> Can someone please give an example for sending notifications from an
> agent? Does a new NotificationOriginator need to be created for each
> notification message?
>
> Thanks,
> Jesse
> _______________________________________________
> 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