Re: [SNMP4J] Sending traps from Snmp4j-agentx subagent to net-snmp master agent

2012-03-07 Thread Frank Fock
Hi, Simply use the "notify" method of the AgentXSubAgent which implements the corresponding method of the NotificationOriginator interface: http://www.snmp4j.org/agentX/doc/org/snmp4j/agent/agentx/subagent/AgentXSubagent.html#notify(org.snmp4j.smi.OctetString, org.snmp4j.smi.OID, org.snmp4j.smi

Re: [SNMP4J] V3 traps failing when multiple senders exist.

2012-03-07 Thread Frank Fock
fferent product, so changing to INFORMs > is unlikely. > > thanks again, > David > > On Tue, Mar 6, 2012 at 4:49 PM, Frank Fock <mailto:f...@agentpp.com>> wrote: > > Hi David, > > If you read the SNMPv3 RFCs carefully you will see that >

Re: [SNMP4J] usmStatsNotInTimeWindows discovery failure causing request timeout (rev 1.10.2)

2012-03-07 Thread Frank Fock
Hi, This sounds as if there are two agents using the same engine ID. Best regards, Frank Am 07.03.2012 12:53, schrieb Saravanan M: > Hi All, > > We have been using SNMP4J (version 1.10.2) in our EMS application to > communicate with the network elements(Agent) we manage. > > On one specific setu

Re: [SNMP4J] Trap Sequence

2012-03-06 Thread Frank Fock
Hi Wim, By SNMP standard, the order is fixed. But there might be applications that violate the standard, of course. Best regards, Frank Am 06.03.2012 08:11, schrieb BADENHOP Wim: > Hi, > > A v2c trap starts looks like > > SystemUpTime OID = system up time; > trap OID = trap identification; > OID

Re: [SNMP4J] V3 traps failing when multiple senders exist.

2012-03-06 Thread Frank Fock
Hi David, If you read the SNMPv3 RFCs carefully you will see that it cannot work what you are trying. SNMP4J handles the different situations correctly. The .0 is the suffix of a scalar. It will never be incremented. The value of the counter increments, though. There are two possible solutions:

Re: [SNMP4J] Apache Maven Checksum Issue

2012-03-06 Thread Frank Fock
Hi, This is a known problem, that has been caused by Maven 2.0 at the time SNMP4J 2.0.3 has been compiled and packaged. Meanwhile the build server uses Maven 2.1 and the issue should disappear with the next version. Best regards, Frank On 06.03.2012 19:37, Brian Weaver wrote: > I'm using a nexu

Re: [SNMP4J] AgentX shared table indexes problem

2012-03-05 Thread Frank Fock
> From: snmp4j-boun...@agentpp.org [mailto:snmp4j-boun...@agentpp.org] On > Behalf Of Frank Fock > Sent: 02 March 2012 01:00 > To: snmp4j@agentpp.org > Subject: Re: [SNMP4J] AgentX shared table indexes problem > > Hi Jesse, > > The behavior you observed is required by th

Re: [SNMP4J] Filling a shared table with two index columns from several processes not working

2012-03-05 Thread Frank Fock
mp4j-boun...@agentpp.org] On > Behalf Of Frank Fock >> You are facing the same issue as described in >> http://lists.agentpp.org/pipermail/snmp4j/2012-March/004789.html >> >> I understand that this situation is not covered userfriendly by >> SNMP4J-AgentX as imple

Re: [SNMP4J] cannot find symbol Re: agenpro-mvn-task log4j error

2012-03-03 Thread Frank Fock
Hi, I am not sure what could be causing the specific error you are getting below, but an important detail to keep in mind is the following: In the agenpro-mvn-task\pom.xml the order of dependencies has to be changed, if you use newer versions of SNMP4J or SNMP4J-Agent than those that came with yo

Re: [SNMP4J] Filling a shared table with two index columns from several processes not working

2012-03-02 Thread Frank Fock
Hello Christian, You are facing the same issue as described in http://lists.agentpp.org/pipermail/snmp4j/2012-March/004789.html I understand that this situation is not covered userfriendly by SNMP4J-AgentX as implementing a subclass is not straight forward. I will provide such a subclass of Agen

Re: [SNMP4J] AgentX shared table indexes problem

2012-03-01 Thread Frank Fock
Hi Jesse, The behavior you observed is required by the AgentX protocol. See RFC 2741 section 7.1.4.2.2 for details. If you have such an index structure, where you share the index of the master table, then you should not use any index allocation for the child table. Thus, you should overwrite the

Re: [SNMP4J] How to register sub-agents using AgentX APIs

2012-03-01 Thread Frank Fock
Hi Jesse, The AGENTX-MIB contains objects about sub-agent registration, but I guess you mean something different called shared tables. You can use the index allocation of AgentX to register your subagents in a shared table. You can use the subagent's AgentX session ID for that. Best regards, Fra

Re: [SNMP4J] AgentX APIs

