Not a desired state long-term, but can SNMP4J convert v2 traps to v1? I see this discussed in RFC 2089. Thinking I may be able to receive input in the v2 message processing model and somehow map to v1 message processing model for output. My concern is that agent IP may be problematic since it does not appear to be a standard part of v2 traps.
When converting from SNMPv2 to v1 does the v1 agent-addr only get populated if it’s present as a varbind in the incoming SNMPv2 trap? I’ve created some code, but it looks incorrect. The value I’m seeing for agent-addr after SNMPv2 to v1 conversion is the IP of the transport listener.
That’s what I expected. My problem is I have to support the mess until standards can be established and enforced. What is the process and/or how difficult is it to extract the sender IP if I could take steps to preserve the trap emitter IP across the network?
I’m thinking I should write a program to send the trap owner an email every time I receive a trap that doesn’t contain snmpTrapAddress.0