[SNMP4J] send a trap from SNMP4J sub-agent

Yaron Reichert yaron.reichert at adamind.com
Tue Aug 1 17:20:35 CEST 2006


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
------------------------------------------------------


More information about the SNMP4J mailing list