2012-03-01 Thread Frank Fock
Hi Jesse, Am 14.02.2012 19:40, schrieb Jesse Woo: > Hi Guys, > > We are evaluating the AgnetX APIs and much appreciated if you can answer the > following questions. > > Does it support TCP, and will it work with Linux snmpd daemon? Yes, SNMP4JAgentX supports TCP. As it fully supports AgentX, it w

Re: [SNMP4J] How to completely exit from agent?

2012-03-01 Thread Frank Fock
sage----- > From: snmp4j-boun...@agentpp.org [mailto:snmp4j-boun...@agentpp.org] On > Behalf Of Frank Fock > Sent: 17 January 2012 00:37 > To: snmp4j@agentpp.org > Subject: Re: [SNMP4J] How to completely exit from agent? > > Hi Jesse, > > After calling Agent

Re: [SNMP4J] elusive ClosedChannelException in DefaultTcpTransportMapping

2012-01-23 Thread Frank Fock
Hi Brice, The current snapshots of SNMP4J 1.x and 2.x contain a fix for that issue in the DefaultTcpTransportMapping.java file. Best regards, Frank Am 20.01.2012 21:33, schrieb Frank Fock: > Hi Brice, > > The log output suggests that there is a race condition between the > connec

Re: [SNMP4J] elusive ClosedChannelException in DefaultTcpTransportMapping

2012-01-20 Thread Frank Fock
Hi Brice, The log output suggests that there is a race condition between the connection timeout and the sending of a new packet. I will have look if it can be fixed. A workaround would be to choose a longer timeout. Best regards, Frank Am 18.01.2012 14:21, schrieb Brice Fines: > Hi Frank, > > O

Re: [SNMP4J] SNMP4J agent - 1.4.2 - scalabilty & performance numbers

2012-01-16 Thread Frank Fock
Hi Rajesekhar, a SNMP4J-Agent agent is responding to SNMP messages and in most cases not sending requests. For a message originator, you should ask about the performance of SNMP4J, not SNMP4J-Agent. Best regards, Frank Am 15.01.2012 06:58, schrieb Rajasekhar Gogula: > Hi SNMP4J experts, > >I

Re: [SNMP4J] How to completely exit from agent?

2012-01-16 Thread Frank Fock
Hi Jesse, After calling AgentConfigManager.shutdown() you should also call WorkerPool.stop() on the WorkerPool you provided in the constructor of the AgentConfigManager. This, of course, only applies to thread pools that are under your control and stoppable. Best regards, Frank Am 16.01.2012 15:

Re: [SNMP4J] Remove entry in snmpCommunityTable does not actually remove the entry?

2012-01-12 Thread Frank Fock
y - see (1) above. > 3. Yes, it still works after that. I issue snmpwalk using the > community string "secret" in the example. > > Any suggestion where I should look at and/or check? > > Thanks, > Binh > > > On Sun, Jan 8, 2012 at 2:37 PM, Frank Fock wrote: >

Re: [SNMP4J] Remove entry in snmpCommunityTable does not actually remove the entry?

2012-01-08 Thread Frank Fock
Hi, What agent are you using (i.e., SampleAgent)? From the output you quoted, I cannot see 1. that a "secrect" community existed and 2. that it was removed successfully and 3. that it does still work after that. Have you set the CoexistenceProvider of the BaseAgent to your CommunityMIB instance?

Re: [SNMP4J] help with TableUtils.createRow()

2012-01-03 Thread Frank Fock
Hi, MIB Designer does not automatically add a column with SYNTAX RowStatus, because that might not be wanted in all cases. Especially for read-only tables, RowStatus does not make sense. If you want to create a read-write (create) table, then you should add a RowStatus column. There is a RFC whi

Re: [SNMP4J] Acknowledgements of informs not retrieved

2011-12-20 Thread Frank Fock
Hi, You can find the answer in the FAQ. On sender site you forgot to call snmp.listen(); Without listening for incoming messages you cannot receive them. Best regards, Frank Am 20.12.2011 16:22, schrieb George Vasilakis: > Hi all. > > I am trying to send v2 informs and successfully retrieve the

Re: [SNMP4J] SNMP4J 1.11.x EOL and security update maintenance?

2011-12-12 Thread Frank Fock
Hi Brice, For the SNMP4J(-Agent*) 1.x branch, security updates will be provided, at least until version 3.x is released (not before 2013). New features will be implemented in the current (2.x) release in most cases. Best regards, Frank On 12.12.2011 16:20, Brice Fines wrote: > Hi Frank, > > We

Re: [SNMP4J] TableUtils & SubIndex

2011-12-06 Thread Frank Fock
Hi Osian, Currently TableUtils does not support your use case (directly). But it is a good idea for further development. The proposed approach with a second get (can be sent on behalf of the TableEvent callback) for TableA is the right one. Best regards, Frank Am 06.12.2011 13:09, schrieb Osian

Re: [SNMP4J] snmp set value null

2011-11-30 Thread Frank Fock
Hi, See the FAQ at http://www.snmp4j.org/html/faq.html You can search the mailing list with a search engine (Google is a search engine, for example). Best regards, Frank Am 30.11.2011 12:10, schrieb dajiang: > Hi, > > I have problem sending set pdu. > here is my code: > > PDU pdu = new PDU(); >

