Re: [SNMP4J] SNMP v3 - with same user name on different devices is not working

2015-04-18 Thread Frank Fock
devices having same > security name that will be executed on threads at a time. Also is it > mandatory to get engineid if user name is same for all devices? If so why? > > Thanks > -Senthil > > >> On 4/18/15, 2:04 AM, "Frank Fock" wrote: >> >>

Re: [SNMP4J] SNMP v3 - with same user name on different devices is not working

2015-04-18 Thread Frank Fock
Hi Senthil, How do you get/determine the engine ID in your functions doGet1 parameter list? It must be different for those two devices and it has to be their authoritative engine ID. Best regards, Frank > On 17 Apr 2015, at 23:24, Senthil Murugan Ramalingam -X (seramali - UNISH > CORPORATION

Re: [SNMP4J] changing the community string at run-time?

2015-03-24 Thread Frank Fock
Hi, Simply set the snmpCommunityName in the snmpCommunityTable. To be able to do this at runtime, you need the latest SNMP4J-Agent version 2.3.2 which has been released today. Best regards, Frank Am 23.03.2015 um 23:49 schrieb Pradipmaya Maharana: I am writing a snmp agent based on the sampl

Re: [SNMP4J] SNMP Agent's trap sending port

2015-03-23 Thread Frank Fock
Hi Shraddha, You can simply add a TransportMapping to the Snmp instance you are using with a local port set (instead of 0). Best regards, Frank > On 23 Mar 2015, at 19:13, Shraddha Herlekar wrote: > > Hi, > > Is there any way to force SNMP agent to use a particular port to send out > SNMP v2

Re: [SNMP4J] rfc 6353 support

2015-03-19 Thread Frank Fock
Hi Greg, You can find the supported RFCs here: http://oosnmp.net/confluence/pages/viewpage.action?pageId=5799943 Best regards, Frank Am 19.03.2015 um 23:12 schrieb Geilfuss, Greg: I'm investigating SNMP4J to determine if it's right for my application's needs. RFC 6353 support is required. __

Re: [SNMP4J] Privacy protocols AES192, AES256, 3DES not working with SNMP4J

2015-03-18 Thread Frank Fock
ank for your quick response. Great support. > > Can you please throw more light on Cisco specific protocols provided by > SNMP4J for AES 196 and above. If possible pls share any sample code for > AES196 using Cisco specific protocols provided by SNMP4J. > > Thanks > -Sen >

Re: [SNMP4J] Privacy protocols AES192, AES256, 3DES not working with SNMP4J

2015-03-17 Thread Frank Fock
Hi Sen, For Cisco devices you need to use the Cisco specific protocols provided by SNMP4J for AES 196 and above. Cisco implemented a different key handling than the proposed IETF protocols. Unfortunately there is no standard defined Best regards Frank > Am 18.03.2015 um 00:13 schrieb Senthi

Re: [SNMP4J] index value greater than max java 32-bit integer

2015-03-04 Thread Frank Fock
Hi Syed, All value up to 2^32-1 are supported. In Java, the values will become negative above 2^31, but that has to be handled by your code. The string conversion should work as expected and also the OID.compareTo will work correctly. Best regards, Frank Am 04.03.2015 um 02:30 schrieb Ali, S

Re: [SNMP4J] How to add OID to agent MIB

2015-02-24 Thread Frank Fock
not too much to ask then can you please put it as step by step approach. Regards, Nitin Kumar Sharma. On Wed, Feb 18, 2015 at 1:08 PM, Frank Fock <mailto:f...@agentpp.com>> wrote: Hi Nitin, SNMP4J-Agent includes a sample simulation agent whose content can be set via SNMP

Re: [SNMP4J] How to add OID to agent MIB

2015-02-18 Thread Frank Fock
Hi Nitin, SNMP4J-Agent includes a sample simulation agent whose content can be set via SNMP. I think that is all you are looking for. Best regards Frank > Am 17.02.2015 um 22:51 schrieb nitin sharma : > > Hi All, > > I am trying to build a SNMP simulator for my project and i have been given >

Re: [SNMP4J] how to create IP packet using SNMP4J

2015-02-13 Thread Frank Fock
Hi Shivi, A PDU can be easily encoded to an BER byte stream which represents exactly the SNMP message. Then you only have to add the IP header and compute payload length etc. and you are done. Best regards. Frank > On 13 Feb 2015, at 04:47, Shivi Goel -X (shivigoe - NICHEPRO TECHNOLOGIES >

Re: [SNMP4J] Maven central

2015-02-13 Thread Frank Fock
> SNMP4J mailing list > SNMP4J@agentpp.org > https://oosnmp.net/mailman/listinfo/snmp4j AGENT++ Frank Fock https://agentpp.com ___ SNMP4J mailing list SNMP4J@agentpp.org https://oosnmp.net/mailman/listinfo/snmp4j

[SNMP4J] AGENT++ Web Sites Relaunch

2015-02-06 Thread Frank Fock
<http://snmp.software/> Best regards, Frank Fock ___ SNMP4J mailing list SNMP4J@agentpp.org https://oosnmp.net/mailman/listinfo/snmp4j

Re: [SNMP4J] how to change the MIB and its values

2015-01-25 Thread Frank Fock
Hi Nitin, Please find my answers inline below: > On 25 Jan 2015, at 22:19, nitin sharma wrote: > > Hi team, > > I trying to build a SNMP agent and so far been able to built one with the > help of java code available on net (i.e. by extending BaseAgent class). > > > I would like to know > >

Re: [SNMP4J] Sending SNMP V3 Traps with or without Agent?

2015-01-22 Thread Frank Fock
Hi Imene, (V3) traps can be sent without implementing a command responder SNMP entity (=agent). Nevertheless, I would recommend to implement an agent, because SNMP favours the trap-directed-polling pattern, where a trap receiver periodically polls key MIB objects to detect failures or alarm co

Re: [SNMP4J] Snmp4j agent -- can print and store the incoming requests

2015-01-19 Thread Frank Fock
Hence, i would like to decode the incoming request, and based upon the input, > change my response and send back to server. > > Regards, > Nitin Kumar Sharma. > > > On Mon, Jan 19, 2015 at 12:36 PM, Frank Fock <mailto:f...@agentpp.com>> wrote: > Hi Nitin, > &

Re: [SNMP4J] Snmp4j agent -- can print and store the incoming requests

2015-01-19 Thread Frank Fock
Hi Nitin, Wha is your goal? Writing a SNMP agent? Then you should use SNMP4J-Agent on top of SNMP4J. Beginning writing a SNMP agent with SNMP4J from scratch needs a lot of SNMP know how. SNMP4J-Agent already implements most of complex agent stuff. But finally, what is the printing for? Best r

Re: [SNMP4J] SNMP4J V3 Traps with specified Engine ID

2015-01-07 Thread Frank Fock
ID is used instead. Best regards, Frank > > Thanks, > Imene. > > > -Original Message- > From: Frank Fock [mailto:f...@agentpp.com] > Sent: Tuesday, January 06, 2015 6:31 PM > To: Boussour, Imene (6076618) > Cc: snmp4j@agentpp.org > Subject: Re: [SNMP4

Re: [SNMP4J] SNMP4J V3 Traps with specified Engine ID

2015-01-06 Thread Frank Fock
Hi Imene, Your understanding of SNMPv3 trap sending is not correct. SNMPv3 notifications (traps) are sent from a command responder entity and are therefore authoritative. That means, the sender (which is the command responder entity) uses its own security engine ID within the notification PDU.

Re: [SNMP4J] snmp4j for multiple device

2014-12-19 Thread Frank Fock
Hi Brijesh, You misunderstood me, not the security name is the problem source, instead there are two or more SNMP devices that use the same engine ID (which is not allowed/supported by SNMPv3). Best regards, Frank Am 19.12.2014 12:26, schrieb Brijesh Kumar: Hi Frank, Yes i am using same securi

Re: [SNMP4J] snmp4j for multiple device

2014-12-19 Thread Frank Fock
OK, then you hit an FAQ. As you are using the same security name for all the devices, it is essential (in other cases too, but you will not see the negative results that early) that you have a unique engine ID for each device. This is an absolut requirement by SNMPv3. Best regards, Frank Am 19.1

Re: [SNMP4J] HA: HA: [BugReport][SNMP4J-2.2.3] Concurrency bug in org.snmp4j.util.ThreadPool.

2014-12-18 Thread Frank Fock
От: SNMP4J [snmp4j-boun...@agentpp.org] от имени Dmitrii Krendelev [krende...@netcracker.com] Отправлено: 18 декабря 2014 г. 23:22 Кому: Frank Fock; snmp4j@agentpp.org Тема: [SNMP4J] HA: [BugReport][SNMP4J-2.2.3] Concurrency bugin

Re: [SNMP4J] snmp4j for multiple device

2014-12-18 Thread Frank Fock
Hi Brijesh, If you get an unsupportedSecurityLevel error, then you specified a security level that is not supported by your USM configuration. Basically, you will have to provide either a privacy password and a authentication password for the corresponding protocols in the configuration. Bes

Re: [SNMP4J] [BugReport][SNMP4J-2.2.3] Concurrency bug in org.snmp4j.util.ThreadPool.

2014-12-18 Thread Frank Fock
Hi Dimitrii, When an InterruptedException is thrown in wait() it will be catched and a new interrupt() will be triggered. If not handled, the TaskManager continues in the loop but then finally calls wait() again, if no TaskManager is there to handle the task. I do not see any problem with the

Re: [SNMP4J] Troubles with SET request

2014-12-17 Thread Frank Fock
Hello Krystian, There are several errors (misunderstandings) in the code you posted. Please completely rewrite it. I suggest using AgenPro to generate your stub code from a MIB to get a consistent implementation for the corresponding MIB specification. The major issues are: 1. The tables have il

Re: [SNMP4J] How to lock snmp agent if server is trying to connect with invalid credential(3 times)

2014-12-05 Thread Frank Fock
Hi Smurti, The MessageDispatcherImpl class has the method http://www.snmp4j.org/doc/org/snmp4j/MessageDispatcherImpl.html#addAuthenticationFailureListener(org.snmp4j.event.AuthenticationFailureListener) to register a listener for authentication failure requests. Since locking the agent can be us

Re: [SNMP4J] PDU Encoding too big.

2014-11-13 Thread Frank Fock
ing unusual (or maybe flawed) > about the remote Agent. Is that a reasonable interpretation? > > > On Wed, Nov 12, 2014 at 4:06 PM, Frank Fock wrote: > >> Hi David, >> This error is not related to the transport or IP layer. This is an error >> that is report

Re: [SNMP4J] PDU Encoding too big.

2014-11-12 Thread Frank Fock
Hi David, This error is not related to the transport or IP layer. This is an error that is reported by the command responder when the received PDU is longer than the local constraints which might be any message length between 484 and 65535 bytes. Best regards Frank Am 12.11.2014 um 14:31 schri

Re: [SNMP4J] forwarding traps to NMS via a proxy

2014-11-11 Thread Frank Fock
Hi Shivi, Although the SNMP stanard discourages usage of inband source addresses, you can use the snmpTrapAddress from the SNMP-COMMUNITY-MIB as additional object to all the proxied traps. Best regards, Frank Am 11.11.2014 07:47, schrieb Shivi Goel -X (shivigoe - NICHEPRO TECHNOLOGIES PRIVATE

Re: [SNMP4J] Changing security level in v3

2014-11-06 Thread Frank Fock
Hello George, A restart is not necessary, of course. Most likely you did not properly re-add the necessary entries? Why are you changing so many things just to change the security level? Best regards, Frank > On 06 Nov 2014, at 04:59, George Bachus wrote: > > Hello, > > I am in the process

Re: [SNMP4J] How can we contribute to SNMP4J

2014-11-05 Thread Frank Fock
Hi Narendra, You may post bug reports and feature requests anytime here on the mailing list. Direct code contribution is not possible, because of security and copyright considerations. As SNMP4J has a very open and object oriented design, missing features or applications, can be easily added as

Re: [SNMP4J] Compilation errors snmp4j-agent-2.3.0 + snmp4j-2.3.1

2014-10-29 Thread Frank Fock
Hi Mark, JDK 1.6 and probably also your Eclipse version have a compiler bug regarding certain usage of Generics. To fix it, you have to use an JDK 7 compiler and then set the compliance level to 1.6 (if you need to). The bug is well documented at Oracle and was an architecture problem with the

Re: [SNMP4J] SNMPv3 problem with unhandled responses

2014-10-28 Thread Frank Fock
s used * for the SNMP4J 2.0.1 problem at our customer, it's JDK 7u06 We'll test with the patch that you provided. Thanks, Peter. On 27/10/2014 8:35, Frank Fock wrote: Hi Peter, Operarting system and JDK version (including whether it is a Oracle or 3rd party JRE) would be helpful t

Re: [SNMP4J] SNMPv3 problem with unhandled responses

2014-10-27 Thread Frank Fock
2.3.0 and 2.3.1 tests, JDK 7u45 is used * for the SNMP4J 2.0.1 problem at our customer, it's JDK 7u06 We'll test with the patch that you provided. Thanks, Peter. On 27/10/2014 8:35, Frank Fock wrote: Hi Peter, Operarting system and JDK version (including whether it is a Oracle or

Re: [SNMP4J] SNMPv3 problem with unhandled responses

2014-10-27 Thread Frank Fock
older release of our product). Best regards, Peter. On 24/10/2014 2:16, Frank Fock wrote: Hi Peter, Please update to the latest version. There have been several fixes about race conditions in the Snmp class regarding retries and the PduHandleCallback. The current implementation seems to b

Re: [SNMP4J] Looking for clarification on SNMP4J USM.getUser() implementation

2014-10-24 Thread Frank Fock
Hi Randika, A USM entry without an engine ID is no "valid" user entry itself, because such an entry must be associated with a security engine ID in all cases. SNMPv3 users however, do not want to remember (and configure) the security engine IDs of all managed devices. Using "template" USM entrie

Re: [SNMP4J] SNMPv3 problem with unhandled responses

2014-10-23 Thread Frank Fock
Hi Peter, Please update to the latest version. There have been several fixes about race conditions in the Snmp class regarding retries and the PduHandleCallback. The current implementation seems to be OK regarding handling of the Message IDs and the MPv3 Cache WeakHashMap. Best regards, Fran

[SNMP4J] Released: AgenPro 4.0, SNMP4J-SMI 1.5.2, SNMP4J-Agent 2.3

2014-10-20 Thread Frank Fock
SNMPv2MIB SysOREntry. * Fixed: Cast in line 630 to include row class parameter: MOMutableTableModel mmodel = (MOMutableTableModel)model; * Fixed [SFJ-94]: Fixed DefaultMOServer.unregister method for provided context. Best regards, Frank Fock -- --- AGENT++ Maximilian-Kolbe-Str. 10 73257 Koengen

Re: [SNMP4J] SNMP4J Digest, Vol 93, Issue 1

2014-10-15 Thread Frank Fock
Today's Topics: 1. Question regarding request id when doing getnext (Mátyás Kuti) 2. Re: Question regarding request id when doing getnext (Frank Fock) -- Message: 1 Date: Mon, 13 Oct 2014 13:23:01 +0200 From: Mátyá

Re: [SNMP4J] SNMP4J, UDP, network buffers and EPERM

2014-10-15 Thread Frank Fock
Hi David, SNMP4J does not implement "transmit pacing" because in (pure) Java you cannot get any information of the UDP buffer usage. Slowing down the sending of messages in general will not be acceptable for 99% of the users and use cases. To be able to control burst sending of messages, man

Re: [SNMP4J] Question regarding request id when doing getnext

2014-10-13 Thread Frank Fock
Hi, You cannot expect anything from a request ID other than it is unique as long as the agent is running (and the range of available numbers is not exhausted). SNMP4J (currently) also generates an ID for each response which has the advantage, that even if the response cannot be fully parsed, it

Re: [SNMP4J] Device sending Trap with Inform

2014-09-19 Thread Frank Fock
Hi John, The SNMP4J trap listener is already responding to INFORM requests as required by the SNMP(v3) standard. The standard requires the protocol level to respond the INFORM request. It is thus not the application that is responding. Best regards, Frank Am 20.09.2014 00:10, schrieb John Money

Re: [SNMP4J] About snmp4j agent

2014-09-18 Thread Frank Fock
Hi Jacky, The ManagedObject implementations MOScalar and DefaultMOTable of SNMP4J-Agent already provide an in-memory "database" for MIB data. That data can also be persistently saved to a file using the a ready-to-use mechanism. There several approaches to instrument a SNMP4J-Agent. I always

Re: [SNMP4J] Please Help - " maximum number of DatagramSockets reached "

2014-09-11 Thread Frank Fock
Hi Vince, From the SNMP(4J) point of view, such a exception (error) does not exists. It seems that this exception was invented be someoneelse. So we cannot help. Best regards, Frank Am 11.09.2014 08:34, schrieb Vince Zeng: Hi guys, For SNMP4J when I tried to get / getNext from cisco or dell d

Re: [SNMP4J] SNMP4j duplicate registration exception

2014-09-01 Thread Frank Fock
Hello Leonard, SMI forbids the registration of an OID below another OID (instance within instance) and obviously that makes sense. Otherwise, the lexicographic ordering of objects in an agent could not be implemented without ambiguities. In your case, the corresponding SMI MIB would have an er

Re: [SNMP4J] sysUpTime units doc example.

2014-08-31 Thread Frank Fock
Hi, Yes, this the example should read as follows: long sysUpTime = (System.nanoTime() - startTime) / 1000 // 10^-7 I will fix the documentation (that was a regression when replacing System.currentMillis() with System.nanoTime(). Best regards, Frank Am 31.08.2014 15:37, schrieb Mooli Tayer

Re: [SNMP4J] Exception while retrieving prtChannelEntry oid 1.3.6.1.2.1.43.14.1.1 from RFC1759 (printer MIB) in SNM4j 2.2.5

2014-08-09 Thread Frank Fock
Hi Ilya, Can you please provide the stack trace? That will help to identify whether the problem was caused by the message sender or responder. How did you provide the OID? Best regards Frank Am 09.08.2014 um 12:41 schrieb Ilya Knyazhansky : > Hello All, > When I try to use TableUtils to get the

[SNMP4J] MIB Designer 4.0, MIB Explorer 4.0 and SNMP4J-SMI-PRO 1.5.1

2014-08-07 Thread Frank Fock
file had several errors affecting the MIB structure. * Improved: Error location of DEFVAL and other unresolved references. * Added: Full SPPI PIB module checking now available with additional error messages 6001-6007. Best regards, Frank Fock -- --- AGENT++ Maximilian-Kolbe-Str. 10 73257 Koengen, Ge

Re: [SNMP4J] renewSocketAfterException() binds to a specific address

2014-07-25 Thread Frank Fock
ss.getPort(), udpAddress.getInetAddress()); Thanks, Prema -Original Message- From: SNMP4J [mailto:snmp4j-boun...@agentpp.org] On Behalf Of Frank Fock Sent: Tuesday, July 22, 2014 4:57 PM To: snmp4j@agentpp.org Subject: Re: [SNMP4J] renewSocketAfterException() binds to a specific address Hi P

Re: [SNMP4J] renewSocketAfterException() binds to a specific address

2014-07-22 Thread Frank Fock
Hi Prema, The renewSocketAdterException(..) method of the DefaultUdpTransportMapping uses *exactly* the same UDP address as provided in the constructor. If you provided "0.0.0.0", it will be used again. You wrote that you are using the default constructor. That one is *not* using "0.0.0.0", inst

Re: [SNMP4J] SNMP4J Digest, Vol 90, Issue 12

2014-07-22 Thread Frank Fock
snmp4j-ow...@agentpp.org When replying, please edit your Subject line so it is more specific than "Re: Contents of SNMP4J digest..." Today's Topics: 1. Re: SNMP4J Digest, Vol 90, Issue 11 (Harsha H R) 2. Re: SNMP4J Digest, Vol

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

2014-07-21 Thread Frank Fock
requ...@agentpp.org You can reach the person managing the list at snmp4j-ow...@agentpp.org When replying, please edit your Subject line so it is more specific than "Re: Contents of SNMP4J digest..." Today's Topics: 1. Re: TableUtils - STATUS_WRONG_ORDER = -2; endOfMibVie

Re: [SNMP4J] TableUtils - STATUS_WRONG_ORDER = -2; endOfMibView

2014-07-18 Thread Frank Fock
Hi Harsha, You will have to write your own TableUtils class to change this behavior. But careful, there are many buggy agents like yours in the field. In your case, the bug is harmless (although it violates the standard). But other agents return lesser OIDs which can cause endless loops. Theref

Re: [SNMP4J] 3DES trap is not sent

2014-07-14 Thread Frank Fock
ease suggest. - Thanks, Narayanarao On Monday, July 14, 2014 7:53 PM, Frank Fock wrote: Hi Narayanarao, Then you have not registered the privacy protocol you are using as SecurityProtocol with SecurityProcotols.getInstance().addPrivacyProtocol(..) Best regards, Frank Am 14.07.2014 12:53, schrieb N

Re: [SNMP4J] 3DES trap is not sent

2014-07-14 Thread Frank Fock
,localizationEngineID=80:00:13:70:01:0a:7e:b2:74:61:83:59:98] -Thanks, Narayanarao On Monday, July 14, 2014 1:23 PM, Frank Fock wrote: Hi Narayanarao, Which class (with line 101) do you mean? Could you please also post the line content with some context? Best regards, Frank Am 14.07.2014 09:34, schrieb

Re: [SNMP4J] 3DES trap is not sent

2014-07-14 Thread Frank Fock
ools.console.SnmpRequest.send(SnmpRequest.java:407) at org.snmp4j.tools.console.SnmpRequest.main(SnmpRequest.java:1243) - Thanks Narayanarao On Friday, July 11, 2014 8:11 PM, Frank Fock wrote: Then please check it a third time. There are only two locations where this error can happ

[SNMP4J] Upcoming new major releases of AGENT++ Tool Suite

2014-07-12 Thread Frank Fock
rnal simulation agent. * Direct editing of simulation data in the MIB tree. * Property key selection from configurable template (defaults for provided code generation templates). Best regards, Frank Fock -- --- AGENT++ Maximilian-Kolbe-Str. 10 73257 Koengen, Germany https://agentpp.com Phone: +49

Re: [SNMP4J] Socket closed exception

2014-07-11 Thread Frank Fock
remains in DefaultUdpTransportMapping ? Thanks, Prema -Original Message- From: Frank Fock [mailto:f...@agentpp.com] Sent: Thursday, July 10, 2014 4:53 PM To: Prema Upot; snmp4j@agentpp.org Subject: Re: [SNMP4J] Socket closed exception Hi Prema, Simply call "listen()" on the Transp

Re: [SNMP4J] Reg: Unable to receive SNMP v3 traps

2014-07-11 Thread Frank Fock
reports 40. Does TrapReceiver need to sync engine boot and engine time with that of Sender? Thanks & Regards, Nithin K J Quoting Frank Fock : Hi, The local USM cache has stored a value of 40. The sender reports 0, which is less. Therefore the message is being dropped. You will have to reset

Re: [SNMP4J] 3DES trap is not sent

2014-07-11 Thread Frank Fock
Frank for your reply. i double checked and privacy pass phrase is set. could you please let me know if enabling any debugs will help to narrow down the issue? -Narayanarao P.S:- my trap forward code is failing only for 3des privacy protocol. On Friday, July 11, 2014 12:16 PM, Frank Fock wrote

Re: [SNMP4J] Reg: Unable to receive SNMP v3 traps

2014-07-11 Thread Frank Fock
Hi, The local USM cache has stored a value of 40. The sender reports 0, which is less. Therefore the message is being dropped. You will have to reset the cached value to 0, and then fix the sender to persistently store its own engine boots counter. Best regards, Frank Am 11.07.2014 um 13:58 sch

Re: [SNMP4J] 3DES trap is not sent

2014-07-10 Thread Frank Fock
Hi, Please fix the USM settings accoridng to the error message. You are trying the use a security level that is not supported by the protocol or by the provided security credentials. For example if the secLevel is authPriv and you did not provide a privacy passphrase, you will get this error. Be

Re: [SNMP4J] Socket closed exception

2014-07-10 Thread Frank Fock
the socket closed in the first instance. We have been running this code for a few years now and this problem has surfaced only quite recently. Thanks, Prema -Original Message- From: SNMP4J [mailto:snmp4j-boun...@agentpp.org] On Behalf Of Frank Fock Sent: Wednesday, July 09, 2014 2:22 PM

Re: [SNMP4J] Socket closed exception

2014-07-09 Thread Frank Fock
Hi Prema, Most likely, someone is calling Snmp.close() or the close() method of the underlying transport mapping while other code is still using the same Snmp session. Another option would be the operating system or JRE closing the socket itself for some reason (unlikely). Best regards, Fran

Re: [SNMP4J] SNMP Agent discovery

2014-06-30 Thread Frank Fock
+ resEvent.getResponse()); } }; snmp.send(pdu, target, null, listener); } Thanks, Shraddha. -Original Message----- From: SNMP4J [mailto:snmp4j-boun...@agentpp.org] On Behalf Of Frank Fock Sent: Friday, June 27, 2014 11:53 AM To:

