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:[email protected]] 
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:[email protected]] 
        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
<[email protected]> 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:[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

        
        
        
        -- 
        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

Reply via email to