WebNMS Developer Forums
Click on Join Now to Sign Up
Hi,
Is your agent capable of loading a mib definition at runtime and calling run-time configured classes to retrieve mib values (rather than compiling the mib definition and hardcoding the mib implementation).
Can you provide a link to any of your java classes/APIs which would enable this?
Thanks,
Jim
Hi,.
Thank you for your interest in our product.
If you want to create an agent and want the agent to respond for particular mib, you need to load that particular mib in our MibCompiler and generate the source files, compile and run the agent on a particular port.
When you generate an agent with our MibCompiler, by default all the oidgroups(scalar/tabular)will get a (XXXRequestHandler.java)request handler and entry/instrument file respectively for scalar group/table. The request handlers will get registered to the agent and will take care of all queries on the respective groups/table. Please refer our help document for more details on this at http://www.webnms.com/javaagent/help/snmp_agent/snmp/j_snmp_instrumentation.html
Registration of the request handlers(oid groups) will be done in the initSnmpExtensionnodes() method in the generated main file(by default AdventNetSnmpAgent.java).
If you want to register oid groups at runtime of the agent, you can plug in your own mechanism to register oids instead of letting the initSnmpExtensionNodes() method doing it, provided all the oid groups that you want to register are all present in the MIB(s) that you used to generate the agent. In simple words, the source generation can't be dynamic, but the registration of the oid groups(for which source is already generated) can be done based on the need at runtime. Also it's not advisable to have an agent that will have dynamic nature on the oids registered in it.
Note: If your need is to pass the MIBs at runtime and getting them implemented in the agent, that is not at all possible. Hope your need will not be that.
Hope this helps, Please send in your query to agent-support@webnms.com, if you need further clarifications.
Regards,
Meenakshi