Re: [SNMP4J] SNMP Agent discovery

2014-06-27 Thread Frank Fock
Hi Shraddha, Yes, of course. MIB Explorer is based on SNMP4J and its network discovery engine is based on SNMP4J. Use the asynchronous request interface in conjunction with the broadcast address and use the cancel method by timeout (and not for each response as usual). Best regards, Frank A

Re: [SNMP4J] Reg: Not able to receive traps with AuthPriv security level

2014-06-23 Thread Frank Fock
engine discovery property enabled/disabled. Thanks & Regards, Nithin K J -Original Message- From: SNMP4J [mailto:snmp4j-boun...@agentpp.org] On Behalf Of Frank Fock Sent: 23 June 2014 21:42 To: snmp4j@agentpp.org Subject: Re: [SNMP4J] Reg: Not able to receive traps with AuthPriv security l

Re: [SNMP4J] Reg: Not able to receive traps with AuthPriv security level

2014-06-23 Thread Frank Fock
Hi, Most likely, this is an engine ID problem. Are the engine IDs unique? Is the authentication/privacy passwords on the receiver site localized for the engine ID of the sender? Best regards, Frank Am 23.06.2014 14:29, schrieb Nithin Jagadeesh: Hi, I am trying to listen the traps from SN

Re: [SNMP4J] DefaultTcpTransportMapping: socket disconnect causes timeouts for all

