Re: [SNMP4J] Querying by variable name vs. numeric OID

2008-04-03 Thread Frank Fock
Hi Jeff, You need a MIB compiler or at least a name to OID mapping to do this at runtime. The latter can be generated at compile time with AgenPro or MIB Explorer (http://www.agentpp.com). To use MIB information, you can use JASMI (see http://www.mibdesigner.com) or any other Java MIB compiler.

Re: [SNMP4J] Re: New Releases: SNMP4J 1.9.1c, SNMP4J-Agent 1.2 beta, AgenPro 2.7, MIB Explorer 2.2.1

2008-04-07 Thread Frank Fock
Hi Christof, Thank you for pointing me on this. I have fixed it for the next release. Best regards, Frank Christof Meerwald wrote: Frank Fock wrote: CHANGES SNMP4J v1.9.1c SINCE v1.8.2: I noticed that you have introduced a isVariableV1 method in PDUv1, but you are only using

Re: [SNMP4J] Timeouts and Retries behavior.

2008-04-09 Thread Frank Fock
Hello Varma, The network and agent performance is decisive for the optimal timeout/retry strategy. With a non-default timeout model you can further optimize the overall performance, for example, by resending requests with t=500ms after t/4,t/2,t instead of after t,t,t which is the default for 3

Re: [SNMP4J] System.exit() does not exit

2008-05-01 Thread Frank Fock
Hi Mark, I do not know why that code worked before, but for me it is clear why it cannot reliable work: When you call System.exit(0) from within a ThreadPool's thread, then the ThreadPool receives an interrupted exception and tries to stop and join the running threads. Since the thread that

Re: [SNMP4J] Configure SampleAgent for v1

2008-05-09 Thread Frank Fock
Hello Guenter, You can change the two lines after the comment # and then add the following lines: # security2Group snmp4j.agent.cfg.oid.1.3.6.1.6.3.16.1.2.1=3:3 snmp4j.agent.cfg.index.1.3.6.1.6.3.16.1.2.1.2={o}1.6.'public' snmp4j.agent.cfg.value.1.3.6.1.6.3.16.1.2.1.2.0={s}v1v2cgroup

Re: FW: [SNMP4J] FW: Help on SNMP4J v3 agent

2008-05-13 Thread Frank Fock
, see the SNMPv3 RFCs. Best regards, Frank Fock Larson, Michelle R wrote: -Original Message- From: Cayward, Timothy B Sent: Monday, May 12, 2008 3:59 PM To: Larson, Michelle R Subject: RE: [SNMP4J] FW: Help on SNMP4J v3 agent Hello Frank, Thanks for your quick reply! Yes, I've made

Re: [SNMP4J] Apache MINA based transport for SNMP4J and some question about logging

2008-05-27 Thread Frank Fock
, I know SNMP4J plan for no dependencies, but, simple curiosity, what are exactly the missing feature of slf4j ?? Julien On Mon, 26 May 2008 23:33:46 +0200 Frank Fock [EMAIL PROTECTED] wrote: Hi Julien, MINA seems to be easy to use, indeed. I have planned a nio implementation of the UDP

Re: [SNMP4J] Create PDU from ByteBuffer

2008-05-29 Thread Frank Fock
Hi Norman, it is as simple as BERInputStream berInputStream = new BERInputStream(myByteBuffer); PDU pdu = new PDU(); pdu.decodeBER(berInputStream); Best regards, Frank Norman Elton wrote: I've got a server that listens for both SNMP PDUs and Radius requests (long story). Right now,

Re: [SNMP4J] Incorrect OID returned after GETBULK request

2008-06-02 Thread Frank Fock
Hi Iker, The description of the GETBULK operation at site you quoted below is incorrect and incomplete in several ways. Please refer to RFC 3416 §4.2.3 for a correct and comprehensive description of the GETBULK operation. Best regards, Frank Iker Almandoz wrote: Hi Anton, GETBULK is the

Re: [SNMP4J] (no subject)about SampleAgentConfig.properties

2008-06-30 Thread Frank Fock
The SHADES user (as the name suggests) requires the SHA authentication protocol, not MD5. linyuan wrote: Thanks for the tip .Can you describe it in detail to me? I try it again with the command: SNMP4J -a MD5 -A SHADESAuthPassword -x DES -X SHADESPrivPassword -u SHADES -p GETBULK

Re: [SNMP4J] MOScope question

2008-07-02 Thread Frank Fock
the way SNMP is specified? Would the request need to be for 1.2.3.4.5.1.0 in order for the agent to return it, or would 1.2.3.4.5.1 be sufficient? Frank Fock wrote: Hello Jeff, Scalars have to be registered with an .0 instance identifier. Thus, try 1.2.3.4.5.1.0 and 1.2.3.4.5.2.0

Re: [SNMP4J] RE Agent request listener

2008-07-10 Thread Frank Fock
Hi Mathieu, I do recommend this approach. SNMP4J-Agent is a complete framework and handles a lot of stuff for you. Using the approach below, you will have to rewrite 70% of the SNMP4J-Agent code - which is a lot. You can read the SNMP4J-Agent instrumentation how-to PDF coming with AgenPro for

Re: [SNMP4J] Reducing temporary object allocations for SNMP4j

2008-07-11 Thread Frank Fock
Hi Iker, This is a good point. I have changed the VariableBinding constructor already to use Null.instance instead new Null(). I have introduced the cloning to avoid race conditions in multi-threaded applications. Introducing a immutable OID subclass would solve the issue and the user could

Re: [SNMP4J] Bug in snmp4j-1.9.3 on PendingRequest.run()

2008-07-22 Thread Frank Fock
Hi Iker, Thanks for reporting this one. It is a special case that I have overseen and which was not covered by our tests. I have updated SNMP4J, -Agent, and -AgentX on the web site accordingly, although for the Agent(X) version this bug should not make any difference. Best regards, Frank Iker

Re: [SNMP4J] Regarding transport mapping

2008-07-23 Thread Frank Fock
Hi, Vinayagam Natarajan wrote: Will SNMP4J supports request/response on multiple interfaces, as our device has multiple interface, connected to different networks? Yes. Will it support sending traps on multiple interfaces? Yes. In simple words, is it allowed to add multiple transport

Re: [SNMP4J] specifying community name in an agent

2008-07-24 Thread Frank Fock
Hi Jeff, You can overwrite the settings from the property file programatically at any time after it has been read. Best regards, Frank Jeff Ramin wrote: Hi folks. I've written an agent (embedded within an application) based on the SampleAgent that you get with the snmp4j-agent code. This

Re: [SNMP4J] How the development of my own snmp-agent using snmp4j-agent

2008-07-30 Thread Frank Fock
Hi, Please read the HowTo that comes with AgenPro on agent instrumentation to answer your questions. Best regards, Frank peterxu schrieb: Hi all I would like to develop a snmp-agent using snmp4j-agent, I have read the code of TestAgent.java, I have few questions. 1、 how to

Re: [SNMP4J] SNMP4J Starting up problems

2008-07-31 Thread Frank Fock
Hello, You need to configure the USM indeed. See http://www.snmp4j.org/doc/org/snmp4j/Snmp.html for an example. The error code you get is described here: http://www.snmp4j.org/doc/org/snmp4j/mp/SnmpConstants.html Best regards, Frank Oosten, Harry van schrieb: Hello, As a requirement for

Re: [SNMP4J] SnmpRequest.java not logging errors

2008-08-02 Thread Frank Fock
Hi, There is IMHO no abnormal program event that is logged to console and not forwarded to the logging adapter. The event below is a *normal* program event, since returning a SNMP error status is a normal task of a SNMP agent. So, printing the stacktrace here in debug mode is for debugging

Re: [SNMP4J] NullPointerException in processReport()

2008-08-02 Thread Frank Fock
Hi Chris, Yes, this seems to be a regression in the last version. Your workaround is OK and will be part of the next version. Best regards, Frank Christian Defoy schrieb: Hi, I am receiving a NullPointerException using SNMPv3 at AuthPriv level. It is worth mentioning that I am using

Re: [SNMP4J] community name in agent

2008-08-02 Thread Frank Fock
name of a V2 agent would be changed by modifying rows in the snmpCommunityTable? Frank Fock wrote: Jeff, These objects are standard SNMP objects and are therefore documented in the corresponding RFCs. For the SNMP-COMMUNITY-MIB see RFC 3584. Best regards, Frank Jeff Ramin schrieb: As I've

Re: [SNMP4J] SnmpRequest.java not logging errors

2008-08-04 Thread Frank Fock
XxxxRuntimeException is preferred. Mark G -Original Message- From: Frank Fock [mailto:[EMAIL PROTECTED] Sent: Saturday, August 02, 2008 2:10 AM To: Mark Gorokhov Cc: Wilson Burgos; snmp4j@agentpp.org Subject: Re: [SNMP4J] SnmpRequest.java not logging errors Hi, There is IMHO no abnormal

Re: [SNMP4J] Code hangs on syncResponse.wait();

2008-08-11 Thread Frank Fock
The question is, does it hang longer than 5000ms? Does the debugger stop all other threads when you step through? Please try also the latest version 1.9.3b which fixed a race condition which might have been occurred in your case. Best regards, Frank Fock Oosten, Harry van wrote: I use 1.8.2

Re: [SNMP4J] General getting started questions

2008-08-14 Thread Frank Fock
Hi Doug, Doug Hughes wrote: 1) In the snmp4j_tool download there is a SNMP4J-mac file. Is this known to work at all on intel-based macs? I receive this error when I attempt to execute it: Java for ppc cannot run in this configuration. Please consult documentation. VM creation failed. The

Re: [SNMP4J] getSubtree for SNMPv3

2008-08-19 Thread Frank Fock
Hi, What is the problem when using a ScopedPDU? (SNMPv3 is supported of course) Best regards, Frank vikram shetty wrote: Hi , I want to know function

Re: [SNMP4J] etMaxRepetitions on GETBULK

2008-08-19 Thread Frank Fock
Hi Vikram, there is no limit imposed by SNMP4J, but there are limits imposed on the maximum PDU size, max. transfer unit size on the network protocol used for UDP, the max. PDU size that the agent can handle, and, of course, other limits of an agent. See the GETBULK operation of the SNMP

Re: [SNMP4J] Implementing RFC 1213

2008-08-19 Thread Frank Fock
for your input! Michelle Larson -Original Message- From: Frank Fock [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2008 12:12 AM To: Larson, Michelle R Cc: SNMP4J@agentpp.org Subject: Re: [SNMP4J] Implementing RFC 1213 Hi Michelle, You can also remove rows on events on any other

Re: [SNMP4J] getSubtree for SNMPv3

2008-08-20 Thread Frank Fock
because i did not able specify the ContexName. It failes while authenticating the PDU. Thanks Vikarm shetty. On Wed, Aug 20, 2008 at 2:41 AM, Frank Fock [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, What is the problem when using a ScopedPDU? (SNMPv3 is supported

Re: [SNMP4J] some SNMP4j issues...

2008-09-01 Thread Frank Fock
of snmp4j in VM. Renato A. Ferreira - Original Message - From: Frank Fock [EMAIL PROTECTED] To: Renato Araújo Ferreira [EMAIL PROTECTED] Cc: snmp4j@agentpp.org Sent: Wednesday, August 27, 2008 6:58 PM Subject: Re: [SNMP4J] some SNMP4j issues... Hello Renato, Are you sure that each session

Re: [SNMP4J] Snmp INFORM response problem

2008-09-17 Thread Frank Fock
Hi, I would recommend using the http://www.snmp4j.org/doc/org/snmp4j/Snmp.html#addNotificationListener(org.snmp4j.smi.Address, org.snmp4j.CommandResponder) hook to receive notifications and inform requests. The snmp class will then send the response for you. The UDP checksum error can be

Re: [SNMP4J] catch GETBULK for dynamic table

2008-09-28 Thread Frank Fock
Hi Alexander, The get method is not accessed when a GETBULK SNMP request is being processed. Instead you would have to overwrite the next(..) method. But this only works, if you have a stable first and last row in your table which is seldom the case. I would recommend using the

Re: [SNMP4J] Need Help on LogAdapter - snmp4j

2008-09-30 Thread Frank Fock
Hi, Have you set the LogFactory to Log4jLogFactory in your main class/method with LogFactory.setLogFactory? Best regards, Frank srenivasan rs wrote: Hi All, I would like to have a quick clarification on how to initialize the logger mentioned in org.snmp4j.util.TableUtils.java. I have the

Re: [SNMP4J] Creating a row - using TableUtils

2008-10-02 Thread Frank Fock
Hi, Without MIB defintion, I am afraid, we cannot help. Why are you setting the same object twice in the same request? Best regards, Frank Tzahi Bergman wrote: Hi, I've created a row using TableUtils. The problem that i have is adding a row that has two indexes - meaning that the row index

Re: [SNMP4J] Use snmp4j-agent as forwarder

2008-10-02 Thread Frank Fock
Hi Alex, The ProxyForwarderImpl can only be used for proxy forwarder applications as defined in RFC 3413. OID based forwarding is something different. Here you will have to implement your own ManagedObject instance to provide such functionality. Best regards, Frank Alexander Fooks wrote: Hi,

Re: [SNMP4J] RE: Context-sensitive columnar value validation

2008-10-08 Thread Frank Fock
Hi Mike, You several options for columns: (1) Overwrite MOMutableColumn.validateSetRequest if you want to verify a change with row context based on your column implementation. (2) Overwrite MOMutableRow2PC.prepare if you want to verify a column change within the context of the row. (3)

Re: [SNMP4J] problem with BITS type

2008-10-14 Thread Frank Fock
Hi Tzahi, how does the string you are trying to set looks like? What kind of agent is used? Best regards, Frank Tzahi Bergman wrote: Hi, I got a problem when I'm trying to do a set for object that is type BITS. I have read the discussion about BITS that the BITS is OCTET STRING and this is

Re: [SNMP4J] Strange behavior about SNMP users Table in wireshark 1.0.3

2008-10-15 Thread Frank Fock
Hi, You should address your question to the Wireshark support. This mailing list is about SNMP4J(-*). Regards, Frank raocheng wrote: In wireshark, when I use Edit -- Preferences -- Protocols -- SNMP -- Users Table to add a SNMP user and fill in the following information: engine_id:

Re: [SNMP4J] problem with BITS type

2008-10-15 Thread Frank Fock
to insert String like 001 or 100. 3. And of course the regular values like 1 or 2 As for the agent i use the latest version of snmp4j agent. Thanks, Tzahi Bergman On Tue, 2008-10-14 at 09:49 +0200, Frank Fock wrote: Hi Tzahi, how does the string you are trying to set looks like? What

Re: [SNMP4J] problem with BITS type

2008-10-16 Thread Frank Fock
OK, and how did you implement the BITS type in the agent? Best regards, Frank Tzahi Bergman wrote: That's exactly what i did, and it didn't work. On Thu, 2008-10-16 at 00:07 +0200, Frank Fock wrote: Hi, You need to send an OCTET STRING with a single byte (length = 1). Best regards, Frank

Re: [SNMP4J] snmp()

2008-11-09 Thread Frank Fock
Hello Anthony, Like the JavaDoc for Snmp explains it: If using the default constructor you need to add a MessageDispatcher and the security models yourself. Best regards, Frank Anthony Alessi wrote: Hello all, I am new to SNMP4J programming. I am trying to initialize Snmp with

Re: [SNMP4J] Why is there a MPv3.setSecurityModels() method?

2008-11-11 Thread Frank Fock
Hi John, You do not need to have more than one MPv3 instance for managing several devices using SNMPv3 with MPv3. If you have problems because of same security name used with different passphrases on different devices, then you should use localized keys instead password/passphrase. Best

Re: [SNMP4J] Kill snmptrapd in java

2008-11-26 Thread Frank Fock
Nirmala, This is the wrong mailing list to ask this question and the idea to run a C trap receiver from a Java process is probably a really bad idea. Best regards, Frank [EMAIL PROTECTED] wrote: HI All, We are running snmptrapd unix utility through java code. Can anyone tell me how to kill

Re: [SNMP4J] DisplayString

2008-11-26 Thread Frank Fock
Lakshmi Vijaya Sarathi wrote: If a DisplayString type OID is part of the trap definition, how can a VariableBinding object be created in java code -? VariableBinding vb = new VariableBinding( new OID(1.3.6.1), new OctetString(Hello World)); Regards, Frank -- AGENT++ http://www.agentpp.com

Re: [SNMP4J] problem receiving v3Traps over TCP using DefaultTcpTransportMapping

2008-12-12 Thread Frank Fock
Hi, From your description I conclude that the trap senders open a new TCP connection for each trap within 10 milliseconds, is that right? That's a bad design (even for testing), because establishing a TCP connection is very expensive and when closing it, resources may not be release

Re: [SNMP4J] BindException error

2008-12-13 Thread Frank Fock
Hi Diago, You are trying to send a packet to the port you are trying to listen on. As long as there is another process bound to that port (the snmp service of your OS), this will fail. You will have to use a different listen address (e.g. udp:0.0.0.0/0) to make this working. Regards, Frank

[SNMP4J] New Releases: SNMP4J 1.9.3d, SNMP4J-Agent 1.2.2, SNMP4J-AgentX 1.1.1

2008-12-15 Thread Frank Fock
with TCP messages. Frank Fock -- AGENT++ http://www.agentpp.com http://www.mibexplorer.com http://www.mibdesigner.com ___ SNMP4J mailing list SNMP4J@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j

Re: [SNMP4J] Unsupported message processing model: 0

2008-12-16 Thread Frank Fock
Hi Ali, Please follow the JavaDoc documentation at: http://www.snmp4j.org/doc/org/snmp4j/Snmp.html You will not receive any response, because you did not setup a listen port and transport mapping. You did not call Snmp.listen() to listen for responses. The default constructor of Snmp does not

Re: [SNMP4J] IOException in DefaultUDPTransportMapping

2008-12-19 Thread Frank Fock
should handle this situation? The client does not want me to show SnmpTimeOut. Because when he checks from the Adventnet MibBrowser, he can see the value. Although it is an SNMP agent issue, I have been asked to handle it my application. Regards Shenaz -Original Message- From: Frank Fock

Re: [SNMP4J] Query using SNMP4J-linux

2008-12-31 Thread Frank Fock
Hi Rajesh, As the output explains, you are using the same engine ID as the target. Thus, you are using SNMPv3 because you did not specify any other version. Use -h to get help on the command line options. With -v 2c you choose version 2c. Best regards, Frank Rajesh Tewari wrote: Hi All, I'm

Re: [SNMP4J] Re:SNMP4J Digest, Vol 59, Issue 15 Does snmp4j support Unicode chars in trap?

2008-12-31 Thread Frank Fock
Hi Eternal, The MIB specification has to define which character set to use. To support all languages, UTF-8 (UTF-16) should be used. You cannot recognize which character set is used by the data send - you can guess, but in many cases the guess will be wrong. Since Java uses UTF internally, you

Re: [SNMP4J] Query using SNMP4J-linux

2008-12-31 Thread Frank Fock
/port/trap destinations etc) using this commad line utility? Yes, of course. Apparently, you did not run the tool with -h to get a description. You can find it also under http://www.snmp4j.org/snmp4j_usage.txt Regards, Frank Thanks, Rajesh - Original Message From: Frank Fock f

Re: [SNMP4J] Correct way to close AgentX connection?

2009-01-02 Thread Frank Fock
Hi Andy, The first two statements (session close and transport disconnect) should be sufficient. The fourth thread is the connection management thread of the TCP transport mapping. To remove it, call stop() on the transport mapping (this will close all connections of that mapping). Best

Re: [SNMP4J] TestAgent vs SampleAgent in snmp4j-agent

2009-01-28 Thread Frank Fock
Hi Jeff, Jeff Ramin wrote: Could somebody explain why the SampleAgent does not extend BaseAgent? This has been already explained on this list. BaseAgent can be used if you want to inherit basic services. SampleAgent uses the (more advanced) composition approach by using the

Re: [SNMP4J] DefaultUdpTransportMapping class and ListenThread

2009-02-02 Thread Frank Fock
Hi, Since Socket.receive blocks until a packet is received, I do not see any advantage of the suggested code. Best regards, Frank Vivi Zhang wrote: Hi, I am looking at ways to tuning my application with embedded SNMP agent with SNMP4J and SNMP4J-Agent. I have two questions about the

Re: [SNMP4J] snmp agent to agent communication

2009-02-06 Thread Frank Fock
Hello Reza, The SNMP-PROXY-MIB (which is implemented by SNMP4J-Agent) is the official solution for your task. See RFC 3413. This approach is generic, but has the drawback that the SNMP command generator needs to be aware that there are two (or more) entities at the same IP and port. A seamless

Re: [SNMP4J] Agent giving report ( unknownEngineIdOID and usmStatsNotInTimeWindows ) every times before giving actual resonse

2009-02-10 Thread Frank Fock
Hi, such reports indicate, that your dropping your USM (Snmp) instance between those requests - what you should not do. Best regards, Frank lalit patel wrote: Hi all, I am using SNMPv3 manager. Whenever I query ( polling interval = 5 minutes) any agent, it gives two report PDU ( namely

Re: [SNMP4J] Recommended client for monitoring SNMP tables?

2009-02-11 Thread Frank Fock
[mailto:snmp4j-boun...@agentpp.org] On Behalf Of Paul Mellor Sent: 11 February 2009 10:38 To: 'Frank Fock' Cc: snmp4j@agentpp.org Subject: RE: [SNMP4J] Recommended client for monitoring SNMP tables? Hi Frank, Thanks for the tip - I've downloaded MIB Explorer, but unfortunately when using

Re: [SNMP4J] Resent (full code now): Why is the USM a singleton ?

2009-03-04 Thread Frank Fock
to be the cause. As far as I can see, there is only one USM for all SNMP objects and within this USM the user and time tables are stored indexed on the (in my case non-unique) authoritive engine ID. Where am I missing it ? Regards, Sjoerd --- On *Tue, 3/3/09, Frank Fock /f...@agentpp.com

Re: [SNMP4J] Unknown Engine ID from TestAgent (using MIB Exploxer)

2009-03-23 Thread Frank Fock
Hi Mark, Please make sure that agent and MIB Explorer use different engine IDs. You can change the engine ID of MIB Explorer in the settings dialog. Best regards, Frank Mark Clements wrote: Hi, I'm a relative newbie at this! I keep getting the response Unknown Engine ID within my

Re: [SNMP4J] Router loop causes all communication to stop

2009-03-24 Thread Frank Fock
Hi Tjip, Whether A) (ignore the exception) works is definitely depending on the JDK implementation. B) should work when you call close() and then listen() on the DefaultUDPTransportMapping instance. The small gap where there exists no socket could cause a NPE too, of course. I will think about

Re: [SNMP4J] How to create a scalar object with a snmpType=TruthValue

2009-03-25 Thread Frank Fock
Hi Ouafae, Just use new Integer32(1) with TruthValueTC.createScalar(..). Best regards, Frank wafae alami wrote: Hi , I want to create a MOScalar object for a scalar mbean attribute : attribute type =boolean attribute snmpType=TruthValue MOScalar moScalar =

Re: [SNMP4J] SnapshotAgent is causing a java.lang.ClassNotFoundException: com.agentpp.snmp.SerializableMIBInstance

2009-03-27 Thread Frank Fock
Hello Daniel, Currently you cannot use the snapshots created by MIB Explorer with the SnapshotAgent or SNMP4J, because those snapshots contain more information. Using snapshots from SNMP4J within MIB Explorer Pro is not problem. I will provide a conversion tool that will convert MIB Explorer

Re: [SNMP4J] Mapping JMX notification To SNMP trap

2009-04-05 Thread Frank Fock
Hi, Have you studied the JvmManagementMibInst.java example already? When using the SNMP4J-AgentJMX framework, you do not need to call the NotificationOriginator directly. Without knowing your notification type MIB specification and not knowing the MBean definition, I cannot help you defining

Re: [SNMP4J] SnapshotAgent is causing a java.lang.ClassNotFoundException: com.agentpp.snmp.SerializableMIBInstance

2009-04-05 Thread Frank Fock
Hi, Licensed users of MIB Explorer Pro 2 may download and use the SnapshotConv.jar program from http://www.mibexplorer.com/SnapshotConv.jar to run java -jar SnapshotConv.jar [-h] mibexplorer-snaphost-file snmp4j-snapshot-file It converts MIB Explorer Pro snapshot files to SNMP4J snapshot

Re: [SNMP4J] SNMP4J command line tool does not work for AES192/256 snmpv3 users

2009-04-06 Thread Frank Fock
Hi Subanesh, What device (agent) are you using? Does it support AES256? The error code 1403 means that you did not setup the USM configuration properly (security level is not supported or inconsistent configured). Best regards, Frank Subanesh wrote: Hi, Am facing the following problem with

Re: [SNMP4J] unable to do a set operation

2009-04-11 Thread Frank Fock
regards, Frank Sören Dero wrote: Dear mr Frank Fock, I'm a Belgian student working on a small project to design a snmp manager. I've been using the snmp4j api and that has worked very well. I've been succesfull into retrieving information from my router, but I can't set anything. Everytime

Re: [SNMP4J] SNMP and MIB

2009-04-13 Thread Frank Fock
. How Hyper Terminal application does it ? Thank you all, Nedo. On Sun, Apr 12, 2009 at 1:31 PM, Frank Fock f...@agentpp.com mailto:f...@agentpp.com wrote: Hi Nedo, On the wire (between agent and manager) only OIDs and values are transmitted by SNMP. On the manager side

Re: [SNMP4J] Simple agent question

2009-04-15 Thread Frank Fock
Hi Charles, SNMP4J-Agent supports both approaches you listed below. The different instrumentation techniques are explained in the SNMP4J-Agent-Instrumentation-HowTo.pdf which can be downloaded as part of AgenPro 2 from http://www.agentpp.com/agenpro2.zip To update MIB (cache) data in in your

Re: [SNMP4J] ThreadPool in a J2EE environment

2009-04-16 Thread Frank Fock
Hi Brice, From my point of view a ThreadPool based on WorkerTask provided by a JavaEE server does not make any sense. The server already pools WorkerTasks and pooling it a second time does not provide any benefit. I am working on a package that provides helper classes to integrate SNMP4J-Agent

Re: [SNMP4J] Problem with ResponseListener timeout (SNMP4J 1.9.3d)

2009-04-21 Thread Frank Fock
Hi Marcin, I can confirm that SNMP4J 1.9.3d does not call onResponse with a null response PDU when there was a response != null before on the same request. Whether this is a bug or not is questionable but I agree that having such a call can simplify async listener programming and is therefore

Re: [SNMP4J] Sending INFORMs to an engine that changes engine ID

2009-04-28 Thread Frank Fock
Hi, Jochen Katz wrote: The current implementation of snmp4j does not support resynchronization in this case; my question is: should it? No. If you have a device that changes its engine id, this can and should be solved by the application. The MPv3 offers functions to add, get and remove

Re: [SNMP4J] problem creating table? (snmp4j-agent)

2009-05-04 Thread Frank Fock
x.x.x.3.1.2.1 = value x.x.x.3.1.3.1 = value x.x.x.3.2.1.1 = value x.x.x.3.2.2.1 = value x.x.x.3.2.3.1 = value Frank Fock wrote: Hi Jeff, It is very simple: SNMP4J-Agent expects the OID of the TableEntry object (=the conecptual row OID). Thus, create the table with x.x.x.3.1

[SNMP4J] Released: SNMP4J 1.10, SNMP4J-Agent 1.3, SNMP4J-AgentX 1.2

2009-05-05 Thread Frank Fock
/needed by Java 1.6. Changes SNMP4J-AgentX 1.2 since 1.1.1 * Improved: Wrapped Object.wait() call in AgentX.java in loop as suggested/needed by Java 1.6. Frank Fock -- AGENT++ http://www.agentpp.com http://www.snmp4j.com http://www.mibexplorer.com http://www.mibdesigner.com

Re: [SNMP4J] Need Help on CommandProcessor – snmp4j

2009-05-21 Thread Frank Fock
Hi, Apparently, you are using inconsistent SNMP4J and SNMP4J-Agent versions. Best regards, Frank DORICA MESA wrote: Can anyone help me with the error am getting running the BaseAgent example from Snmp-Agent. I am new on SNMP development. I just downloaded the example and compiled it . I

Re: [SNMP4J] Problem with SNMPv3 Trap Receiver

2009-05-28 Thread Frank Fock
(MessageDispatcherImpl.java:347) at org.snmp4j.util.MultiThreadedMessageDispatcher$MessageTask.run(MultiThreadedMessageDispatcher.java:203) at org.snmp4j.util.ThreadPool$TaskManager.run(ThreadPool.java:239) Best regards Marcin 2009/5/27 Frank Fock f...@agentpp.com mailto:f...@agentpp.com

Re: [SNMP4J] Questions on snmp4j export regulations (EAR)

2009-06-12 Thread Frank Fock
Hi, SNMP4J uses the standard Java encryption functions. Thus, it does not implement them itself and is therefore not subject to export regulations. The Java is, of course. Best regards, Frank Nguyen Vu Hung wrote: Hi all, I am using snmp4j (in the .jar form), version 1.9.3d in my

Re: [SNMP4J] SNMP over SSH

2009-06-15 Thread Frank Fock
SNMP4J 2.0 is scheduled for Q4/2009. Best regards, Frank karunakaran s.l wrote: Hi Frank, Following mail mailing list http://www.mail-archive.com/snmp4j@agentpp.org/msg00754.html says SNMP4j will support SNMP over SSH in SNMP4j 2.0. Can you please tell me the approximate release date for

Re: [SNMP4J] Question about the change in v1.10 Added MPv3(USM usm) constructor

2009-06-17 Thread Frank Fock
Hi Sjoerd, I am unable to decode your message. May be you can rephrase/reformat it, please? Thanks, Frank Sjoerd van Doorn wrote: Hello Frank (and other readers that might know the answer ;-), I tried to use the new functionality within the v1.10 to avoid using my own overloaded class as

Re: [SNMP4J] Receiving snmpv3 trap using custom listener [How to?]

2009-06-17 Thread Frank Fock
Hi Simon, Your approach will not work for SNMPv3. For SNMPv3 you need to implement your own TransportMapping that wraps your existing transport. Best regards, Frank simon sew wrote: Hi there, I’ve just started learning about SNMP4j. Currently I have this problem. I would like

Re: [SNMP4J] Newbie problem trying AgentJMX with error

2009-06-17 Thread Frank Fock
Hi, Why are you setting these com.sun.management.snmp.* parameters? I guess you cannot use a port twice on the same machine, right? Best regards, Frank Wong, Noichi wrote: Hi all, My environment -Windows XP -JDK 1.5.0_16 -Tomcat 5.5.27 set JAVA_OPTS=%JAVA_OPTS%

Re: [SNMP4J] When to call USM.removeEngineTime

2009-06-25 Thread Frank Fock
Hi Tjip, As I wrote several times on the list: (1) SNMP4J 1.x is designed for Java 1.4, therefore System.nanoTime cannot be used. (2) Automatically accepting time changes from a SNMPv3 entity makes its security concept (nearly) worthless. You should then use SNMPv1/v2c instead. Best regards,

Re: [SNMP4J] USM question

2009-07-01 Thread Frank Fock
Joseph, The TestAgent example shows the USM/VACM initialization using code. This can be used with the SampleAgent too. Best regards, Frank Jozsef Lazar wrote: I'm quite new to this topic so please be patient with me ;-) I'm trying to build a very simple agent with a few scalars (for test

Re: [SNMP4J] Turn on logging

2009-07-03 Thread Frank Fock
Which logging adapter are you using? Frank Jozsef Lazar wrote: I have problems with my VACM and want find out what is that. Can anyone please help me how can I turn on debugging globally in SNMP4j so that I can see all logger messages? I'm using the TestAgent.java as agent. -- joseph

Re: [SNMP4J] Help(In receiving traps)

2009-07-04 Thread Frank Fock
Dheeraj Joshi M wrote: And one more stuff why targetaddress is never used in the code? Is that is the problem? Yes. Best regards, Frank Waiting for a help. Regards, Dheeraj Joshi M ___ SNMP4J mailing list SNMP4J@agentpp.org

Re: [SNMP4J] SnmpCommunityMIB coexistenceinfo map

2009-07-06 Thread Frank Fock
Hi Senthil, I have created an issue for that bug (SFJ-7). Currently, I see no workaround other than using different communities for different targets. The bug should be fixed in SNMP4J-Agent 1.3.1. Best regards, Frank Senthil Muniswamy wrote: Frank, I am using Snmp4J-Agent for proxy.

Re: [SNMP4J] [Question]about the TimeCheck:

2009-07-09 Thread Frank Fock
Hi, wei tong wrote: why a Request with different EngineID can jump the time Check? Since the engine IDs differ, which timestamps do you want to compare? that means if we using a snmptool to sent trap to local TrapReceiver, it will be refused after 150 sec because the

Re: [SNMP4J] DefaultMOTable into DefaultMOtable.

2009-07-09 Thread Frank Fock
Jean, SMI (SNMP) does not support table-within-a-table. You need to model your MIB in a relation database table fashion. Tables in SMI can have relations which are based on the index definitions of the tables. See the tables.pdf paper from David Perkins (snmpinfo.com if I remember it correctly)

Re: [SNMP4J] Sending Traps using snmp4j-agent library

2009-07-17 Thread Frank Fock
Hi Pidarp, The TestAgent is capable of sending out traps (it actually does with its default config). If you cannot see the trap with your sniffer then (a) you are sniffing on the wrong interface (b) your OS does not support sniffing on the interface the agent uses (c) your agent configuration has

Re: [SNMP4J] SNMP GET, SET, INFORM problem

2009-07-17 Thread Frank Fock
Aidan, If you do not specify a contextengineID, SNMP4J will set it to the authoritative engine ID. The usmNotInTimeWindow error can have many causes. First, I would check if your engine ID differs from that of the agent. Best regards, Frank Aidan Diffey wrote: All. I am writting an SNMP

Re: [SNMP4J] SNMP4j cann't work when use '-Ow -n xxx' option under snmpv3 mode

2009-07-18 Thread Frank Fock
Hi, Thank you for your bug report. This bug [SFJ-8] has been fixed for SNMP4J 1.10.1. Regards, Frank dugu dugu wrote: I run snmp4j like this: SNMP4J.exe -Ow -v 3 -a SHA -A xxx -n abc -p GETNEXT -u Administrator 10.x.x.x and got the error info: Total requests sent:0 Total objects

Re: [SNMP4J] Multiple UDP transport mappings

2009-07-20 Thread Frank Fock
Hi Ellis, When using several UDP (or TCP) transport mappings you should make sure, that you use only the Snmp methods that take the transport mapping as parameter. Then you can choose the mapping you want to use. The default NotificationOriginator however, will not distinguish between those

Re: [SNMP4J] Multiple UDP transport mappings

2009-07-21 Thread Frank Fock
, Target, Transport) twice (once for each transport), then it will work. What I am afraid of is duplicate traps being sent. This won't occur right? Thanks again for the quick response. Corey -Original Message- From: Frank Fock [mailto:f...@agentpp.com] Sent: Monday, July 20

Re: [SNMP4J] Thread poll organizer question.

2009-07-26 Thread Frank Fock
Hi Lukasz, First of all, I assume that you meant pool when you wrote poll, right? SNMP4J does not use ThreadPool except in the MulitThreadedMessageDispatcher. If you use it, the a thread is taken from the pool to run the onResponse(..) callback. That's all. Best regards, Frank Łukasz

Re: [SNMP4J] Bind Exception (cannot assign)

2009-07-27 Thread Frank Fock
Is 172.17.240.10 the IP of your local system or the IP of the switch? Since you cannot bind an address of a external system, ... Frank rbs2...@freenet.de wrote: Thank you, but it did not work :( Maybe i'am to stupid, but I have change this listenAddress = new

Re: [SNMP4J] get big table for SNMPv2 (GetBulk) snmp4j problem.

2009-08-01 Thread Frank Fock
Hi Michael, Are you sure that the agent returns the values in proper lexicograhic order? Many agents do not, and a standard conform manager cannot display the returned values like it might have been intended by the agent implementor. Best regards, Frank Michael Yavorovsky schrieb: Hi,

Re: [SNMP4J] thread blocked on syncResponse.wait()

2009-08-19 Thread Frank Fock
Hi Jones, Why do you do not want to try the latest version? (There are a lot more fixes between your version and the latest than the one you are referring to) Regards, Frank jones vinu wrote: Hi Frank, The changelog for snmp4j 10.1 states that, Fixed: If no

Re: [SNMP4J] UDP Checksum in trap packet in Sniffer

2009-08-19 Thread Frank Fock
Hi, You may better ask your question in a Whireshark forum. Regards, Frank pradip de wrote: Hi, I have a snmp agent running and it can send traps. However, when I capture the trap packet in a sniffer(wireshark), I see Incorrect Checksum(maybe caused by UDPChecksum Offload?). Can anybody

Re: [SNMP4J] Threading structure in TestAgent/BaseAgent

2009-08-28 Thread Frank Fock
Hi Pradip, Session.listen() does not block. The rest of you assumptions do not match with SNMP4J either and I am a bit confused about them. Please read RFC 3410 to 3418 to get a better understanding of the SNMP architecture. Best regards, Frank pradip de wrote: Hi, I am trying to understand

Re: [SNMP4J] TransportMapping Intenciation

2009-08-28 Thread Frank Fock
Hi, Are you reusing the Snmp instance or are you closing it? If it is closed, it also closes all referenced transport mappings. Best regards, Frank Li Hee Wah, Edouard wrote: Hi, I worked on SNMP4J 1.10 since few days and I have a small problem.When I instantiation a SNMP Class which

Re: [SNMP4J] Threading structure in TestAgent/BaseAgent

2009-08-31 Thread Frank Fock
? Is there a better way than using this infinite loop? thanks, Pradip On Fri, Aug 28, 2009 at 2:34 PM, Frank Fock f...@agentpp.com mailto:f...@agentpp.com wrote: Hi Pradip, Session.listen() does not block. The rest of you assumptions do not match with SNMP4J either

  1   2   3   4   5   6   7   >