[SNMP4J] Closing Message

2019-04-27 Thread Frank Fock
Mailing List Archive: https://agentpp.com/support/listarchives/mibexplorer Best regards, Frank Fock ___ SNMP4J mailing list SNMP4J@agentpp.org https://oosnmp.net/mailman/listinfo/snmp4j

Re: [SNMP4J] OS

2019-04-23 Thread Frank Fock
Hi, You should use SNMP4J 3.1.0 instead any 1.x version (which is out of support and probably not compatible with latest Java SE editions). Best regards, Frank > On 23. Apr 2019, at 05:25, liname...@outlook.com wrote: > > Hello, I am doing an investigation. > Does Windows Server 2019 support

[SNMP4J] SNMP4J/AGENTPP mailing lists replacement

2019-04-22 Thread Frank Fock
ew forum. Otherwise I would be glad if you join the new forum to exchange SNMP knowledge on standards, the AGENTPP APIs and tools! Finally, I would like to thank you for your trust and loyalty partly ranging over decades now! Best regards, Fr

Re: [SNMP4J] Timeout issue with snmp4j-2.3.4.jar

2019-04-16 Thread Frank Fock
Hi Mark, Increasing the timeout is only helpful, if the agent could be in a CPU overload situation or if there is a network congestion by large IP packets. In your case, the agent seems to simply “forget” to process the request, maybe by an overload or other task, maybe because the UDP receive

Re: [SNMP4J] USMTable and thread safety

2019-03-11 Thread Frank Fock
> Yes, I had the incorrect class name. Thanks for pointing that out. > > The class I was asking about was USMUserTable. Same questions however. > > Thanks > Girish > > > On Sun, Mar 10, 2019, 8:59 AM Frank Fock <mailto:f...@agentpp.com>> wrote: > Hello Giri

Re: [SNMP4J] USMTable and thread safety

2019-03-10 Thread Frank Fock
Hello Girish, A class USMTable does not exists in SNMP4J. Do you meant another class or is this class from a third party? Best regards, Frank > On 8. Mar 2019, at 16:57, Girish Venkatasubramanian > wrote: > > Hello > I was wondering if the USMTable is thread safe. > > I see that the

Re: [SNMP4J] Usage of Diffie Hellman key exchange using SNMP4j

2019-02-15 Thread Frank Fock
Hello Girish, Thank you for being interested in the Diffie Hellman key exchange capabilities of SNMP4J (it was hard to implement it, so I am glad to here that someone wants to use it). I have put together same sample code at: https://doc.snmp.app/pages/viewpage.action?pageId=38633473 Please

Re: [SNMP4J] Question about receiving SNMPv3 traps

2019-01-07 Thread Frank Fock
Hello Girish, You can use approach (1) with autoDiscoveryEnabled. if it is not enabled, you will have to use approach (2). Having a different user ID (you mean securityName) for each trap sender won’t help, because the SNMPv3 USM lookup uses the engineID anyway. Best regards, Frank > On 7.

Re: [SNMP4J] help: multiple context

2019-01-07 Thread Frank Fock
Hi Yu, That is intended behavior. The SNMP4J-Agent default context (empty context name) is visible in all SNMPv3 contexts although the explicit context takes precedence if there are registrations for the same OID in requested context and the default context. If you want strict separation, you

Re: [SNMP4J] Implementing an SNMP trap receiver in Java EE

2018-12-28 Thread Frank Fock
Hello Nick, There is already something prepared for that, see http://www.snmp4j.org/doc/org/snmp4j/SNMP4JSettings.html#setThreadFactory-org.snmp4j.util.ThreadFactory- Hope this helps.

Re: [SNMP4J] SNMP4J Digest, Vol 140, Issue 3

2018-12-21 Thread Frank Fock
Hi Brett, Ok, but please also include the version you are using. Best regards Frank > Am 21.12.2018 um 10:14 schrieb Brett Wooldridge : > > Thanks, Frank. > > I'll post here after the holidays (first week of January). I have a > Wireshark capture of the issue as well as a proposed fix --

Re: [SNMP4J] Issue tracker?

2018-12-18 Thread Frank Fock
Hi Brett, If you have a support subscription, then you can use the AGENT++ JIRA server. Otherwise, you can use this mailing list. Best regards, Frank > On 18. Dec 2018, at 11:24, Brett Wooldridge > wrote: > > Where can users report issues, and proposed patches? > > Regards, > Brett

Re: [SNMP4J] Multiple SNMPv3 Agents running within same Java process

2018-12-12 Thread Frank Fock
Hi Stu, The code you quote from https://github.com/joescii/snmp4s/blob/master/core/ seems to be old and not production ready. It is not related to the original SNMP4J and should not be used a reference! The problem you are facing is

Re: [SNMP4J] RuntimeException on shutdown

2018-11-15 Thread Frank Fock
Hi Mark, The following snapshot 2.7.0 release should provide a fix for this issue: https://snmp.app/dist/snapshot/org/snmp4j/snmp4j/2.7.0-SNAPSHOT/snmp4j-2.7.0-20181115.204944-10.jar Best