2014-06-19 Thread Frank Fock
Hi Ladd, This fix could indeed improve the transport mappings behavior in some situations! Thanks for sorting this out. The getFirst() calling is inefficient, because it takes several loops to get all keys processed (they are removed from the list by other code). In the case of a dropped conn

Re: [SNMP4J] Safely executing TreeUtils.getSubtree in concurrent threads

2014-06-19 Thread Frank Fock
every 30 seconds. I will investigate timeout changes tomorrow. Thanks and any more suggestions always welcome Regards Nigel On 19 June 2014 19:30, Frank Fock <mailto:f...@agentpp.com>> wrote: Hi Nigel, Your setup is absolutely fine and the recommended one for that task.

Re: [SNMP4J] Safely executing TreeUtils.getSubtree in concurrent threads

2014-06-19 Thread Frank Fock
Hi Nigel, Your setup is absolutely fine and the recommended one for that task. Have you checked that the agent isn't the problem? Agents (except AGENT++ and SNMP4J-Agent based) are often single threaded and many do not implement thread safe lexicographic ordering correctly. Also check the timeou

Re: [SNMP4J] Unregister MO with context doesnt work

2014-06-17 Thread Frank Fock
scope is compared with the lower bound of the query. Scope and query - * are deemd to be equal if both bounds are equal and are both included. + * are deemed to be equal if both bounds are equal and both are included. * Otherwise the scope is deemed to be less than the query. * * @author Frank

