[SNMP4J] send a trap from SNMP4J sub-agent

Frank Fock fock at agentpp.com
Wed Aug 2 09:07:39 CEST 2006


Hi Yaron,

The AgentXSubAgent class implements the
NotificationOriginator interface. Thus,
you can use that instance for sending
notifications from a SNMP4J-AgentX subagent.

Best regards,
Frank

Yaron Reichert wrote:
> Hey Frank , 
> i'm trying to send a trap from the subagent (via net-snmp master agent). how can i do it ?
> i've succeeded in the snmp4j agent to do it with this code:
>  
> myMib.lsSampleTrap(this.getNotificationOriginator(),new OctetString(""),new VariableBinding[0]);
>  
> but in the subagent i can't call "this.getNotificationOriginator()" anymore. i guess there's another way of sending traps.
>  
> Thanks,
>  
> Yaron Reichert
> ------------------------------------------------------
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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