Re: [SNMP4J] SNMPv3 -> SNMP4J 3.0.2 (also 3.0.x?)

2018-10-15 Thread Frank Fock
Hi Marian, Have you added a localized user to the USM? It seems that not the code is wrong but the localization of the passphrases is missing. Best regards Frank > Am 15.10.2018 um 10:16 schrieb Marian Wendt : > > Hi, > > I experience some behaviour that makes me think there is something

[SNMP4J] AGENT++ Notifications on Platform Updates

2018-10-13 Thread Frank Fock
oc.snmp.app <https://doc.snmp.app/> respectively. The SNMP4J distribution files and Maven repo are now available at https://snmp.app/dist <https://snmp.app/dist> too. The support JIRA will follow to the new infrastructure on November, 3r

Re: [SNMP4J] Java9+ required now?

2018-10-03 Thread Frank Fock
Hi, As there is already Java 10 available, we do not need to talk about.Java 9 anymore ;-) DTLS works as expected although the interoperability with OpenSSL DTLS and its NET-SNMP implementation of that was not easy, because NET-SNMP sends some packets in a way the Java DTLS SSLEngine leaves

Re: [SNMP4J] Java9+ required now?

2018-10-01 Thread Frank Fock
Hio Jeremy, DTLS, which is new in SNMP4J 3.x, is supported by Java 9+ only. Best regards, Frank > On 1. Oct 2018, at 22:53, Jeremy Norris wrote: > > Hi, > > I was just curious as to the reasoning behind requiring Java9+, instead of > say Java8+? > > Thanks, > Jeremy > >

[SNMP4J] SNMP4J 3.0.0 Released

2018-09-17 Thread Frank Fock
management, and Diffie Hellman operations in addition. * Changed: Removed SSH related transport mapping classes. SNMP4J-CLT 3.0, SNMP4J-Agent and SNMP4J-Agent-DB 3.0 as well as SNMP4J-AgentX 3.0 will be released 2018-09-24. Best regards Frank Fock

[SNMP4J] Release of SNMP4J 3.0 Deferred

2018-09-10 Thread Frank Fock
Hi, Due to interoperability issues with NET-SNMP DTLS agent regarding DTLS connection establishment, the release of SNMP4J 3.0 has to be shifted by one week (at least). The release is now scheduled for 17.9.2018. Best regards, Frank Fock ___ SNMP4J

[SNMP4J] New Releases AgenPro 4.2.3 / MIB Designer 4.2.3 / MIB Explorer Pro/Lite 4.3.2

2018-08-17 Thread Frank Fock
org/snmp4j/snmp4j/3.0.0-SNAPSHOT/> The releases for SNMP4J 3.0, SNMP4J-Agent 3.0, SNMP4J-Agent-DB 3.0, and SNMP4J-AgentX 3.0 are scheduled for 10.09.2018. Best regards, Frank Fock ___ SNMP4J mailing list SNMP4J@agentpp.org https://oosnmp.net/mailman/li

Re: [SNMP4J] Consecutive SNMPv3 GET Requests using same User

2018-08-08 Thread Frank Fock
;>> be explicitly deleted if the generic user is updated. > Thats the case using snmp.getUSM().addUser(...): user must be removed in case > of update. > > br, Ulrich > > > Gesendet: Dienstag, 07. August 2018 um 19:46 Uhr > Von: "Frank Fock" mailto:f...@ag

Re: [SNMP4J] Consecutive SNMPv3 GET Requests using same User

2018-08-07 Thread Frank Fock
Hi Ulrich, If you need highest security, then use localised users only. With non-localised users, you can use a single user entry for several SNMP entities. To be able to do so, the agent must know the passphrase which is stored unencrypted in the local persistent storage. With localised

Re: [SNMP4J] Unit Test SNMP v3 Agent with TestSnmpManager

2018-08-06 Thread Frank Fock
Hi Ulrich, You can use the description for your case too: https://oosnmp.net/confluence/pages/viewpage.action?pageId=1441800 <https://oosnmp.net/confluence/pages/viewpage.action?pageId=1441800> Hope this helps. Best regards, Frank Fock > On 6. Aug 2018, at 14:44, ulrich berl wrote

Re: [SNMP4J] max-bindings with big tables

2018-07-23 Thread Frank Fock
oblem is 100% > reproducable. In my case: > > - 100% of table retrievals with max-bindings != 4 is ok > - 100% of table retrievals with max-bindings == 4 is broken > > > This problem will never appear with max-bindings=1 or max-bindings=infinite, > and it will never

Re: [SNMP4J] max-bindings with big tables

2018-07-18 Thread Frank Fock
or disappear during the retrieval, a solution could be implemented. In this case, a GET will fetch the missing columns. If they cannot be fetched, the row is ignored (because it disappeared). Hope this helps? Best regards, Frank > On 12. Jul 2018, at 08:40, Frank Fock wrote: > > H

