[SNMP4J] Re:SNMP4J Digest, Vol 41, Issue 11

通子 ytsun04 at 163.com
Tue Jun 19 04:14:10 CEST 2007


 What is the error information?  
在2007-06-18,snmp4j-request at agentpp.org 写道:
Send SNMP4J mailing list submissions to snmp4j at agentpp.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.agentpp.org/mailman/listinfo/snmp4j or, via email, send a message with subject or body 'help' to snmp4j-request at agentpp.org You can reach the person managing the list at snmp4j-owner at agentpp.org When replying, please edit your Subject line so it is more specific than "Re: Contents of SNMP4J digest..." Today's Topics: 1. Queries SNMP4J (gaurava.singhal at wipro.com) 2. Re: Queries SNMP4J (Frank Fock) 3. SNMPv3 with encryption doesn't work (InternetX - Christian Bleicher) ---------------------------------------------------------------------- Message: 1 Date: Fri, 15 Jun 2007 11:38:50 +0530 From: <gaurava.singhal at wipro.com> Subject: [SNMP4J] Queries SNMP4J To: <snmp4j at agentpp.org> Message-ID: <DD4F8BE86D6A694E8AA196ACCA1FCC5D0446BEC1 at BLR-EC-MBX04.wipro.com> Content-Type: text/plain; charset="us-ascii" Hi All, Currenty I am evaluating SNMP4J API for the devlopment of proxy agent which should be AgentX and SNMP V2/V3 compliant. But I have following queries, I will be thankful if somebody can clarify them. 1) Since the SNMP4J-AgentX is licensed under GPL as well as commercial license. What is the difference between them? 2) Just to confirm that the SNMP4J-AgentX provide all the API provided by the SNMP4J-Agent. 3) Final query not exactly related to SNMP4J, is it possible to create an agent which will act as SNMP V2/V3 agent if there is no existing Master Agent and else act as the Subagent. Thanks Gaurav The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com ------------------------------ Message: 2 Date: Sun, 17 Jun 2007 23:38:59 +0200 From: Frank Fock <fock at agentpp.com> Subject: Re: [SNMP4J] Queries SNMP4J To: gaurava.singhal at wipro.com Cc: snmp4j at agentpp.org Message-ID: <4675A9F3.2050501 at agentpp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi Gaurav, gaurava.singhal at wipro.com wrote: > Hi All, > > Currenty I am evaluating SNMP4J API for the devlopment of proxy agent > which should be AgentX and SNMP V2/V3 compliant. > But I have following queries, I will be thankful if somebody can clarify > them. > > 1) Since the SNMP4J-AgentX is licensed under GPL as well as commercial > license. What is the difference between them? When using SNMP4J-AgentX licensed under the GPL, then you will have to make all your code that is directly related (i.e., using the API) also available under the GPL. With the commercial license you do not need to make your own code open source. For more details you should compare the both license agreements. > 2) Just to confirm that the SNMP4J-AgentX provide all the API provided > by the SNMP4J-Agent. Yes, SNMP4J-AgentX is build on top of SNMP4J-Agent and thus includes all its features. > 3) Final query not exactly related to SNMP4J, is it possible to create > an agent which will act as SNMP V2/V3 agent if there is no existing > Master Agent and else act as the Subagent. Yes, of course. Best regards, Frank > > Thanks > Gaurav > > > > The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. > > WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. > > www.wipro.com > _______________________________________________ > SNMP4J mailing list > SNMP4J at agentpp.org > http://lists.agentpp.org/mailman/listinfo/snmp4j -- AGENT++ http://www.agentpp.com http://www.mibexplorer.com http://www.mibdesigner.com ------------------------------ Message: 3 Date: Mon, 18 Jun 2007 09:48:19 +0200 From: "InternetX - Christian Bleicher" <christian.bleicher at internetx.de> Subject: [SNMP4J] SNMPv3 with encryption doesn't work To: <snmp4j at agentpp.org> Message-ID: <006301c7b17d$0a064580$c764a8c0 at rgb.intranetx.de> Content-Type: text/plain; charset="us-ascii" Hello list, i have the following problem. If I use snmpv3 without encryption all works fine. Also if I use the get command with encryption it works fine. But if I try to set a snmp variable to something else, there is no result. Here's my source: public String setV3(OID oid,Variable variable) throws IOException, NoResponseException { TransportMapping transport = new DefaultUdpTransportMapping(); Snmp snmp = new Snmp(transport); USM usm = new USM( SecurityProtocols.getInstance(), new OctetString(MPv3.createLocalEngineID()), 0 ); SecurityModels.getInstance().addSecurityModel(usm); snmp.getUSM().addUser(new OctetString(snmpV3User), new UsmUser(new OctetString(snmpV3User), AuthMD5.ID, new OctetString(snmpAuthPassphrase), PrivDES.ID, new OctetString(snmpPrivPassphrase))); transport.listen(); CommandResponder trapPrinter = new CommandResponder() { public synchronized void processPdu(CommandResponderEvent e) { PDU command = e.getPDU(); if (command != null) { } } }; snmp.addCommandResponder(trapPrinter); // setting up target target.setRetries(retries); target.setTimeout(timeout); target.setVersion(version); ((UserTarget)target).setSecurityLevel(SecurityLevel.AUTH_PRIV); ((UserTarget)target).setSecurityName(new OctetString(getSnmpV3User())); //Create var Binding VariableBinding vb = new VariableBinding(oid); vb.setVariable(variable); // creating PDU PDU pdu = new ScopedPDU(); pdu.add(vb); pdu.setType(PDU.SET); System.out.println(pdu); ResponseEvent response = snmp.set(pdu,target); System.out.println(response.getUserObject()); if(response == null){ throw new NoResponseException(); } return response.getRequest().toString(); } NOTE: If I don't use encryption I set the SecurityLevel to NOAUTH_NOPRIV I have checked the encryption pass phrases and searched for a possibility to solve the problem. But I couldn't find anything. I hope you can help me. With friendly regards Christian ------------------------------ _______________________________________________ SNMP4J mailing list SNMP4J at agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j End of SNMP4J Digest, Vol 41, Issue 11 **************************************


More information about the SNMP4J mailing list