[SNMP4J] SNMP Traps

McCauley, Tim Tim.McCauley at sciatl.com
Thu Oct 11 14:53:12 CEST 2007


In the processPdu method of the CommandResponder implementation you
write that is registered with the Snmp object that is created with a
MultiThreadedMessageDispatcher and TransportMapping there is a
CommandResponderEvent passed.  In this event for every trap received if
you call getPeerAddress() this will return the IP address of the sender.
Look at the Snmp4J src org.snmp4j.test.MultiThreadedTrapReceiver for an
example of the MultiThreaded Trap Receiver.

 

Tim McCauley

 





     - - - - - Appended by Scientific Atlanta, a Cisco company - - - - -         
This e-mail and any attachments may contain information which is confidential, 
proprietary, privileged or otherwise protected by law. The information is solely 
intended for the named addressee (or a person responsible for delivering it to 
the addressee). If you are not the intended recipient of this message, you are 
not authorized to read, print, retain, copy or disseminate this message or any 
part of it. If you have received this e-mail in error, please notify the sender 
immediately by return e-mail and delete it from your computer.


More information about the SNMP4J mailing list