Re: [SNMP4J] v1.11.3 and v1.11.4 distribution archive checksums don't match

2014-06-17 Thread Frank Fock
Hi, The links are all working (again) now. Best regards, Frank Am 17.06.2014 17:56, schrieb Frank Fock: Hi, The 1.x releases have indeed a wrong hash value due to a bug in the then used Maven 2 which calculated the hash as hash(file+file) instead of hash(file). The confluence and jira pages

Re: [SNMP4J] v1.11.3 and v1.11.4 distribution archive checksums don't match

2014-06-17 Thread Frank Fock
Hi, The 1.x releases have indeed a wrong hash value due to a bug in the then used Maven 2 which calculated the hash as hash(file+file) instead of hash(file). The confluence and jira pages have been restored (wrong webserver config). I am still working on the fix for the mailman and pipermail page

[SNMP4J] Mailing List Maintenance - END

2014-06-15 Thread Frank Fock
continue to post messages. Best regards, Frank Fock -- --- AGENT++ Maximilian-Kolbe-Str. 10 73257 Koengen, Germany https://agentpp.com Phone: +49 7024 8688230 Fax: +49 7024 8688231 ___ SNMP4J mailing list SNMP4J@agentpp.org http://oosnmp.net/mailman

[SNMP4J] Mailing List Maintenance - BEGIN