Re: [SNMP4J] max-bindings with big tables

2018-07-12 Thread Frank Fock
but effective (I > believe). > > Best regards > Steffen > > > -Original Message- > From: Frank Fock [mailto:f...@agentpp.com] > Sent: Freitag, 6. Juli 2018 18:55 > To: Steffen Brüntjen > Cc: snmp4j@agentpp.org > Subject: Re: [SNMP4J] max-bindin

Re: [SNMP4J] snmp4j TestAgent example v3 trap configuration faulty ?

2018-07-12 Thread Frank Fock
Hi Ulrich, I was intended to test/illustrate how VACM security works for notifications and traps. Many users are not aware that SNMP4J-Agent checks the access rights for outgoing variable bindings of a trap. The AgenPro configuration template does not contain this (intended) inconsistency.

Re: [SNMP4J] max-bindings with big tables

2018-07-06 Thread Frank Fock
increases significantly (through changes in the agent while TableUtils operate). Best regards Frank > Am 06.07.2018 um 10:20 schrieb Steffen Brüntjen : > > Hi! > > I'm using SNMP4J version 2.6.2. > > Best regards > Steffen > > -Original Message- > From: Fr

Re: [SNMP4J] max-bindings with big tables

2018-07-05 Thread Frank Fock
Hi Steffen What SNMP4J version are you using? Best regards Frank > Am 05.07.2018 um 17:04 schrieb Steffen Brüntjen : > > Hi Frank > > I believe I found an issue in the TableUtils class. In certain scenarios, the > returned List from getTable(Target target, OID[] columnOIDs, OID >

Re: [SNMP4J] SNMP4J CLT - compiling MIBs

2018-05-10 Thread Frank Fock
Hi Dave, It is probably simpler than you image: You can use SNMP4J-CLT to compile a MIB file. Run java -jar snmp4j-clt.jar -M mib add is a text file with one or more MIB module definitions. can be an empty directory, but is preferably the path to the “mibrespository” directory That comes

[SNMP4J] False positives reported by "OWASP Dependency check"

2018-04-26 Thread Frank Fock
! A bug report for the OWASP Dependency Check tool has been created regarding this issue. See also my statement in the SNMP4J FAQ at: https://oosnmp.net/confluence/pages/viewpage.action?pageId=29720580 <https://oosnmp.net/confluence/pages/viewpage.action?pageId=29720580> Best regards, Fran

Re: [SNMP4J] Using SNMP4J with logback

2018-04-12 Thread Frank Fock
Hi Debraj, You can write your own LogAdapter and LogFactory implementation for logback. That should be quite simple. You can start with the Log4JLogAdatper and Log4JLogFactory as example. Best rergards, Frank > On 12. Apr 2018, at 12:37, Debraj Manna wrote: > >

Re: [SNMP4J] Timeouts in version 2.5.7+

2018-04-12 Thread Frank Fock
ock, finds a > taskManager to be idle, then runs through the taskManagers (third time) and > may find all taskManagers busy again. > > Thank you for your very quick fix! > > Best regards, > Steffen Brüntjen > > > -Original Message- > From: Frank Fock

Re: [SNMP4J] Timeouts in version 2.5.7+

2018-04-10 Thread Frank Fock
ers right before this thread entered waiting status. > execute() wouldn't return, in fact it would stay in line 103 (SNMP4J-2.5.7), > and that's exactly what we can see in the stacktrace. In version 2.5.6, > notify could not happen between tm.isIdle() and wait() because execute() was > sy

Re: [SNMP4J] Timeouts in version 2.5.7+

2018-04-09 Thread Frank Fock
't take place.) > > >> I do not see any differences in the stacktraces, do I miss something? > > In your last mail you wrote, that "From the stack trace it seems that there > is no idle TaskManager in your ThreadPool for the > MultiThreadMessageDispatcher left."

Re: [SNMP4J] Timeouts in version 2.5.7+

2018-04-06 Thread Frank Fock
888189c0> (a org.snmp4j.util.ThreadPool$TaskManager) > > "snmp.0" #36 prio=5 os_prio=0 tid=0x7f6829988800 nid=0x2a6e in > Object.wait() [0x7f67935fc000] > java.lang.Thread.State: WAITING (on object monitor) >at java.lang.Object.wait(Native Method) >

Re: [SNMP4J] Timeouts in version 2.5.7+

2018-04-03 Thread Frank Fock
am also able to remote debug the program, but I wouldn't know where to look > at. Also, it's a bit of extra work and it will take a while, but it's > possible. > > > Best regards, > Steffen > > > -Original Message- > From: Frank Fock [mailto:f...

Re: [SNMP4J] Timeouts in version 2.5.7+

2018-04-01 Thread Frank Fock
Hi Steffen, There was no change on the DefaultUdpTransportMapping between 2.5.6 and 2.5.7, thus I assume that behaviour change is a side effect of some other changes. SNMP4J is no a bit faster. Have you checked your code for race conditions? When you use Snmp.send, how do you create the request

Re: [SNMP4J] Possible concurrency bug in snmp4j ?

2018-02-14 Thread Frank Fock
2.6.0 will be released next week. > Am 13.02.2018 um 18:15 schrieb Maayan, Elhanan <elhanan.maa...@sbdinc.com>: > > Thanks, do you have any timeline regarding 2.6? > > From: Frank Fock [mailto:f...@agentpp.com] > Sent: Tuesday, February 13, 2018 7:15 PM > To: M

Re: [SNMP4J] Possible concurrency bug in snmp4j ?

2018-02-13 Thread Frank Fock
gt; wrote: > > so 2.5.11 won't help? Any workaround? > > Get Outlook for Android <https://aka.ms/ghei36> > From: Frank Fock <f...@agentpp.com <mailto:f...@agentpp.com>> > Sent: Tuesday, February 13, 2018 11:51:23 AM > To: Maayan, Elhanan > Cc: snmp4j@ag

Re: [SNMP4J] Possible concurrency bug in snmp4j ?

2018-02-13 Thread Frank Fock
t; > > I see that "trying to connect to" is invoked the wakeup, so that must means > the .select is released, but returns no keys, can there be any reason for > that? > > > > > -Original Message- > From: Frank Fock [mailto:f...@agentpp.com] >

Re: [SNMP4J] Possible concurrency bug in snmp4j ?

2018-02-12 Thread Frank Fock
Hi Elhanan, Please upgrade to SNMP4J 2.5.11 to fix this issue. Best regards Frank > Am 12.02.2018 um 18:05 schrieb Maayan, Elhanan : > > Hi..i'm using snm4j 2.4.3. > > Is it possible that just when snmp4j closes a connection (due to timeout, or > remote closing)

Re: [SNMP4J] Extend DefaultTcpTransportMapping to support NTCIP PMPP

2018-01-28 Thread Frank Fock
Hello Bruno, I have changed the DefaultTcpTransportMapping to support your below stated requirements in SNMP4J 2.6.0. Best regards, Frank > On 26. Jan 2018, at 19:10, Bruno Abreu wrote: > > Hello again, > > first of all, thank you for you quick reply to our

Re: [SNMP4J] PDP "class has wrong version"

2018-01-27 Thread Frank Fock
This means your compiler is using a language level less than 1.6. Java 6 SE is the minimum required for SNMP4J 2.x. For 3.x it will be Java 9 SE. > On 27. Jan 2018, at 16:44, Mark Harpt wrote: > > I upgraded my SNMP jars and when I try to build I get "class has wrong >

Re: [SNMP4J] SocketTimeout task leaks open socket

2018-01-26 Thread Frank Fock
Hi Bruno, Your use case is indeed special although absolutely valid, of course. The fix seems to be pretty clean and straightforward. I will write a unit test for it and if everything is fine, it will be included in the next release. Best regards, Frank > On 26. Jan 2018, at 17:02, Bruno

Re: [SNMP4J] SNMP client works remotely but fails locally

2018-01-26 Thread Frank Fock
t event = snmp.send(pdu, target); > if (event != null) { > pdu = event.getResponse(); > if (pdu.getErrorStatus() == PDU.noError) { > System.out.println("SET Successful!"); > } else { > System.out.println("SET Unsuccessful.&quo

Re: [SNMP4J] SNMP client works remotely but fails locally

2018-01-26 Thread Frank Fock
Hi, This is most likely an issue about using the same engine ID if both run locally. You must use a unique ID to get it working. Best regards, Frank > On 26. Jan 2018, at 02:39, Mark Harpt wrote: > > I wrote an SNMP client that talks to an agent (gets and sets) just fine

[SNMP4J] New Releases AGENT++ Tool Suite, SNMP4J, SNMP4J-SMI-PRO

2018-01-23 Thread Frank Fock
e.getObjectIdentifiers(OIDOrder) returns all object identifiers of a loaded MIB module. * Added: OIDComparator class to compare OIDs in depth-first-or breadth-first-order. * Improved: SmiModule extends SmiObject interface. * Added: SmiModule.getSmiModuleDefini

Re: [SNMP4J] SNMP4J Agent on Xilinx Zynq ZCU102 Development Board Running Peta Linux

2017-12-06 Thread Frank Fock
Hi Don, It is just a guess: may be it is caused because the system is very slow in providing random data. Have you checked that? (On most such platforms there is a workaround to provide faster good random values) But I have to admit, that it could be something completely different. Best

Re: [SNMP4J] Using TLS for SNMPv3

2017-11-14 Thread Frank Fock
ious email are > preventing me from proceeding further with the prototyping effort. Do you > have any pointer or hint on how to work through these two issues? > > Thanks again in advance! > > Nick > > On 11/14/17, 3:20 PM, "Frank Fock" <f...@agentpp.com> wrote: &

Re: [SNMP4J] Using TLS for SNMPv3

2017-11-14 Thread Frank Fock
e, I have > >CertifiedTarget ct = new CertifiedTarget(new OctetString(“device”)); > >and > > securityCallback.addLocalCertMapping(ct.getAddress(), “client”); > >Any pointer on what keystore and truststore should be and the correct way > to construct Ce

Re: [SNMP4J] Using TLS for SNMPv3

2017-11-13 Thread Frank Fock
Hi Nick, Do you have enabled debug logging? This should give more detailed information about the TLS handshake. Best regards, Frank > On 11. Nov 2017, at 17:14, Nick Chang wrote: > > Hi Frank, > > I am using snmp4j to build a client with functionality

Re: [SNMP4J] SNMP4J - SSH Transport

2017-11-07 Thread Frank Fock
gt; this case in the SNMP4J based client ? > > Thanks, > Prema > > -Original Message- > From: Frank Fock [mailto:f...@agentpp.com <mailto:f...@agentpp.com>] > Sent: Friday, October 20, 2017 3:54 PM > To: Prema Upot <prema.u...@optelian.com <mailto:prema.u...

Re: [SNMP4J] SNMP4J - SSH Transport

2017-10-20 Thread Frank Fock
Hi Prema, The both interface classes are only a first approach, but nothing usable at the moment. SNMP over SSH is rather complex to implement. I prefer using TLS directly. Why are you looking for SSH? Best regards, Frank > On 20. Oct 2017, at 19:53, Prema Upot

Re: [SNMP4J] SNMP4J-SMI-PRO Missing artifact in Maven repository?

2017-09-28 Thread Frank Fock
ave taken the jar with dependencies and included it directly in the java > build path in Eclipse as an external library and removed the dependency from > my pom file. This works correctly and I am able to build and run my > application. > > Thanks, > DonB > >

Re: [SNMP4J] SNMP4J-SMI-PRO Missing artifact in Maven repository?

2017-09-20 Thread Frank Fock
> Thanks for all your help, > DonB > > -Original Message- > From: Frank Fock [mailto:f...@agentpp.com] > Sent: Thursday, September 14, 2017 8:37 PM > To: Broderick, Don <d...@mitre.org> > Cc: snmp4j@agentpp.org > Subject: Re: [SNMP4J] SNMP4J-SMI-PRO Missing art

Re: [SNMP4J] SNMP4J-SMI-PRO Missing artifact in Maven repository?

2017-09-14 Thread Frank Fock
ar:4.2.2 > > This is the only artifact I am having issues with and this is only since > 1.9.1. If necessary I will have to see if I can manually load the jar on our > repository using a simple pom file that won't need the classifier. > > Thanks, > DonB > > --

Re: [SNMP4J] SNMP4J-SMI-PRO Missing artifact in Maven repository?

2017-09-11 Thread Frank Fock
classifier I know get the following error: > Missing artifact org.snmp4j.smi:snmp4j-smi-pro:jar:jar-with-dependencies:1.9.1 > > > org.snmp4j.smi > snmp4j-smi-pro > 1.9.1 > jar-with-dependencies > > > Any other suggetions? > > Thanks,

Re: [SNMP4J] SNMP4J-SMI-PRO Missing artifact in Maven repository?

2017-08-29 Thread Frank Fock
Hi Don, The pom.xml your are using is wrong, i.e. remove all missing dependencies and use the SNMP4J SMI PRO jar that comes with the distribution file. Best regards Frank > Am 24.08.2017 um 23:20 schrieb Frank Fock <f...@agentpp.com>: > > Hi Don, > > The artefacts you are

Re: [SNMP4J] SNMP4J-SMI-PRO Missing artifact in Maven repository?

2017-08-24 Thread Frank Fock
Hi Don, The artefacts you are missing are internal ones and are already included in the SNMP4J-SMI-PRO 1.9.1 JAR file.Why do you think that those classes are missing? Do you get any class not found exception? Best regards, Frank > On 24. Aug 2017, at 17:19, Broderick, Don

Re: [SNMP4J] report bug for snmp4j

2017-08-22 Thread Frank Fock
Hi Vincent I will fix it, but I think the error must be in the input stream, because the API clearly states, that if the length is 0, then 0 bytes are returned (and not -1 what you observed). Of course, the agent might also be the problem by encoding a wrong length. Best regards Frank > Am

[SNMP4J] New Releases: SNMP4J 2.5.7, SNMP4J-SMI-PRO 1.9.1, MIB Designer 4.1.6, MIB Explorer 4.2.0

2017-08-17 Thread Frank Fock
e and skips it during installation/upgrade automatically. * Improved: Online help updated. * Known issue: Context help is not working under Mac OS X with Nimbus look Frank Fock ___ SNMP4J mailing list SNMP4J@agentpp.org https://oosnmp.net/mailman/listinfo/snmp4j

Re: [SNMP4J] Issue when a PDU contains two SETs for a table row status with a value of 6 to destroy when one row exists and the other row does not exist

2017-08-10 Thread Frank Fock
Hi Don, This is obviously a bug and will be fixed with the next SNMP4J-Agent release. Best regards, Frank > On 9. Aug 2017, at 16:54, Broderick, Don wrote: > > SNMP4J version 2.5.6 > SNMP4J-Agent version 2.6.0 > > I have discovered the following behavior inconsistency where

Re: [SNMP4J] How to cancel a async request when the Response Event is from a PDU.Report?

2017-08-02 Thread Frank Fock
Hello Nelson, You are right, not using Snmp.this at the below quoted code location was an error. I have corrected this for the next major release. However, this should not induce a real memory leak, because the ending message context is removed after the timeout anyway. Nevertheless, for some

Re: [SNMP4J] TCP Socket in SYN_RECV when sending V3 traps

2017-06-20 Thread Frank Fock
02030405, when using the snmptrap utility. > I was of the opinion that the same -e flag can be used in SnmpRequest utility > as well. > > Regards, > Neeraj > > > On Mon, 19/6/17, Frank Fock <f...@agentpp.com> wrote: > &g

Re: [SNMP4J] TCP Socket in SYN_RECV when sending V3 traps

2017-06-18 Thread Frank Fock
. Is there some other place where I need to set the engineId ? Regards, Neeraj Sent from my iPhone On 24 May 2017, at 16:44, Frank Fock <f...@agentpp.com> wrote: Code Start Address a

Re: [SNMP4J] TCP Socket in SYN_RECV when sending V3 traps

2017-05-25 Thread Frank Fock
Hi Neeraj, If you do not like the behaviour of the DefaultTcpTransportMapping, then you can implement your own without using NIO/multi-threading. Closing a connection while a message is being sent even if the message has already been accepted by the Java TCP stack, is always risky. The sent

Re: [SNMP4J] TCP Socket in SYN_RECV when sending V3 traps

2017-05-24 Thread Frank Fock
Hi Neeraj, A trap is an unconfirmed PDU. Thus, it is send and the application/SNMP API will not wait for any response. In you case, the Java TCP layer accepted the message, but without the sleep statement, the TCP layer will not be able to actually send the message before you close the

Re: [SNMP4J] TableUtils.getTable() null pointer exception

2017-04-12 Thread Frank Fock
Hi Stuart, What SNMP4J version are you using? Best regards, Frank > On 12. Apr 2017, at 18:19, Stuart Johnston wrote: > > Using TableUtils.getTable() can cause a null pointer exception when used with > SNMPv3, when the PDU is created. DefaultPDUFactory.createPDU() is

Re: [SNMP4J] interesting

2017-04-12 Thread Frank Fock
Hi, I have unsubscribed and blocked this user, please ignore this posting. Best regards, Frank Fock ___ SNMP4J mailing list SNMP4J@agentpp.org https://oosnmp.net/mailman/listinfo/snmp4j

Re: [SNMP4J] Unsupported PDU type

2017-04-06 Thread Frank Fock
niff communications between my IDE and remote SNMP > client, and I can confirm this nonsense: the trap comes as v2c, but it is > actually V1TRAP type. > > On 4/5/17, 4:03 PM, "Frank Fock" <f...@agentpp.com <mailto:f...@agentpp.com>> > wrote: > &g

Re: [SNMP4J] Unsupported PDU type

2017-04-05 Thread Frank Fock
Hi Yuri, The PDU is a v2c PDU which does not allow SNMPv1 TRAP! Best regards, Frank > On 5. Apr 2017, at 17:37, Yuri Krysko wrote: > > Hello All, > > I am getting the following IOException when trying to decode received SNMP > trap > > > java.io.IOException:

Re: [SNMP4J] Bug in OID class

2017-02-06 Thread Frank Fock
Hi Steffen, Thanks for the bug report. Will be fixed very soon with SNMP4J 2.5.5. Best regards, Frank Am 06.02.2017 um 17:17 schrieb Steffen Brüntjen: Hi! I found a problem in the OID class. The nextPeer() method runs into a StackOverflowError. The method: public final OID nextPeer() {

Re: [SNMP4J] SNMPv3 Notifications

2017-02-02 Thread Frank Fock
Hi Ron, What you observe is correct and matches the SNMP standard requirements. In SNMP, the trap receiver is authoritative. That is, the sender must use the SNMP(v3) user name and password the receiver knows and accepts. Hope this helps anyway ;-) Best regards, Frank > On 2 Feb 2017, at

Re: [SNMP4J] Set USM security parameters per request

2017-02-01 Thread Frank Fock
Hi Ron, You can remove the time information for a specific target by calling UsmTimeTable.remove(engineID). You can get the engineID by calling MPv3.getEngineID(Address). Best regards, Frank > On 2 Feb 2017, at 00:01, Ronald Braswell wrote: > > I have code which calls

Re: [SNMP4J] Snmp4j-Agent SNMP-MPD-MIB missing for reading snmpInvalidMsgs ?

2017-01-29 Thread Frank Fock
On 27 Jan 2017, at 09:35, ulrich berl <ulrich.b...@gmx.net> wrote: > > Thanks Frank! > > br, Ulrich > > > Gesendet: Freitag, 27. Januar 2017 um 02:28 Uhr > Von: "Frank Fock" <f...@agentpp.com> > An: "ulrich berl" <ulrich.b...@gmx.

Re: [SNMP4J] Snmp4j-Agent SNMP-MPD-MIB missing for reading snmpInvalidMsgs ?

2017-01-26 Thread Frank Fock
Hi Philippe, Cross posting messages is not good style and does not help. If a question is not answered, it might be helpful to rephrase it and add more details to enable readers to understand it. BTW, I already answered your posting an Dec 29th, 2016. Best regards, Frank > On 27 Jan 2017, at

Re: [SNMP4J] Snmp4j-Agent SNMP-MPD-MIB missing for reading snmpInvalidMsgs ?

2017-01-26 Thread Frank Fock
Hi Ullrich This seems to be an error (that the SNMP-MPD-MIB counters are not implemented by the AgentConfigManager. I ill add the missing code for the next release. Meanwhile you can, of course, implement your own CounterListener for those three counters in your own MIB. Best regards, Frank

Re: [SNMP4J] Force snmp to use a private key

2017-01-25 Thread Frank Fock
Hi, You can use the following constructor of UsmUserEntry, if you only have the keys: http://www.snmp4j.org/doc/org/snmp4j/security/UsmUserEntry.html#UsmUserEntry(byte[],%20org.snmp4j.smi.OctetString,%20org.snmp4j.smi.OID,%20byte[],%20org.snmp4j.smi.OID,%20byte[]) If you know the passphrase

Re: [SNMP4J] Single snmpset setting a RowStatus first to createAndWait and then to active not working on snmp4j-2.x

2017-01-05 Thread Frank Fock
Hi Iker, There was a bug/non-optimal code in SNMP4J-Agent 1.x which has now been fixed/improved. SNMP4J-Agent 2.x enforces now standard conformity which means you have to use RowStatus createAndGo to set a new row active with a single SET PDU. Hope this helps anyway. Best regards Frank > Am

Re: [SNMP4J] FW: suddent error coming out of nowhere

2016-12-29 Thread Frank Fock
Hi Philippe, It is a simple NullPointerException and you have the stacktrace and the code. It should be easy to identify. From the stacktrace, it seems that you are using an old version of SNMP4J. It would be always helpful to note that (and the exact version number) in your request for

Re: [SNMP4J] thread safety on SNMP

2016-12-09 Thread Frank Fock
Hi Mert, Yes, Snmp is thread safe as it could be. I will take care about the Closable interface at least for the 3.0 release (based on Java 9 for DTLS support). Best regards, Frank > On 8 Dec 2016, at 11:55, Mert Çalışkan wrote: > > Hi, > > I’m in the process of

Re: [SNMP4J] Symbolic names instead of numerical OID?

2016-11-06 Thread Frank Fock
Hello KIM, SNMP4J-SMI-PRO provides what you are looking for. Best regards, Frank Am 07.11.2016 um 01:18 schrieb BYEONG-GI KIM: Hello. are there APIs to use symbolic names such as sysDescr, instead of numerical OID like 1.3.6.1.2.1.1.5.0? I've been trying to find it from the API doc, but I

Re: [SNMP4J] snmp4j-smi-pro issue

2016-11-03 Thread Frank Fock
Hi Ronald, Most likely, you get the IMPORTS from a different MIB module, or the MIB module could not be parsed correctly (this could happen if you use the lenient mode with a broken MIB module). Hope this helps. Best regards, Frank Am 03.11.2016 um 17:27 schrieb Ronald Braswell: I am

Re: [SNMP4J] detect timeout ?

2016-10-28 Thread Frank Fock
a timeout with a table that should actually be empty -Original Message- From: SNMP4J [mailto:snmp4j-boun...@agentpp.org] On Behalf Of Frank Fock Sent: jeudi 27 octobre 2016 00:51 To: snmp4j@agentpp.org Subject: Re: [SNMP4J] detect timeout ? Hi Philippe, The (last) TableEvent object

Re: [SNMP4J] TableUtils.getTable() doesn't return

2016-10-25 Thread Frank Fock
). Best regards, Steffen Brüntjen -Original Message- From: SNMP4J [mailto:snmp4j-boun...@agentpp.org] On Behalf Of Frank Fock Sent: Dienstag, 25. Oktober 2016 02:03 To: snmp4j@agentpp.org Subject: Re: [SNMP4J] TableUtils.getTable() doesn't return Hi Steffen, I cannot imagine a standard

Re: [SNMP4J] Behaviour of ResponseListener in SNMP V3

2016-10-12 Thread Frank Fock
the question is: why is the state of the PendingRequest equal to VIRGIN? Is this unexpected? Best regards, Peter. On 11/10/2016 0:14, Frank Fock wrote: Hi Peter, Thank you for trying version 2.5.2, although it seems to be inexplicable why the behavior changed. There are no changes in 2.5.2 and 2.5.1

Re: [SNMP4J] Behaviour of ResponseListener in SNMP V3

2016-10-10 Thread Frank Fock
. On 9/10/2016 16:36, Frank Fock wrote: Hi Peter, Sorry, my statement in my previous message was wrong. Please ignore it, because setting the request-id field to 0 in a REPORT PDU is OK: If the request was encrypted the command responder would have no chance to decode the request-id field

Re: [SNMP4J] Using localized keys

2016-10-09 Thread Frank Fock
Hi Ron, There are two cases you have to differentiate: 1. You have already localized passphrases for your target: Then use USM.addLocalizedUser(...) 2. You have plain text passphrases for your target: Then use USM.addUser with a UsmUser that had been created with a

Re: [SNMP4J] Behaviour of ResponseListener in SNMP V3

2016-10-09 Thread Frank Fock
have been reported in the log, but...) 3. You did not use the original SNMP4J source code. Best regards, Frank Am 09.10.2016 um 10:33 schrieb Frank Fock: Hi Peter, The command responder is not setting the request-id correctly in the REPORT PDU. This is causing the issue on the SNMP4J side

Re: [SNMP4J] Behaviour of ResponseListener in SNMP V3

2016-10-09 Thread Frank Fock
2016 21:45, Frank Fock wrote: Hi Peter, The PDU that is send is a SNMPv2c GET request and not a v3 request. So this cannot be an issue with the USM or other v3 processing. To be able to reproduce the issue I might need more details. If it is indeed a v3 request, I would like to ha

Re: [SNMP4J] Which library should I use?

2016-10-06 Thread Frank Fock
Hi, The code you used is just out-dated and was probably written for the 1.x releases of SNMP4J-Agent. But the issue is simple to fix: Just use the SnmpCommunityEntryRow instead MOTableRow as type for "row". Best regards, Frank Am 06.10.2016 um 07:22 schrieb BYEONG-GI KIM: Hello. I'm a new

Re: [SNMP4J] TreeUtils & DefaultPDUFactory

2016-10-05 Thread Frank Fock
Hi Ron, You can upgrade to the latest SNMP4J version 2.5.2 and the issue you described should disappear. You can also fix the issue, with version 2.5.0 by setting the context engine ID to an empty OctetString in the Factory constructor. SNMP4J will then automatically replace the empty string

Re: [SNMP4J] Behaviour of ResponseListener in SNMP V3

2016-10-04 Thread Frank Fock
the debugger): REPORT[{contextEngineID=80:00:02:7d:03:00:90:d0:6d:fa:bc, contextName=nt}, requestID=0, errorStatus=0, errorIndex=0, VBS[1.3.6.1.6.3.15.1.1.3.0 = 18]] Best regards, Peter. On 3/10/2016 23:06, Frank Fock wrote: Hi Peter, Yes, the ResponseEvent should be returned after

Re: [SNMP4J] snmp4j-smi-pro thread safe?

2016-10-03 Thread Frank Fock
Hi Ron, It is, as long as no other thread is concurrently loading MIB objects into the MIB repository currently used by the SmiManager. This statement is true for all find methods. Best regards, Frank Am 03.10.2016 um 00:27 schrieb Ronald Braswell: Are methods on the SmiManager such as

Re: [SNMP4J] Behaviour of ResponseListener in SNMP V3

2016-10-03 Thread Frank Fock
Hi Peter, Yes, the ResponseEvent should be returned after the timeout with a null response. From the log, it is unclear why you do not get the event. Is there an if-statement that ignores the ResponseEvent with null response in your code? Best regards, Frank Am 30.09.2016 um 10:12 schrieb

Re: [SNMP4J] Trap Handling Configuration Framework

2016-09-29 Thread Frank Fock
Hi Ron, There are several existing (mostly commercial) trap receiver implementations. One that uses SNMP4J as protocol implementation is TrapStation. All of them provide generic approaches to classify and correlate traps. My MIB Explorer can do this too on a basic level. A fully generic

Re: [SNMP4J] Add a proxy before sending SNMP request to the device

2016-09-29 Thread Frank Fock
Hi Zhenyu, I think the easiest way to realise proxy support is writing your own TransportMapping class. Probably you can subclass one of the abstract implementations. Best regards, Frank > On 28 Sep 2016, at 01:37, Zhenyu Zhou wrote: > > Hello, > > I'm looking for a

Re: [SNMP4J] SNMP4J Correct Multi-thread Design for use it (under Linux) ?

2016-09-24 Thread Frank Fock
Hi Thierry, Your singleton factory method is NOT thread safe. This could create issues and need to be fixed. Anything else does not seem to be a real issue with SNMP. The notInTimeWindow report is normal when two SNMPv3 entities exchange messages for the first time (the time needs to be

  1   2   3   4   5   6   7   >