Re: [SNMP4J] SNMP4J IPv6

2011-11-22 Thread Frank Fock
> > Thanks > > Radhakrishna. > > > > From: Alexey Nikolaenkov [mailto:nickolaen...@gmail.com] > Sent: Tuesday, November 22, 2011 9:14 AM > To: Radha krishna Meduri -X (radmedur - HCL TECHNOLOGIES LIMITED at > Cisco) > Cc: Frank Fock; snmp4j@agentpp.org > Subject: R

Re: [SNMP4J] SNMP4J IPv6

2011-11-21 Thread Frank Fock
Message- > From: snmp4j-boun...@agentpp.org [mailto:snmp4j-boun...@agentpp.org] On > Behalf Of Radha krishna Meduri -X (radmedur - HCL TECHNOLOGIES LIMITED > at Cisco) > Sent: Monday, November 21, 2011 3:17 PM > To: Frank Fock; snmp4j@agentpp.org > Subject: Re: [SNMP4J] SNMP4J IPv6 > &

Re: [SNMP4J] SNMP Buffer OverFlow Exception

2011-11-18 Thread Frank Fock
Hi Vinod, You do not have to change anything on OS level. With SNMP you cannot send packets that exceed 64K. But I do not think that this is the problem here. I guess that you modify the PDU contents while it is being encoded. Have you checked that already? Best regards, Frank Am 18.11.2011 05:

Re: [SNMP4J] TableUtils failing to identify end of request condition

2011-11-18 Thread Frank Fock
Hi Christy, Attachments cannot be sent through the mailing list. I assume that the agent does not implement lexicographic ordering correctly. Some situations can be detected by TableUtils, but not all. Maybe you can send me the logs directly to supp...@agentpp.com? Best regards, Frank Am 18.11

Re: [SNMP4J] SNMP4J IPv6

2011-11-11 Thread Frank Fock
Hi, SNMP4J already supports IPv6 in version 1.x. Of course also in 2.x. Best regards, Frank Am 11.11.2011 14:15, schrieb Radha krishna Meduri -X (radmedur - HCL TECHNOLOGIES LIMITED at Cisco): > Hi Experts > > > > Our application was using SNMP4J 1.9 for connecting to devices using > snmp commu

Re: [SNMP4J] How to add the profile context name if using TableUtils.getTable

2011-11-09 Thread Frank Fock
Hi Julie, You can set the PDU factory to create the PDUs with non-default settings. Best regards, Frank Am 07.11.2011 16:31, schrieb Julie L: > Hi, > > I'm using TableUtils.getTable to get the snmp info, and I'm using usm.adduser > to add all the profiles, but I don't see a way to add the contex

Re: [SNMP4J] MultiThread dispatcher

2011-11-08 Thread Frank Fock
Hi Ron, If you need reliable ordering of incoming messages then you have to use the regular MessageDispatcher which is MessageDispatcherImpl. You will have to make sure then, that the calls to CommandResponder.processPdu will not block the message dispatcher. Do you have 20 cores in your server?

Re: [SNMP4J] receiving not snmp msgs

2011-11-07 Thread Frank Fock
Hi Alexander, A PDU listener can only receive PDUs. If the PDU cannot be parsed from the packet - bad luck. However, you can use the TransportListener to get the packet bytes. Best regards, Frank Am 07.11.2011 12:14, schrieb Александр Литвинов: > Hello. I'm using 2.0.2 version of snmp4j. And I h

Re: [SNMP4J] Configure agent communities via properties file

2011-11-07 Thread Frank Fock
Hi Pete, The second entry in the community table is restored from persistent storage. If you delete the file before you start the agent, you will get only one entry (the entry you configured in the properties file). Hope this helps. I will fix the wiki page about the community configuration...

Re: [SNMP4J] SnmpV3 Encryption Provider as Configurable parameter

2011-11-04 Thread Frank Fock
Hi Peter, The Provider positions are 1-based. You wrote that you used 0 as position. That won't work (-1 is returned). Have you tried it with position 1? Best regards, Frank Am 03.11.2011 22:56, schrieb Frank Fock: > Hi Peter, > > I will try to add the requested configurability

Re: [SNMP4J] SnmpV3 Encryption Provider as Configurable parameter