2014-06-14 Thread Frank Fock
! Best regards, Frank Fock -- --- AGENT++ Maximilian-Kolbe-Str. 10 73257 Koengen, Germany https://agentpp.com Phone: +49 7024 8688230 Fax: +49 7024 8688231 ___ SNMP4J mailing list SNMP4J@agentpp.org https://s16675406.onlinehome-server.info/mailman

Re: [SNMP4J] DefaultTcpTransportMapping: socket disconnect causes timeouts for all

2014-06-06 Thread Frank Fock
Am 05.06.2014 23:03, schrieb Ladd: I see. Was MIB Explorer using a single session instance with a single TableUtils instance calling the synchronous getTable() to do its queries? Thanks!! - Ladd MIB Explorer uses a single Snmp instance but no TableUtils instance (for my test). In any case,

Re: [SNMP4J] Get time-stamp from an SNMP stream

2014-06-06 Thread Frank Fock
Hi Sajini, Which "time-stamp" do you mean? A SNMP PDU does not contain a time-stamp by default. Best regards, Frank Am 06.06.2014 11:05, schrieb Sajini De Silva: Hi, I'm new to SNMP4J and I want to get the time-stamp from the SNMP stream. Is there a way to do it using SNMP4J? Thank you, Saji

Re: [SNMP4J] DefaultTcpTransportMapping: socket disconnect causes timeouts for all

