Hi,
Greetings.
Thank you for having interest in WebNMS Agent ToolKit Java Edition.
When an SNMP agent is generated, the code for the Agent is generated under <ATK_HOME>/JavaAgent/snmpProjects/<ProjectName>/agent/src/ directory.
If your requirement is to package the agent then please refer the below given link for packaging the Agent.
http://www.webnms.com/javaagent/help/snmp_agent/snmp/j_snmp_packagent.htmlAfter generating the source files using MibCompiler tool, you can use the agent with any IDE(Eclipse, Netbeans).
Please follow the below steps to use the IDE for the project developed using Agent ToolKit.
1. First generate the project using WebNMS Agent ToolKit Java Edition i.e, using MibCompiler by loading the required MIB and generate the source.
2. Open the IDE and create a new project and copy all the source in to this project. Source files will be present under <ATK_HOME>/JavaAgent/snmpProjects/<projectName>/agent/src directory.
3. Along with the source files, please copy the configuration files also to the project's path.The configuration files are present in the directory <ATK_HOME/SnmpProjects/<projectname>/agent/bin/conf>. The configuration files should be added to the IDE's working directory to change the agentDir of WebNMSSNMPAgent.java from '.' to the conf files directory's location.
Eg: public static String agentDir = ".";
to public static String agentDir = "<Conf file's directory>";
4. Set the AdventNet jars in CLASSPATH. The required jars are present under <ATK_HOME>/JavaAgent/jars folder and list are
i) AdventNetSnmp.jar
ii) AdeventNetAgentUtilities.jar
iii) AdventNetSnmpAgent.jar
iv) AdventNetLogging.jar
v) AdventNetAgentRuntimeUtilities.jar
vi) Crimson.jar
vii) xalan.jar
viii) jaxp.jar
5. After doing all the above you can compile and start the Agent.
The main file required for the agent is src/com/myCompany/myPcakage/WebNMSSnmpAgent.java
Trust the information provided is helpful. Please mail us @
agent-support@webnms.com for further clarifications.
Thanks & Regards,
Sumathi.G