So, I'm still involved in SNMP training, please say goodbye. I use snmp4j, not just libraries, but I downloaded the source code, and I am not against changing the source if it gets me what I need. I programmed an agent and a test client. What I want to do is check the requests coming from the test client, and, in particular, listen to the βgivenβ request to a specific OID.
The current method I'm going to do is to catch the request right after running the snmp4j fireProcessMessage method (located in the package org.snmp4j.transport.DefaultUdpTranportMapping ), but I do not know how the agent requests its own mib for. Is there a method that the agent uses to get OID values ββfrom its mib?
Or is there a better way to catch a specific SET request? Is it possible to do what I want? Basically, what I want to do is start another process if the client sets a specific OID value of 1 (true).
source share