[SNMP4J] What is right way to Send Trap?

Chris lsmystery at yahoo.com
Tue May 8 15:59:32 CEST 2007


Hi , As I have to implement the Agent cabable of only
sending traps I am currently evaluating
SNMP4J. 
  I was able to test the TestAgent program and after
going through the some java code, API doc and mailing
list archive ,I am bit confused.
And my confusion is: To send the trap should I use

               SNMP snmp = getSession()
               SNMP.send( PDU,Target ) method  

                    OR

               NotificationOriginator no =
getNotificationOriginator();
               no.notify(OctetSting,OID,...)

No to mention I have extended BaseAgent.   

Thanks
Chris               
                                  
      

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the SNMP4J mailing list