So I'm still in the process of learning SNMP, please go easy. I'm using snmp4j, not just the libraries but I've loaded the source code and I'm not against modifying the source if it gets me what I need. I've programmed an agent and a test client. What I want to do is be able to check the requests coming in from the test client and specifically listening for a "set" request to a specific OID.
The current way I'm thinking about doing it is catching the request right after it runs the snmp4j method fireProcessMessage
(located in the package org.snmp4j.transport.DefaultUdpTranportMapping
) but I don't know how an agent queries its own mib for an oid. 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 even possible to do what I want? Basically what I want to do is run another process if the client sets a certain OID value to 1(true).