Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo
I've reviewed the example trap code: http://joesnmp.cvs.sourceforge.net/joesnmp/joesnmp/src/joesnmp/org/opennms/examples/SendTrapExample.java?revision=1.1&view=markup
I've also reviewed the TrapExample.
But niether of these examples are quite what I'm looking for. I would like to have a manager explicitly register with an Agent so that I can receive traps from an Agent without the need to configure the remote host/device with the manager's IP Address. In short, I'm looking for a way to do publish/subscribe for traps. Is this possilbe? If so, which class in the API do I use to set this up? Are there any examples?
If I can't do it through the API, do I just need to invoke an snmpset command to configure the remote Agent?
Thanks for your help.