Download the snmp4j-agent.jar from the snmp4j site. Run the class org.snmp4j.agent.test.TestAgent (which is part of the jar).
Run it with "127.0.0.1/161" argument (in assumption that no other agent on your PC - if you have other agent you can use other port than 161). (of course you can use other interfaces). It will create a simple agent on your local host. Use any snmp tool (mib browser or command line) to perform snmpwalk on 127.0.0.1 When you success to that, continue to the next stage: Study the source code of TestAgent and try to make your changes. That was my process. Good luck. :-) Amos ________________________________ From: Suresh Kajla [mailto:[email protected]] Sent: Wednesday, December 30, 2009 11:52 AM To: Amos Nesher Cc: snmp4j Subject: Re: [SNMP4J] TestAgent with StaticIfTable can you pass me complete java documentation with example (both agent and server ) On Wed, Dec 30, 2009 at 2:43 PM, Amos Nesher <[email protected]> wrote: It has nothing to do with the snmp4j. I changed the TestAgent (I enabled the IF table) but I execute the original TestAgent which the addition IF table is remarked. That why I didn't have the IF table in snmpwalk. :-) Amos ________________________________ From: Suresh Kajla [mailto:[email protected]] Sent: Wednesday, December 30, 2009 11:12 AM To: Amos Nesher Cc: snmp4j Subject: Re: [SNMP4J] TestAgent with StaticIfTable hi then changes you did please share with me On Wed, Dec 30, 2009 at 1:55 PM, Amos Nesher <[email protected]> wrote: I found my problem and it has nothing to do with the snmp4j code. Thanks J Amos -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Amos Nesher Sent: Tuesday, December 29, 2009 3:04 PM To: [email protected] Subject: [SNMP4J] TestAgent with StaticIfTable Hi, I want to implement a simple SNMP agent. I managed to run the TestAgent without the createStaticIfTable. I trying to add the createStaticIfTable (of course registered it in registerManagedObjects). But when I'm performing snmpwalk I do not get the IFTable. I set the agentppSimMode to config(1) after the agent is running (via snmpset). What I'm doing wrong? Regards, Amos _______________________________________________ SNMP4J mailing list [email protected] http://lists.agentpp.org/mailman/listinfo/snmp4j _______________________________________________ SNMP4J mailing list [email protected] http://lists.agentpp.org/mailman/listinfo/snmp4j -- Regards Suresh Choudhary Software Engineer Team Computers Pvt Ltd New Delhi 9910504095,9868327062 -- Regards Suresh Choudhary Software Engineer Team Computers Pvt Ltd New Delhi 9910504095,9868327062 _______________________________________________ SNMP4J mailing list [email protected] http://lists.agentpp.org/mailman/listinfo/snmp4j
