[SNMP4J] TestAgent with StaticIfTable

Suresh Kajla skkchoudhary at gmail.com
Thu Dec 31 11:18:28 CET 2009


thanks now i am able to run agent

but when i am try to call it through mib browser then it (for version 3) it
says authorization error

can please suggest me what to do now



On Wed, Dec 30, 2009 at 3:29 PM, Amos Nesher <
amos.nesher at arcadiannetworks.com> wrote:

>  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.
>
>
>
> J Amos
>   ------------------------------
>
> *From:* Suresh Kajla [mailto:skkchoudhary at gmail.com]
> *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 <
> amos.nesher at arcadiannetworks.com> 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.
>
>
>
> J Amos
>   ------------------------------
>
> *From:* Suresh Kajla [mailto:skkchoudhary at gmail.com]
> *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 <
> amos.nesher at arcadiannetworks.com> wrote:
>
> I found my problem and it has nothing to do with the snmp4j code.
>
> Thanks
>
> J Amos
>
> -----Original Message-----
> From: snmp4j-bounces at agentpp.org [mailto:snmp4j-bounces at agentpp.org] On
> Behalf Of Amos Nesher
> Sent: Tuesday, December 29, 2009 3:04 PM
> To: snmp4j at agentpp.org
> 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
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> 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
>



-- 
Regards
Suresh Choudhary
Software Engineer
Team Computers Pvt Ltd
New Delhi
9910504095,9868327062



More information about the SNMP4J mailing list