2011-11-03 Thread Frank Fock
Hi Peter, I will try to add the requested configurability. The ticket number is SFJ-52. Best regards, Frank Am 02.11.2011 13:36, schrieb Peter Verthez: > Hi Frank, > > To elaborate on this (because the context wasn't really explained in the > original mail of Jones): > > We found that in perfor

Re: [SNMP4J] Empty result when executing GETBULK operation to get single value.

2011-11-03 Thread Frank Fock
Hi, First of all, NET-SNMP's "snmpwalk" and the SNMP GETBULK operation are two totally different things. GETRBULK is similar to GETNEXT. Thus if you provide an instance OID (ends with .0) you will not get the instance but its successor (if available). snmpwalk works very differently and it is no

Re: [SNMP4J] NullPointerException with snmp4j (Race condition bug?)

2011-11-03 Thread Frank Fock
Hi, Creating and closing a Snmp instance to send a single PDU is not recommended usage. Nevertheless, it should not cause a NullPointerException when used with a synchronous send method. I will analyse it and fix it if necessary. Best regards, Frank Am 03.11.2011 22:37, schrieb Appu Goundan: >

Re: [SNMP4J] SnmpV3 timeout issue with system clock drift

2011-11-03 Thread Frank Fock
Hi, Are you sure that the below is caused by a clock drift? A reset of the engine boots counter at the manager seems to be more likely. You are right, that a notInTimeWindow error/report should be returned if the times of sender and responder are not in sync. Doing an automated rediscovery is a

Re: [SNMP4J] Issues with SET on a read-write column

2011-11-02 Thread Frank Fock
d the SNMP RFCs about the INDEX SMI construct for more details. Best regards, Frank Am 02.11.2011 02:54, schrieb adireddy.as...@rsa.com: > Resending the mail. > > -Original Message- > From: Aswin, Adireddy > Sent: Tuesday, November 01, 2011 5:33 PM > To: 'Frank Foc

Re: [SNMP4J] Please remove me from this list

2011-11-01 Thread Frank Fock
Hi Fridtjof, You can remove yourself through the same way you subscribed at: http://lists.agentpp.org/mailman/listinfo/snmp4j Sending unsubscribe requests to the mailing list is not polite, because several hundred people need to read it. Best regards, Frank Am 01.11.2011 20:37, schrieb Fridtjof

Re: [SNMP4J] usmStatsNotInTimeWindows and then usmStatsWrongDigests

2011-11-01 Thread Frank Fock
Hi Adi, The problem seems to be that the manager (SNMP4J) resets its MPv3 cache, because enigne boots and engine time are reset (0 and 7 instead 1 and 2861+7+x). At time x after the first successful request was sent, someone deleted the Snmp instance and/or the contained MPv3 object or used a sec

Re: [SNMP4J] thread lock in org.snmp4j.mp.MPv3.prepareResponseMessage

2011-11-01 Thread Frank Fock
org >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of SNMP4J digest..." >> >> >> Today's Topics: >> >>1. Re: thread lock inorg.snmp4j.mp.MPv3.prepareResponseMessage >> (F

Re: [SNMP4J] Description of issues fixed in SNMP4J?

2011-11-01 Thread Frank Fock
Hi Kristoffer, The JIRA system is not public. It is accessible for all users which have a valid support contract. The issue description was: The Windows Vista JDK (versions unknown) throws a SocketClosed exception on a "Time-to-live exceeded" error although the socket can still be used. Attached

Re: [SNMP4J] Issues with SET on a read-write column

2011-10-31 Thread Frank Fock
Hi, I guess that you have chosen the wrong index for your SET operation. If you would have included the INDEX definition I could have checked it. OCTET STRING index columns have variable length and thus need an additional length sub-id if not specified otherwise for the last sub-index. Best rega

Re: [SNMP4J] snmpwalk

2011-10-31 Thread Frank Fock
Hi, "snmpwalk" is not a SNMP operation. Thus, it cannot be "supported". If you mean: "Can I use SNMP4J to walk a (sub-)MIB-tree with SNMP4J?", then the answer is "yes". Best regards, Frank On 31.10.2011 09:29, nadeesh t v wrote: > whether snmp4j 2.0.2 supporting snmpwalk > __

Re: [SNMP4J] Need help with a class

2011-10-26 Thread Frank Fock
Hi, You need a SMI parser to convert object names to an OID and vice versa. Normally this is nothing one should do at runtime. You really want to do it, you can use JASMI (http://www.mibdesigner.com) for that. At compile time, AgenPro will be able to help you. Best regards, Frank On 26.10.2011

Re: [SNMP4J] Logging change in 2.0.2 version

2011-10-25 Thread Frank Fock
Hi Johnson, I do not think that there is a regression bug in the logging adapter. Have you debugged the code and are you sure the log factory initialization for your custom logging adapter is being called? Best regards, Frank Am 24.10.2011 21:55, schrieb Johnson Smith: > Hi Team, > > I have my o

Re: [SNMP4J] thread lock in org.snmp4j.mp.MPv3.prepareResponseMessage

2011-10-25 Thread Frank Fock
Hi, I do not understand your question. Are you encountering deadlocks? The stacktraces do *not* seem to indicate a deadlock. So what is the problem you encouter? Best regards, Frank Am 25.10.2011 09:02, schrieb shangtang wei: > Hello, everyone, > > > > > > Snmp4j version 1.11.2. > > We have 50 t

Re: [SNMP4J] AgentPro code generation for SNMP4J/AgentX

2011-10-25 Thread Frank Fock
Hi Wim, Yes, the AgenPro generated code for SNMP4J-Agent can be used with SNMP4J-AgentX too. In contrast, to AGENT++/AgentX++ you do not have to modify the code generation settings when switching from SNMP4-Agent only to SNMP4J-Agent + SNMP4J-AgentX. Best regards, Frank Am 25.10.2011 12:34, sch

Re: [SNMP4J] TableUtils - table size

2011-10-17 Thread Frank Fock
Hi, You can use the asynchronous interface and count the returned rows yourself. Best regards, Frank On 18.10.2011 00:27, Johnson Smith wrote: > Hi Team, > > I'm using TableUtils for snmp walk operations. I have a need to ensure max > number of rows returned for a given table does not exceed a g

Re: [SNMP4J] Does snmp4j agent support snmp3 contexts? How to configue?

2011-10-17 Thread Frank Fock
Hi, Yes of course, SNMP4J and SNMP4J-Agent as well as SNMP4J-AgentX support (SNMPv3) contexts. You can configure access rights using the VACM MIB through SNMP. In addition, you need to register your ManagedObject instances on the MOServer for the contexts you want to support. Best regards, Frank

[SNMP4J] MIB Explorer 3 Released

2011-10-12 Thread Frank Fock
Pro 3.x and use their existing license key. The next MIB Explorer release (3.1) will focus on usability enhancements on the basic browser functions. Feature requests are highly appreciated and can be sent to supp...@mibexplorer.com. The 3.1 release date is planned for Q1/2012. Frank Fock

Re: [SNMP4J] Sending hexadecimal string values (snmp set)

2011-10-11 Thread Frank Fock
Hello Miroslav, You should use OctetString.fromHexString("48 57 54 43 d0 bf 30 04", ' ') to create the OctetString value you set. Alternatively you can also use OctetString s = OctetString.fromHexString("48:57:54:43:d0:bf:30:04"); Best regards, Frank Am 11.10.2011 18:53, schrieb Miroslav Genov:

Re: [SNMP4J] Necessity of AgenPro in a SNMP agent simulator

2011-09-21 Thread Frank Fock
Hi, With AgenPro you do not need to write any code, because it has a built-in agent simulator which also can be loaded with snapshot data from a real agent. Thus, if you want a generic agent simulation with dynamic MIB support, you better choose AgenPro. Building it with SNMP4J-Agent needs al lot

Re: [SNMP4J] SNMP v3 USM issue

2011-09-20 Thread Frank Fock
gt; event.getError()); > } > } >else { > System.out.println("event is null"); >} > >} >try { >Thread.sleep(5000); >} catch (Interr

Re: [SNMP4J] SNMP v3 USM issue

2011-09-19 Thread Frank Fock
Hi, Of course, you can have two users with different passphrases but same security name for different targets. As you correctly assumed, you must then use the addUser methods and provide the authoritative engine ID each the respective target. I guess here is the cause of the error, because you ca

Re: [SNMP4J] PDU setNonRepeaters problem?

2011-09-16 Thread Frank Fock
Hi Chris, It's not a bug, it's a feature. The SNMP standard(s) have caused that. The nonRepeaters field is the same as the errorStatus field on the wire (repeaters = error index). That works, because when you send a GETBULK request, an error condition does not make sense (for the agent). The reps

Re: [SNMP4J] download snmp4j

2011-09-13 Thread Frank Fock
Am 13.09.2011 20:44, schrieb Fabrice Bacchella: > Le 13 sept. 2011 à 20:26, Frank Fock a écrit : > >> Hi, >> >> Https must be used for the download. Sorry. >> The certificate is a valid one. For Java, >> you will have to import the CA of the certificate &g

Re: [SNMP4J] Sync artifacts to Maven Central

2011-09-13 Thread Frank Fock
Hi, Syncing artifiacts is planned for the near future. Best regards, Frank On 13.09.2011 17:14, Fabrice Bacchella wrote: > > Le 13 sept. 2011 à 16:43, Stevo Slavić a écrit : > >> >> AFAIK it's enough to create a ticket on either >> https://issues.sonatype.org/browse/OSSRH or >> https://issues.so

Re: [SNMP4J] download snmp4j

2011-09-13 Thread Frank Fock
Hi, Https must be used for the download. Sorry. The certificate is a valid one. For Java, you will have to import the CA of the certificate into your Java keystore, that's all. Most checksums on the server are indeed invalid due to a bug in Maven 2.2.0 which was used to upload the packages. We h

Re: [SNMP4J] Passphrase initialization issue

2011-09-06 Thread Frank Fock
Hi, I cannot imagine that there is really the issue you are describing. Are you sure, you do not mix up localized passwords from non-localized? Best regards, Frank Am 04.09.2011 22:24, schrieb Ole Karlson: > I'm having strange issues when setting the passphrases, the following > works (traps are

Re: [SNMP4J] TSM transport models

2011-08-26 Thread Frank Fock
Hi, The SSHTM is not (yet) implemented in SNMP4J 2.0. Interfaces have been created to provide a hint for the upcoming implementation (which is in fact an integration of a 3rd party SSH implementation). Since the implementation of such an integration is not finished yet, the interface may change h

Re: [SNMP4J] possible concurrent modification exception in UsmUserTable?

2011-08-22 Thread Frank Fock
Hi, I do not see where there is an Iterator involved. Do you have a stack trace? Best regards, Frank On 19.08.2011 01:51, Aaron Loyd wrote: > > The UsmUserTable class uses the not thread safe TreeMap. It seems that if one > thread were to do snmp.getUSM().addUser() while another thread were doi

Re: [SNMP4J] snmp4j trap using tcp -> delievery status information

2011-08-17 Thread Frank Fock
Hi Andrey, To get a receipt, you have to use an INFORM message instead a NOTIFICATION. To be able to send that kind of PDU, you need SNMPv2c or SNMPv3 support on your (source and) target SNMP entity. With SNMPv1 you cannot achieve it with UDP. Best regards, Frank On 17.08.2011 11:24, Андрей wr

Re: [SNMP4J] DuplicationRegistrationException

2011-08-10 Thread Frank Fock
Hi, It seems that you wrote a broken MIB module if you want to register the OIDs below. May be you can use MIB Designer to fix you MIB module and then try again to implement it. Best regards, Frank On 10.08.2011 12:10, karuna s wrote: > Hello Frank, > > Thanks a lot for your quick response. I th

Re: [SNMP4J] Duplicate V3 Informs being sent

2011-08-05 Thread Frank Fock
Hi, I cannot follow your writing. An INFORM PDU is always a confirmed PDU. Also I cannot see why there should be two messages send for any PDU (other than retries). Best regards, Frank On 04.08.2011 20:20, Beau Anderson wrote: > I'm new to this mailing list list so I don't know if this has been

Re: [SNMP4J] Encrypted Passphrases

2011-08-01 Thread Frank Fock
Hi Christy, As Jochen wrote, you are using the wrong constructor for localized keys (which you name "encrypted passphrases"). The constructor below does work only for non-localized keys ("plain [text] passphrases"). Best regards, Frank On 01.08.2011 15:49, christyj wrote: > Hi Jochen, > > I am u

[SNMP4J] SNMP4J 2.0 Beta Test

2011-08-01 Thread Frank Fock
security * Sub-tree proxy (SNMP4J-Agent 2) * Usage of System.nanoTime() instead System.currentTimeMillis() where appropriate. Best regards, Frank Fock -- AGENT++ http://www.agentpp.com http://www.snmp4j.com http://www.mibexplorer.com http://www.mibdesigner.com

Re: [SNMP4J] FW: RaceCondition in AgentX Communication

2011-07-27 Thread Frank Fock
t; Software Engineer > Allot Communications * a mind for networks(tm) > Tel: +972 9 7619309 > Cell: +972 54 7830804 > Fax: +972 9 744 3626 > ltep...@allot.com > www.allot.com > > > -Original Message- > From: snmp4j-boun...@agentpp.org [mailto:snmp4j-boun...@

Re: [SNMP4J] Snmpv3 Sending and Receiving

2011-07-22 Thread Frank Fock
Did you make sure that sender and receiver use different engine IDs? On 22.07.2011 18:37, guyfaw...@gmx.at wrote: > I think have the same problem as described in this very old mail: > http://lists.agentpp.org/pipermail/snmp4j/2007-March/001954.html > > I also found this thread but it didn't help

Re: [SNMP4J] DuplicationRegistrationException

2011-07-22 Thread Frank Fock
Hi, "1.3.6.1.9348.13.1.2..." and "1.3.6.1.9348.13.1.3..." are not valid OIDs. Best regards, Frank On 21.07.2011 14:10, karuna s wrote: > Hello, > > I am beginner to snmp4j. I have a task to write my own mib file. > So when i want to register oid's to agent, it is throwing an exception > Duplicat

Re: [SNMP4J] Response for original request after first retransmission discarded

2011-07-19 Thread Frank Fock
Hi Jones, Well described observation. Yes, SNMP4J 1.x behaves that way. I have checked the SNMPv3 RFC 3412 and I think it allows to optimize the behavior to allow receiving a response to a former retry (or original request) after the next retry has been send out. I will now implement that optimiz

Re: [SNMP4J] RaceCondition in AgentX Communication

2011-07-18 Thread Frank Fock
Hi Liron, The race condition you refer to (http://lists.agentpp.org/pipermail/snmp4j/2011-March/004478.html) has been fixed in SNMP4J-AgentX 1.3.3. However, the wrong behavior of NET-SNMP cannot be fixed by us. Therefore, I recommend using SNMP4J-AgentX as master and NET-SNMP as sub-agent. Bes

[SNMP4J] Please do not post social network stuff on the list!

2011-07-13 Thread Frank Fock
Hi, These social network spam is a plague! I will remove any such posting from the archive and immediately unsubscribe the user that sent the email. Sorry, taking your time... Best regards, Frank -- AGENT++ http://www.agentpp.com http://www.snmp4j.com http://www.mibexplorer.com http://www.mibd

Re: [SNMP4J] TableEvent ->NoSuchInstance

2011-07-11 Thread Frank Fock
Hi Christy, TableUtils (which is creating TableEvents) uses GETNEXT and GETBULK to retrive table data. Both operations must not return any exception values you refer to (e.g. noSuchInstance, noSuchName). Thus, it does not make sense to return it as if it is returned by an agent, that agent violate

Re: [SNMP4J] Why 'stop' on SocketException in DefaultUdpTransportMapping.ListenThread?

2011-07-11 Thread Frank Fock
Hi Gary, Your right, the current behavior is too strict. I have changed it as follows for the 2.0 release (will also change it for the 1.x branch too): catch (SocketException soex) { if (!stop) { logger.error("Socket for transport mapping " + toString() +

Re: [SNMP4J] virtual table

2011-07-11 Thread Frank Fock
Hi Chaim, You can implement your own MOTableRow class that provides that data from your tables. To fully virtualize a table (or more tables at once), you can use the MOServerLookupListener from the MOServer. Best regards, Frank On 11.07.2011 08:26, Chaim Turkel - HQ wrote: > How can I implement

Re: [SNMP4J] Does SNMP4J support SNMPv2 context mapping ?

2011-06-27 Thread Frank Fock
Hi Binh, That feature is already implemented in SNMP4J-Agent. It is the SNMP-COMMUNITY-MIB implementation. For more details see RFC 3584. Best regards, Frank On 27.06.2011 20:55, Binh Le wrote: > Hi, > > Several vendors such as Cisco provide the following mechanism to > access their devices: > >

Re: [SNMP4J] if I can distinguish the response between wrong community and no snmp service

2011-06-17 Thread Frank Fock
Hi Pengli, You cannot distinguish them (with any SNMP entity), because that is behavior is the desired one. Best regards, Frank On 17.06.2011 10:26, pengli li wrote: > Hi frank: > > I have a question about snmp4j, think about two scene. > >1. I fetch message form a host which

[SNMP4J] MIB Designer 3.1 & AgenPro 3.0.8 Released

2011-06-06 Thread Frank Fock
. * Fixed: [MDS-4] Unable to parse (non-lenient-mode) a MIB specification with DEFVAL clause for an OBJECT-TYPE with OBJECT IDENTIFIER syntax which refers to a MODULE-IDENTITY. Frank Fock -- AGENT++ http://www.agentpp.com http://www.snmp4j.com http://www.mibexplorer.com http

Re: [SNMP4J] How to hook up a trap trigger from application?

2011-06-02 Thread Frank Fock
Hi Binh, To send notifications from a SNMP4J-Agent agent use the NotificationOriginator interface: http://www.snmp4j.org/agent/doc/org/snmp4j/agent/NotificationOriginator.html You can access it through the AgentConfigManager: http://www.snmp4j.org/agent/doc/org/snmp4j/agent/AgentConfigManager.ht

Re: [SNMP4J] Certificate expired

2011-05-23 Thread Frank Fock
Hello Stevo, Thanks for reporting that. The certifiate has been updated. Currently there are no plans to forward releases to the Maven central repository. Best regards, Frank On 23.05.2011 16:57, Stevo Slavić wrote: > Hello Snmp4j users, > > Certificate for maven repositories at https://server.

Re: [SNMP4J] AgentConfigManager's getVACM() method returns null.

2011-05-19 Thread Frank Fock
Hi Mark, You are right. I will fix that. Best regards, Frank On 19.05.2011 09:58, Mark A. Flacy wrote: > Greetings, > > In both of the AgentConfigManager's constructors, the JavaDoc for the > vacm parameter mentions "Typically, this parameter is set to null to use > the default VACM associated w

Re: [SNMP4J] agent problem

2011-05-01 Thread Frank Fock
Hi, You could also use AgenPro which provides a simulation agent out-of-the-box and built-in. Have you read the PDF http://www.snmp4j.org/SNMP4J-Agent-1.4-InstrumentationGuide.pdf on how to instrument SET requests? Best regards, Frank On 30.04.2011 08:29, le goualher yannick wrote: > Hello, > >

Re: [SNMP4J] community names

2011-04-27 Thread Frank Fock
Hi Wim, Yes, you can do that by using SNMP, for instance. Just edit the content of the SNMP-COMMUNITY-MIB to match your needs. The only drawback is, that you have to understand the SNMPv3 security concept to be able to do that. A code change is not necessary. Best regards, Frank On 26.04.2011 1

Re: [SNMP4J] Designing an application to "learn" an SNMP enabled device.

2011-04-05 Thread Frank Fock
Hi David, The application you are trying to write seems to be something like a MIB browser. What are the reasons not to use MIB Explorer for example? Yes, if you need runtime MIB information, then you will need JASMI (or some other SMI parsing Java API). Learning the supported MIB modules from a

Re: [SNMP4J] issue with OctetString.isPrintable

2011-04-03 Thread Frank Fock
Hi, I will try to fix that for the next 1.x and 2.x release. Best regards, Frank On 01.04.2011 17:08, Miller, Mark wrote: > We have uncovered an issue with OctetString.isPrintable(). For the > OctetString for 1C:32:41:1C:4E:38 iisPrintable is returning true but 1C > is not a printable character

Re: [SNMP4J] SNMPv3 and contextName?

2011-03-26 Thread Frank Fock
Hi Tobias, You can use http://www.snmp4j.org/doc/org/snmp4j/ScopedPDU.html#getContextName() Best regards, Frank On 25.03.2011 14:42, Tobias Lindenmann wrote: > Hi there, > > I have one questions to the snmp4j library: > > How can I set the contextName for SNMPv3 with snmp4j? > Have you an exampl

Re: [SNMP4J] Error ASN.1 parse error: Wrong ASN.1 type. Not a string: 56 at position 3/ASN.1 parse error: Data length > 4 bytes are not supported!

2011-03-25 Thread Frank Fock
Hi, You are trying to send a SNMPv1 PDU with V3 which is not allowed by the standard. SNMP4J tool should print an error message however. This will be fixed in the next release. Best regards Frank Am 25.03.2011 um 07:51 schrieb "Sa, Rajashekhar (EXT-Other - IN/Bangalore)" : > Hi, > > > > G

Re: [SNMP4J] missing values with walk operation

2011-03-24 Thread Frank Fock
Hi, The agent does not seem to implement lexicographic ordering correctly or has problems to process a GETBULK pdu correctly. Best regards Frank Am 23.03.2011 um 10:09 schrieb Katona Attila : > I have a problem with snmp4j when getting the 64bit counter > information from a cuda1000 cmts. The

Re: [SNMP4J] SNMPv1 traps with IPv6 in AgentAddress are dropped

2011-03-22 Thread Frank Fock
Hi Pavel, The IpAddress SMI type is a IPv4 address only. It cannot be used for IPv6 addresses. You have to use OctetString for that. Thus, the code will not be changed. It works as designed. Best regards, Frank On 22.03.2011 13:29, Pavel Orehov wrote: > Hi, > > I found that SNMPv1 traps with IP

Re: [SNMP4J] Problem receiving traps I generate

2011-03-18 Thread Frank Fock
Hi Eric, It works as it was designed ;-). I guess, you are sending a SNMPv1 TRAP-PDU with SNMPv2c which is a protocol violation. Just send a NOTIFICATION PDU instead and everything would be fine. (Alternatively, you may send the V1TRAP with SNMPv1) Best regards, Frank On 18.03.2011 16:54, Eric

Re: [SNMP4J] RaceCondition in AgentX Communication

2011-03-15 Thread Frank Fock
Hi, I will try to improve the reconnection behavior of SNMP4J-AgentX in this regard. However, the root cause is the bug in the NET-SNMP master agent. The AgentX RFC of course, does not define any order of requests and responses. Since the AgentX master agent has a couple of bugs for years now, I a

Re: [SNMP4J] Snmp object reuse.

2011-03-09 Thread Frank Fock
t; > -Original Message- > From: snmp4j-boun...@agentpp.org [mailto:snmp4j-boun...@agentpp.org] On > Behalf Of Frank Fock > Sent: 08 March 2011 22:34 > To: snmp4j@agentpp.org > Subject: Re: [SNMP4J] Snmp object reuse. > > Hi, > > You should reuse a Snmp instance

Re: [SNMP4J] Snmp object reuse.

2011-03-08 Thread Frank Fock
Hi, You should reuse a Snmp instance for subsequent requests. Creating and closing/destroying it for each request is overkill and guarantees bad performance and other issues on OS level (running out of ports, etc.) Best regards Frank On 08.03.2011 23:18, Giuseppe Sarno wrote: > Hello, > I seem t

Re: [SNMP4J] Setting Local port in DefaultUdpTransport causes null responses.

2011-03-02 Thread Frank Fock
t; > -Original Message- > From: snmp4j-boun...@agentpp.org [mailto:snmp4j-boun...@agentpp.org] On > Behalf Of Frank Fock > Sent: 02 March 2011 22:30 > To: snmp4j@agentpp.org > Subject: Re: [SNMP4J] Setting Local port in DefaultUdpTransport causes null > responses. > &g

Re: [SNMP4J] Setting Local port in DefaultUdpTransport causes null responses.

2011-03-02 Thread Frank Fock
Hi, You need to close the transport in order to be able to bind the port again. The OS might block a rebind for several seconds/minutes. What are you trying to test/show with the code? Why do you want to specify a specific local port? (I do not recommend that for several reasons) Best regards,

Re: [SNMP4J] Using SNMP4J in a java program

2011-02-28 Thread Frank Fock
Hi, You can use the second example from http://www.snmp4j.org/doc/org/snmp4j/Snmp.html and just replace PDU.GETNEXT with PDU.TRAPV1 and remove the listener stuff (use "null" parameter instead). Best regards, Frank On 28.02.2011 20:28, Neil Cohen wrote: > Hi, > > I am writing a Java program which

Re: [SNMP4J] Discover SNMPv3 Devices

2011-02-16 Thread Frank Fock
Hi Daniel, What your are going to try is simply impossible. You cannot use multicast with SNMPv3, because each agent has its unique engine ID and the manager must use that ID it its requests. Best regards, Frank On 15.02.2011 09:27, Daniel Boschofsky wrote: > Hi there, > > I am pretty new to mai

<    1   2   3   4   5   6   7   8   9   10   >