[SNMP4J] Need help:Unable to run sample snmp code with OIDs

2011-02-18 Thread anshul gupta
Hi, I think community target and target address are corrects as asked by u so now tell me how to solve the problem Regards Anshul ___ SNMP4J mailing list SNMP4J@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j

[SNMP4J] Need help:Unable to run sample snmp code with OIDs

2011-02-17 Thread anshul gupta
Hi, I am sending the code with the error line no. //import java.net.InetAddress; import org.snmp4j.CommunityTarget; import org.snmp4j.PDU; import org.snmp4j.Snmp; import org.snmp4j.TransportMapping; import org.snmp4j.event.ResponseEvent; import org.snmp4j.event.ResponseListener; import

[SNMP4J] Need help:Unable to run sample snmp code with OIDs

2011-02-17 Thread anshul gupta
Hi, I have one more code the output is coming NULL for it i dont why.Please if u can help me on this and the output language is not understandable  import java.io.IOException;   import org.snmp4j.*;   import org.snmp4j.smi.Address;   import org.snmp4j.CommandResponder;   import

[SNMP4J] Need help:Unable to run sample snmp code with OIDs

2011-02-17 Thread anshul gupta
Hi, I have tried running code by commenting hte line u have asked but error is still coming ERROR: Exception in thread DefaultUDPTransportMapping_192.168.2.2/0 java.lang.NullPointerException     at org.snmp4j.transport.DefaultUdpTransportMapping$ListenThread.run(Unknown Source)     at

[SNMP4J] Need help:Unable to run sample snmp code with OIDs

2011-02-16 Thread anshul gupta
Hi, We are working on college project. We are unable to solve the problem that we have come up while coding. Please, help us.Here is our code. //import java.net.InetAddress;import org.snmp4j.CommunityTarget;import org.snmp4j.PDU;import org.snmp4j.Snmp;import

[SNMP4J] Need help:Unable to run sample snmp code with OIDs

2011-02-16 Thread anshul gupta
Hi, I have send u a code in my last mail and before that u asked some questions mentioned below Is the community correct? Target address correct? Is the agent running? Actually we are new to the project so we are not able to understand the question asked by u so if possible from the code

Re: [SNMP4J] Need help:Unable to run sample snmp code with OIDs

2011-02-16 Thread Frank Fock
Hi, I am not able to help if you cannot answer the questions. May be a good book about IP networking and SNMP could help you out. Best regards, Frank On 16.02.2011 15:56, anshul gupta wrote: Hi, I have send u a code in my last mail and before that u asked some questions mentioned below Is

[SNMP4J] Need help:Unable to run sample snmp code with OIDs

2011-02-07 Thread Jaideep Barde
Hello All, I am working on a college assignment and have just started using this SNMP4J package to work on it. I have been trying to get the following example application working and am unable to get it working. I am running the example with IP address as udp:127.0.01/161 OID as PDU pdu = new