2014-06-05 Thread Frank Fock
timed out and the other work without problems (tried several times). Best regards, Frank Am 05.06.2014 15:45, schrieb Ladd: Frank Fock writes: Hi Ladd, I cannot reproduce the behavior. Even after killing (-15) one of the agents, the second still works like a charm with the SNMP4J using

Re: [SNMP4J] DefaultTcpTransportMapping: socket disconnect causes timeouts for all

2014-06-04 Thread Frank Fock
Hi Ladd, I cannot reproduce the behavior. Even after killing (-15) one of the agents, the second still works like a charm with the SNMP4J using Oracle JRE 1.7.0_55 on Windows 7 SP 1. Best regards, Frank Am 04.06.2014 23:16, schrieb Frank Fock: Am 04.06.2014 00:54, schrieb Ladd: Frank

Re: [SNMP4J] DefaultTcpTransportMapping: socket disconnect causes timeouts for all

2014-06-04 Thread Frank Fock
Am 04.06.2014 00:54, schrieb Ladd: Frank Fock writes: Hi Ladd, The exception is logged but catched and does not have a side effect on other connections (as promised by the Java API). I would suspect a JRE or OS bug here (although I cannot exempt an error in SNMP4J at this point). What JRE

Re: [SNMP4J] DefaultTcpTransportMapping: socket disconnect causes timeouts for all

