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

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 let

Re: [SNMP4J] my first email

2019-02-12 Thread Frank Fock
Hi Pedro, This is not a general SNMP mailing list. Do you have specific questions to SNMP4J? If yes, please provide a meaningful subject for your posting. Otherwise, please use a different forum. Best regards Frank > Am 11.02.2019 um 23:29 schrieb Pedro Agriarte Alfonso : > > Hello, > > I'm

Re: [SNMP4J] ResponseEvent in case of wrong USM credentials

2019-02-05 Thread Frank Fock
Hi Girish, The SNMPv3 standard explicitly requires that there is NO special return code if authentication or privacy fails. Instead the appropriate counters of the agent are incremented. If the command generator has read access to that counters, the failure can be analysed indirectly using thos

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

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

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

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 Wooldrid

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 caused

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 regar

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 wrong

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

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

[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
ser need to >>>> 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&

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 user

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

[SNMP4J] SNMP4J-Agent-DB Beta now available

2018-07-24 Thread Frank Fock
tps://oosnmp.net/dist/snapshot/org/snmp4j/snmp4j-agent-db/3.0-SNAPSHOT/> Best regards, Frank Fock ___ SNMP4J mailing list SNMP4J@agentpp.org https://oosnmp.net/mailman/listinfo/snmp4j

Re: [SNMP4J] max-bindings with big tables

2018-07-23 Thread Frank Fock
ce again: The table doesn't change and the problem 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 m

Re: [SNMP4J] max-bindings with big tables

2018-07-19 Thread Frank Fock
reason for this, but it's a bit complicated I admit. > Of course it's also possible that I didn't understand your answer correctly. > Sorry for the confusion in that case. Then I'd be willing to grasp how sparse > and dense tables are the reason for this problem. &g

Re: [SNMP4J] max-bindings with big tables

2018-07-18 Thread Frank Fock
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: > > Hi Steffen

Re: [SNMP4J] max-bindings with big tables

2018-07-11 Thread Frank Fock
s decent, 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-

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

2018-07-11 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. Nev

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

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

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
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: > > Cross-posting from stackoverflo

Re: [SNMP4J] Timeouts in version 2.5.7+

2018-04-12 Thread Frank Fock
kManager 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 [mailto:f...@agentpp.co

Re: [SNMP4J] Timeouts in version 2.5.7+

2018-04-10 Thread Frank Fock
cute() 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 > synchronized. > > > Best regards, >

Re: [SNMP4J] Timeouts in version 2.5.7+

2018-04-09 Thread Frank Fock
munication doesn'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.". So

Re: [SNMP4J] Timeouts in version 2.5.7+

2018-04-06 Thread Frank Fock
c0> (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) >at java.lang.Object.wait(

Re: [SNMP4J] Timeouts in version 2.5.7+

2018-04-03 Thread Frank Fock
emote 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...@agentpp.

Re: [SNMP4J] Timeouts in version 2.5.7+

2018-03-31 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 : > > 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: Maayan, Elhanan > Cc: snmp4j@a

Re: [SNMP4J] Possible concurrency bug in snmp4j ?

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

Re: [SNMP4J] Possible concurrency bug in snmp4j ?

2018-02-13 Thread Frank Fock
connect > to 192.168.56.1/162 > > > 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...@

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) and it's trying to addRegistr

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 previous post regarding > SocketTi

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 > version" error on my PDU

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 Abre

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

2018-01-26 Thread Frank Fock
.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."); > } &

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 if > the client is

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

2018-01-23 Thread Frank Fock
Added: SmiManager.SmiModule.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.

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 regard

Re: [SNMP4J] Using TLS for SNMPv3

2017-11-14 Thread Frank Fock
ding 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" wrote: > >Hi Nick, > >When using TLSTM, you are n

Re: [SNMP4J] Using TLS for SNMPv3

2017-11-14 Thread Frank Fock
> >securityCallback.addLocalCertMapping(ct.getAddress(), “client”); > >Any pointer on what keystore and truststore should be and the correct way > to construct CertifiedTarget and use securityCallback.addLocalCertMapping() > is greatly appreciated. > >Thanks

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 similar to that of > net-snmp’s snmpge

Re: [SNMP4J] SNMP4J - SSH Transport

2017-11-07 Thread Frank Fock
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 mailto:prema.u...@optelian.com>> > Cc: snmp4j@agentpp.org <mailto:snmp4j

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 wrote: > > Hi, > > I see that

Re: [SNMP4J] Slow performance of SMI-POR when running under the Java Debugger (SMI-PRO 1.9.0)

2017-10-06 Thread Frank Fock
Hi Reuben, The SMIParser.jj_scan_token() method is the scanner of the tokeniser. That is where the most work is done. So that is not surprising. It is a JavaCC generated method and pretty optimised. I would therefore rather optimise the debugger than trying to tune the SMI scanner. Hope this

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

2017-09-28 Thread Frank Fock
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 > > > > From: Frank Fock [ma

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

2017-09-20 Thread Frank Fock
help, > DonB > > -Original Message- > From: Frank Fock [mailto:f...@agentpp.com] > Sent: Thursday, September 14, 2017 8:37 PM > To: Broderick, Don > Cc: snmp4j@agentpp.org > Subject: Re: [SNMP4J] SNMP4J-SMI-PRO Missing artifact in Maven repository? > > Don,

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

2017-09-14 Thread Frank Fock
gt; > 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 > > -Original M

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

2017-09-11 Thread Frank Fock
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, > DonB >

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

2017-09-06 Thread Frank Fock
> SNMP4J-SMI-PRO MIB Parser API > > The POM in your repository for 1.9.1 is very different and lists the > dependencies that are causing the problem. Shouldn't the POM in the > repository for 1.9.1 be the same as the 1.8.0 one except for the version > number? > &g

Re: [SNMP4J] When will SNMP4J be updated to implement RFC 7860, which obsoletes RFC 7630?

2017-08-31 Thread Frank Fock
Hi Jones, SNMP4J already does implement RFC 7860. No changes necessary. Best regards, Frank > On 31. Aug 2017, at 18:56, Leung, Jones S. wrote: > > Hi, > > When will SNMP4J be updated to implement RFC 7860, which obsoletes RFC 7630? > > -->What standards are covered by SNMP4J (i.e., RFCs, F

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 : > > Hi Don, > > The artefacts you are missing are intern

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 wrote: > > I am tr

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 22

[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
installed file is the same 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&feel. Frank Fock ___ SNMP4J mailing list SNM

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 I would expect >

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 t

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

2017-06-20 Thread Frank Fock
nmptrap 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 wrote: > > Subject: Re: [SNMP4J] TCP Socket in SYN_RECV when sendi

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

2017-06-18 Thread Frank Fock
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 wrote: Code Start Address address

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 mes

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

2017-05-23 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 connect

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 called, > which calls

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
n 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" mailto:f...@agentpp.com>> > wrote: > >> Hi Yuri, >> >> The PDU is a v2c PDU which does

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: Unsupported PDU type: -92 > >

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 22:0

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 USM.removeEngineTime(eng

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 wrote: > > Thanks Frank! > > br, Ulrich > > > Gesendet: Freitag, 27. Januar 2017 um 02:28 Uhr > Von: "Frank Fock" > An: "ulrich berl" > Cc: snmp4j@agentpp.org > Betreff: Re: [SNMP4J] Snmp4j-Agent SNMP

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 an

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

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 integrating SNMP4J into Pa

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 co

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 trying

Re: [SNMP4J] detect timeout ?

2016-10-27 Thread Frank Fock
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 will

Re: [SNMP4J] detect timeout ?

2016-10-26 Thread Frank Fock
Hi Philippe, The (last) TableEvent object will indicate the timeout in its status field. Best regards, Frank Am 26.10.2016 um 15:05 schrieb FLORENT Philippe: Hi, I use this function to read infos on my host, But if the host (or the snmp service) is down, how do I detect it ? So far I check

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 sta

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

2016-10-24 Thread Frank Fock
Hi Steffen, I cannot imagine a standard conforming agent that will cause the situation you described, but anyway you are right, that there is a "hole" in the algorithm of TableUtils. To fix it, you can replace the "relevant part in TableRequest.onResponse" with boolean sentChunk; if (!(sen

Re: [SNMP4J] Behaviour of ResponseListener in SNMP V3

2016-10-12 Thread Frank Fock
the listener not to be called So 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 cha

Re: [SNMP4J] Behaviour of ResponseListener in SNMP V3

2016-10-12 Thread Frank Fock
o be called So 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 change

Re: [SNMP4J] Behaviour of ResponseListener in SNMP V3

2016-10-10 Thread Frank Fock
fference. Best regards, Peter. 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 t

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

  1   2   3   4   5   6   7   8   9   10   >