[SNMP4J] How to handle traps that come from a specific ip address only

Tsiyona tsiyona at gmail.com
Mon Aug 23 09:08:24 CEST 2010


Hello,

I am writing a trap receiver that only intercepts traps and analyzes them.

In our system we have two servers on which snmp agents are generating traps.
At a given time, only one server out of the two is an active server, meaning
that only this
server's traps are to be processed, while the other server's traps are to be
ignored.
These two servers have distinct ip addresses (different from one another's).

Is there a way I can open an snmp session and start listening only for traps
that
arrive from a specific ip address (i.e. from the active serve's ip address
only) ?

Of course I could check the agent address in each received trap pdu and
ignore those
traps that come from a non-active server, but I am asking here whether
snmp4j infrastructure
itself provides means of doing that.

Thanks,
Tsiyona



More information about the SNMP4J mailing list