2014-06-03 Thread Frank Fock
Hi Ladd, The exception is logged but catched and does not have a side effect on other connections (as promised by the Java API). I would suspect a JRE or OS bug here (although I cannot exempt an error in SNMP4J at this point). What JRE version and operating system (incl. version) are you usin

Re: [SNMP4J] DefaultTcpTransportMapping: socket disconnect causes timeouts for all

2014-06-02 Thread Frank Fock
Hi Ladd, Have you set SNMP4J.setForwardRuntimeExceptions(true)? Then you can set it to "false" to ignore runtime exceptions. Otherwise, please send me the full stack trace of the exception. Best regards, Frank Am 02.06.2014 19:37, schrieb Ladd: I’ve got an SNMP manager built with v2.3.0. I’m

[SNMP4J] Server migration takes longer than expected...

2014-05-31 Thread Frank Fock
(domain agentpp.org) to the new server is therefore canceled and postponed until June 14th - 15th. Thank you for your understanding, Frank Fock -- --- AGENT++ Maximilian-Kolbe-Str. 10 73257 Koengen, Germany https://agentpp.com Phone: +49 7024 8688230 Fax: +49 7024 8688231

[SNMP4J] Server Maintenance for oosnmp.net and agentpp.org 2014-05-29 - 2014-06-01

2014-05-27 Thread Frank Fock
during this period. If you have questions or urgent issues, please send them by email to supp...@agentpp.com. I will post a message to these mailing lists when the services are up and running again. Thank you for your understanding! Best regards, Frank Fock -- --- AGENT++ Maximilian-Kolbe-Str

Re: [SNMP4J] How to get units of a variable from an SNMP stream?

2014-05-26 Thread Frank Fock
Hi, You could purchase SNMP4J-SMI-PRO to get detailed MIB information at runtime for the OIDs you are processing. Including the UNITS. The MIB information is not sent over the wire, thus it has been loaded at sender side separately - if needed. Best regards, Frank Am 26.05.2014 05:36, schrieb

Re: [SNMP4J] snmp4j 2.2.5 3DES, AES192/256 not working

2014-05-22 Thread Frank Fock
. let me know if you want me to enable any debugs or how can i share the packet captures(earlier the mail is bounced saying size is large). Thanks Narayanarao On Friday, May 23, 2014 2:41 AM, Frank Fock wrote: Hi Narayanarao, There must be an error on your site. I see no reason why GET and

[SNMP4J] New Releases: SNMP4J 2.3, SNMP4J-Agent 2.2, SNMP4J-AgentX 2.2, and SNMP4J-AgentJMX 2.1

2014-05-12 Thread Frank Fock
st regards, Frank Fock -- --- AGENT++ Maximilian-Kolbe-Str. 10 73257 Koengen, Germany https://agentpp.com Phone: +49 7024 8688230 Fax: +49 7024 8688231 ___ SNMP4J mailing list SNMP4J@agentpp.org https://s16675406.onlinehome-server.info/mailman/listinfo/snmp4j

