Re: [SNMP4J] TestAgent with StaticIfTable
hi In TestAgent program* testAgent1.sysDescr return System description* can you please *for getting processor,services others information what method i need to call* its very urgent please reply me soon thanks in advance -- *From:* Suresh Kajla [mailto:skkchoudh...@gmail.com] *Sent:* Thursday, December 31, 2009 12:18 PM *To:* Amos Nesher *Cc:* snmp4j *Subject:* Re: [SNMP4J] TestAgent with StaticIfTable 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.nes...@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:skkchoudh...@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.nes...@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:skkchoudh...@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.nes...@arcadiannetworks.com wrote: I found my problem and it has nothing to do with the snmp4j code. Thanks J Amos -Original Message- From: snmp4j-boun...@agentpp.org [mailto:snmp4j-boun...@agentpp.org] On Behalf Of Amos Nesher Sent: Tuesday, December 29, 2009 3:04 PM To: snmp4j@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@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j ___ SNMP4J mailing list SNMP4J@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 -- Regards Suresh Choudhary Software Engineer Team Computers Pvt Ltd New Delhi 9910504095,9868327062 ___ SNMP4J mailing list SNMP4J@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j
Re: [SNMP4J] TestAgent with StaticIfTable
I'm not sure I understood what you are really up to. Any way, To change the sysDescr you just need to override it using testAgent1.setSysDescr(new OctetString(sys descr));. You need to do it before calling the init() method. Note that testAgent1.loadConfig(ImportModes.REPLACE_CREATE); is overriding the sysDescr. So if you don't need it you can remove it. Other way is to override the sysDescr after it's already a mib. :-) Amos From: Suresh Kajla [mailto:skkchoudh...@gmail.com] Sent: Monday, January 04, 2010 11:03 AM To: Amos Nesher Cc: snmp4j Subject: Re: [SNMP4J] TestAgent with StaticIfTable hi In TestAgent program testAgent1.sysDescr return System description can you please for getting processor,services others information what method i need to call its very urgent please reply me soon thanks in advance From: Suresh Kajla [mailto:skkchoudh...@gmail.com] Sent: Thursday, December 31, 2009 12:18 PM To: Amos Nesher Cc: snmp4j Subject: Re: [SNMP4J] TestAgent with StaticIfTable 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.nes...@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. :-) Amos From: Suresh Kajla [mailto:skkchoudh...@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.nes...@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. :-) Amos From: Suresh Kajla [mailto:skkchoudh...@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.nes...@arcadiannetworks.com wrote: I found my problem and it has nothing to do with the snmp4j code. Thanks J Amos -Original Message- From: snmp4j-boun...@agentpp.org [mailto:snmp4j-boun...@agentpp.org] On Behalf Of Amos Nesher Sent: Tuesday, December 29, 2009 3:04 PM To: snmp4j@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@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j ___ SNMP4J mailing list SNMP4J@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j -- Regards Suresh Choudhary Software Engineer Team Computers Pvt Ltd New Delhi 9910504095,9868327062
Re: [SNMP4J] TestAgent with StaticIfTable
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.nes...@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:skkchoudh...@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.nes...@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:skkchoudh...@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.nes...@arcadiannetworks.com wrote: I found my problem and it has nothing to do with the snmp4j code. Thanks J Amos -Original Message- From: snmp4j-boun...@agentpp.org [mailto:snmp4j-boun...@agentpp.org] On Behalf Of Amos Nesher Sent: Tuesday, December 29, 2009 3:04 PM To: snmp4j@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@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j ___ SNMP4J mailing list SNMP4J@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 ___ SNMP4J mailing list SNMP4J@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j
Re: [SNMP4J] TestAgent with StaticIfTable
Sorry, I'm not familiar with snmp v3. Regards, :-) Amos From: Suresh Kajla [mailto:skkchoudh...@gmail.com] Sent: Thursday, December 31, 2009 12:18 PM To: Amos Nesher Cc: snmp4j Subject: Re: [SNMP4J] TestAgent with StaticIfTable 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.nes...@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. :-) Amos From: Suresh Kajla [mailto:skkchoudh...@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.nes...@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. :-) Amos From: Suresh Kajla [mailto:skkchoudh...@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.nes...@arcadiannetworks.com wrote: I found my problem and it has nothing to do with the snmp4j code. Thanks J Amos -Original Message- From: snmp4j-boun...@agentpp.org [mailto:snmp4j-boun...@agentpp.org] On Behalf Of Amos Nesher Sent: Tuesday, December 29, 2009 3:04 PM To: snmp4j@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@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j ___ SNMP4J mailing list SNMP4J@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 ___ SNMP4J mailing list SNMP4J@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j
Re: [SNMP4J] TestAgent with StaticIfTable
I found my problem and it has nothing to do with the snmp4j code. Thanks J Amos -Original Message- From: snmp4j-boun...@agentpp.org [mailto:snmp4j-boun...@agentpp.org] On Behalf Of Amos Nesher Sent: Tuesday, December 29, 2009 3:04 PM To: snmp4j@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@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j ___ SNMP4J mailing list SNMP4J@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j
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.nes...@arcadiannetworks.com wrote: I found my problem and it has nothing to do with the snmp4j code. Thanks J Amos -Original Message- From: snmp4j-boun...@agentpp.org [mailto:snmp4j-boun...@agentpp.org] On Behalf Of Amos Nesher Sent: Tuesday, December 29, 2009 3:04 PM To: snmp4j@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@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j ___ SNMP4J mailing list SNMP4J@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j -- Regards Suresh Choudhary Software Engineer Team Computers Pvt Ltd New Delhi 9910504095,9868327062 ___ SNMP4J mailing list SNMP4J@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j
Re: [SNMP4J] TestAgent with StaticIfTable
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:skkchoudh...@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.nes...@arcadiannetworks.com wrote: I found my problem and it has nothing to do with the snmp4j code. Thanks J Amos -Original Message- From: snmp4j-boun...@agentpp.org [mailto:snmp4j-boun...@agentpp.org] On Behalf Of Amos Nesher Sent: Tuesday, December 29, 2009 3:04 PM To: snmp4j@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@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j ___ SNMP4J mailing list SNMP4J@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j -- Regards Suresh Choudhary Software Engineer Team Computers Pvt Ltd New Delhi 9910504095,9868327062 ___ SNMP4J mailing list SNMP4J@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j
Re: [SNMP4J] TestAgent with StaticIfTable
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:skkchoudh...@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.nes...@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. :-) Amos From: Suresh Kajla [mailto:skkchoudh...@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.nes...@arcadiannetworks.com wrote: I found my problem and it has nothing to do with the snmp4j code. Thanks J Amos -Original Message- From: snmp4j-boun...@agentpp.org [mailto:snmp4j-boun...@agentpp.org] On Behalf Of Amos Nesher Sent: Tuesday, December 29, 2009 3:04 PM To: snmp4j@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@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j ___ SNMP4J mailing list SNMP4J@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 ___ SNMP4J mailing list SNMP4J@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j
Re: [SNMP4J] TestAgent with StaticIfTable
hi i am new in SNMP with java can any body provide me step by step document for both server and agent implementation because what ever examples are on net are very complex to understand thanks in advance On Tue, Dec 29, 2009 at 6:34 PM, Amos Nesher amos.nes...@arcadiannetworks.com wrote: 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@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j -- Regards Suresh Choudhary Software Engineer Team Computers Pvt Ltd New Delhi 9910504095,9868327062 ___ SNMP4J mailing list SNMP4J@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j