There are multiple ways to build code responding on 'your own MIB'.
First of all the vocabulary (it will help to google): the deamon (or service) waiting on an SNMP port (161) is called Agent. If I understand you want that this agent gives responses on new MIBs (yours). For this you need to create a Proxy Agent for you agent.
Solutions : Proxy Agents are not so standard.
- If you are able to rebuild your agent (Net-SNMP) you can build in the code for your MIB. The kind of agent you can rebuild provide compilers that create skeltons code from MIB file. After that you can choose to load your code into the agent or in a separated module. See TUT:Writing a MIB Module.You can find something similary for Microsoft integrated SNMP agent (even if you can't rebuild the agent). It exists much commercial SNMP solutions that allows to build your own Agent.
- It exist a standard to extend Agent which is called AgentX (it's not talking about spy)
Now I let you googling with build an agent with SNMP4j
or build a proxy agent with SNMP4j
. As I can read "The SNMP4J-Agent pure Java SNMP agent API adds command responder including notification originator and proxy forwarder support to the SNMP4J core API" it sound promising.