Re: [SNMP4J] SNMP4JSettings.isForwardRuntimeExceptions() in agent 1.4.x vs snmp4j-1.11.5

2014-05-12 Thread Frank Fock
Hi Iker, If you need it, you can define/rename it yourself. SNMP4J is open source. Best regards, Frank Am 12.05.2014 20:19, schrieb Iker Almandoz: HI Frank, I have noticed that the isFowardRuntimeExceptions was renamed between 1.11.3 and 1.11.5 (same between 2.2.1 and 2.2.2). This is causing

Re: [SNMP4J] snmp4j 2.2.5 3DES, AES192/256 not working

2014-05-11 Thread Frank Fock
Hi, For encryption algorithms using more than 128bit keys (3DES, AES192, and AES256) you need to activate strong encryption in the Java Runtime. Please see Oracle's documentation on how to do this. See also the SNMP FAQ at: https://oosnmp.net/confluence/pages/viewpage.action?pageId=6651906 B

Re: [SNMP4J] Stackoverflow in activemq when snmp4j configures a BasicConfigurator in log4j

2014-04-24 Thread Frank Fock
Hi, There is probably a recursion from the Log4J initialization that calls your code with SnmpRequest. The SnmpRequest class is an example only and should NOT be used in production code. Best regards, Frank Am 24.04.2014 22:00, schrieb darrick: This is a really bizarre issue. I'm trying to upg

Re: [SNMP4J] [SNMP4j] How to determine the correct maxNumOfRowsPerPDU in tableUtils

2014-04-05 Thread Frank Fock
Thank you very much. Best Regards, On Thu, Apr 3, 2014 at 10:33 PM, Frank Fock <mailto:f...@agentpp.com>> wrote: Hi, There is no "correct" maxRepetitions. Any value is "correct". The agent decides how many repetitions it will provide based on l

Re: [SNMP4J] Multiple Devices with the same Authoritative Engine ID

2014-04-03 Thread Frank Fock
Hi John, Please see my answers inline below: Am 03.04.2014 18:43, schrieb John Money: Hi Frank, Thank you for the great framework! I have been using snmp4j to communicate with several devices using v3 with authPriv. Recently, I came across a scenario where 10 of the devices I am querying have

Re: [SNMP4J] [SNMP4j] How to determine the correct maxNumOfRowsPerPDU in tableUtils

2014-04-03 Thread Frank Fock
Hi, There is no "correct" maxRepetitions. Any value is "correct". The agent decides how many repetitions it will provide based on local contraints and measures. Some agent never return more than one, others up to the maximum packet size, others by timing constraints. Thus, you can never know how

Re: [SNMP4J] Need help in understanding how msgAuthoritativeEngineBoots is populated

2014-03-27 Thread Frank Fock
Hi, The engineBoots counter is set when you create the USM. See http://www.snmp4j.org/doc/org/snmp4j/security/USM.html#USM(org.snmp4j.security.SecurityProtocols, org.snmp4j.smi.OctetString, int) Best regards, Frank Am 27.03.2014 07:20, schrieb Prathib Kumar: Hi Frank/ All, In our applica

Re: [SNMP4J] Special Characters in Passphrases

2014-03-26 Thread Frank Fock
Hi Peter, SNMP4J uses the full 8bit per byte provided to the passwordToKey method call as an OctetString passphrase. Thus, no character conversion is done within SNMP4J. You have thus the full control how your password is converted into an OctetString (bytes) from a character string. If you use t

Re: [SNMP4J] Adding java file for custom MIB file into AgentX.

2014-03-22 Thread Frank Fock
Hi Samuel, Have you read the SNMP4J-Agent-Instrumentation-Guide PDF yet? It can be applied 1:1 to SNMP4J-AgentX master and sub-agent instrumentation as well. Only if you want to use AgentX shared tables, you need to do additional work on index/region allocation. Best regards, Frank Am 21.03.20

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

2014-03-15 Thread Frank Fock
th bulk data loading into MOMutableTableModel (VIKRAM MODUGU) 3. Re: Issue with bulk data loading into MOMutableTableModel (Frank Fock) -- Message: 1 Date: Fri, 14 Mar 2014 11:47:10 + From: VIKRAM MODUGU To: &quo

Re: [SNMP4J] Issue with bulk data loading into MOMutableTableModel

2014-03-14 Thread Frank Fock
Hi, What do you mean with "crashing" exactly? Is an exception being thrown? Does the agent hang (i.e. not responding anymore)? Best regards, Frank Am 14.03.2014 13:07, schrieb VIKRAM MODUGU: Hello Helpdesk, With this load the snmp agent is crashing repeatedly. Thanks, Vikram Modugu. From: V

Re: [SNMP4J] Can I override the limitation of SNMP v3 minimum passphrases length?

2014-03-13 Thread Frank Fock
Hi, You can simply append the password again. If your password is "1234" you provide "12341234" which has 8 characters but has the same key than "1234". Best regards, Frank Am 13.03.2014 21:51, schrieb Tal Kapon: Hi all , I am using SNMP4J in order to query network equipment. Cisco switc

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