R U | 24 Oct 14:30 2014
Picon

Looking for clarification on SNMP4J USM.getUser() implementation

Hi,
  I am resending an e-mail I had sent at the beginning of October.  It doesn't appear to have been received by the
mailing list.  I have a question regarding a possible bug in USM.getUser(OctetString engineID,
OctetString securityName).  If this method is called and an entry exists in the USM without an engine ID,
the code will create a new entry based on the currently present user information.  However, the old entry is
not removed from the userTable.   Shouldn't the original entry be removed so that there are no two entries in
the userTable for the same securityName?

Thank you
-Randika
 		 	   		   		 	   		  
_______________________________________________
SNMP4J mailing list
SNMP4J <at> agentpp.org
https://oosnmp.net/mailman/listinfo/snmp4j
Peter Verthez | 23 Oct 12:34 2014

SNMPv3 problem with unhandled responses

Hi Frank,

One of our customers has reported a problem with SNMPv3.  The version of 
our application that they use is using SNMP4J 2.0.1.  For the particular 
SNMP request that has the problem, the agent is known to respond very 
slowly, so the timeout model for that particular request has been set to:
- a first timeout after 30 seconds, then a retransmission
- a second timeout after 60 seconds (so 90 seconds after the original 
request), then a retransmission
- a third timeout after 120 seconds (210 seconds after the original request)

Now, we observe the following behavior (you can also see that in the 
logs that I'm pasting below):

2014-10-22 10:42:33,428 => Original request
2014-10-22 10:43:03,430 => 1st retransmission
2014-10-22 10:43:37,444 => Response to original request (rejected)
2014-10-22 10:44:03,440 => 2nd retransmission
2014-10-22 10:44:41,466 => Response to 1st retransmission (rejected)
2014-10-22 10:45:45,539 => Response to 2nd retransmission (accepted)

So the problem that we see is that the first response (the response to 
the original request) is not accepted for some reason.   This looks 
similar to the problem SFJ-43, but that was fixed in SNMP4J 2.0.0 
according to the change log.   We are in the process of trying to 
reproduce it on SNMP4J 2.3.0, but I see no relevant change in the change 
log, so I guess there will be no difference.

The logs are the following (with some sensitive information removed):

(Continue reading)

Frank Fock | 20 Oct 23:57 2014

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

Hi,

AgenPro 4.0 has been released with a lot new features and usability 
improvements.
The 4.0 version is the basis for the SNMP client code generation 
templates (for SNMP4J-Model 1.0)
which will be added in version 4.1 which - as usual - will be a free 
upgrade to all 4.x users!

I hope you will enjoy the new version. All AgenPro 3.x users who 
purchased their license in 2014
will rceive the free upgrade license key within the next 48 hours on 
their registered
email address.

SNM4J-Agent 2.3 and SNMP4J-SMI-PRO 1.5.2 have been released too. Both
versions provide bug fixes in the first place. In SNMP4J-Agent the MOFactory
interface had to be extended to fix a bug with the AgenPro code generation.

RELEASE NOTES:

AgenPro  4.0

* Improved: MIB Editor view with new error stripe and quick search panel.
* Added: Simulation Agent Data panel to directly enter simulation data
   which can be even synchronized with Properties to generate intialization
   code.
* Added: Nimbus look&feel support.
* Improved [AGEN-26]: Sign JLNP files for even more secure WebStart feature.
* Added [AGEN-22]: TLS support for the built-in simulation agent.
(Continue reading)

Mátyás Kuti | 15 Oct 10:20 2014
Picon

Re: SNMP4J Digest, Vol 93, Issue 1

Hello,

Thanks for your answer Frank!
The goal of the whole thing was to create an SNMP agent that accepts
GETNEXT requests from multiple clients. We built a response cache on the
first request for each client and based on the request ID of an incoming
request the proper response was sent. The response itself was determined by
the request ID. We expected that each ID would be in the range of (First
ID, First ID+Number of fields to send) but since the IDs are not always
incremented by 1 this solution would mess things up a bit... It works
perfectly when tested by hand using the snmpwalk command on Linux but when
we wrote the automatic tests in Java using SNMP4J the tests failed. Do you
have any idea how to solve the problem of concurrent GETNEXT requests?

Thanks,
Matyas

2014-10-14 12:00 GMT+02:00 <snmp4j-request <at> agentpp.org>:

> Send SNMP4J mailing list submissions to
>         snmp4j <at> agentpp.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://oosnmp.net/mailman/listinfo/snmp4j
> or, via email, send a message with subject or body 'help' to
>         snmp4j-request <at> agentpp.org
>
> You can reach the person managing the list at
>         snmp4j-owner <at> agentpp.org
>
(Continue reading)

David Corbin | 14 Oct 12:50 2014

SNMP4J, UDP, network buffers and EPERM

TL; DR: Does SNMP4J provide "transmit pacing" for UDP?  Does it handle
Linux's "EPERM error when" buffers overflow? (By handle I mean beyond
throwing an exception and failing).

I'm going to start with some background,  We have a large complex (overly
so) system that monitors some "stuff" using SNMP4J.  It generally works.  I
have an integration test suite that drives our system. We use a dedicated
machine with dozens if IP addresses that is programmed to respond to SNMP
requests in a way that the integration test suite expects.  For the
purposes of this converstaion, There's one specific test class   with 11
tests, and when I run it against our production code all of it's tests
pass very consistently.   Our complex system depends on Mule and JMS.  Most
if not all SNMP requests being made are being sent through JMS to an
SnmpExecutor service.  That Mule service in turn calls a Java class
(SnmpQueryExecutor) to synchronously resolve the request for SNMP data (the
SNMP request is asynchronous, but the Java code has it's own wait for the
answer or timeout) before proceeding.  The JMS client blocks waiting for
the SNMP request to complete (or timeout) before continuing on.

In attempt to simplify our complex system, I made a refactoring (on some
execution paths) to call the Java class directly, bypassing the JMS and
Mule part.  The integration tests now fail intermittently.  There are about
4 tests that sometimes fail.  The nature of the failures is also not
consistent.  Initially, one of them would fail on most runs (4 out 5).
After reducing the code-paths that use the new code to exactly one, and
this has dropped to about 1 failure every 3 or 4 runs.  I've learned that I
can make the test pass reliably by adding a 1 second delay to the new
code-path.  This change was for investigative purposes only.   It suggests
that there is a race condition or some type of failure that is related to
doing too much SNMP too fast, and since Mule and JMS add a fair amount of
(Continue reading)

Mátyás Kuti | 13 Oct 13:23 2014
Picon

Question regarding request id when doing getnext

Hello,

We are doing the following:

List<VariableBinding> snmpTable = new ArrayList<VariableBinding>();
        for (TreeEvent event : events) {
            if (event != null) {
                if (event.isError()) {
                    logger.info
<https://mail.internal.ericsson.com/owa/redir.aspx?C=2ipCqKJBBEyRoKqLqlcn5EPTOE5putEI6g7WPUCTE6ZOVwcy2_JaQ_aA843rf0UcX-2b_mw8x5E.&URL=http%3a%2f%2flogger.info>("oid
[" + oid + "] " + event.getErrorMessage());
                }
                VariableBinding[] varBindings = event.getVariableBindings();
                if (varBindings == null || varBindings.length == 0) {
                    continue;
                }
                for (VariableBinding varBinding : varBindings) {
                    snmpTable.add(varBinding);
                }
            }
        }
...

And we have enforced the GETNEXT behavior by setting:
mTarget.setVersion(SnmpConstants.version1);

We experience, that the request IDs increase by 2 instead of the expected 1:

Java-log output:

(Continue reading)

david jones | 23 Sep 23:37 2014
Picon

from: david jones


Hello snmp4j

http://jemroofing.ca/goes.php?sets=rxsnpepsrh3155wm

jonesda24 <at> gmail.com

_______________________________________________
SNMP4J mailing list
SNMP4J <at> agentpp.org
https://oosnmp.net/mailman/listinfo/snmp4j
John Money | 19 Sep 21:12 2014
Picon

Device sending Trap with Inform

Hi Frank,

I am using snmp4j to listen for traps from multiple devices and it works
great! Recently, I started receiving traps from a device that is expecting
an Inform response to know that the trap has been received. Right now, the
device just continues to resend the traps and I receive all of them but I
only need each trap once.

I have been doing a lot of googling and I haven't found an example of how
to setup snmp4j to respond to the Trap/Inform so that the device will know
that the trap was received. Right now I have a CommandResponder
implementation that receives the Trap PDUs, but it is not receiving the
Inform PDUs that are being sent on the same port. If I configure my linux
server snmptrapd it receives the Traps and Inform messages, so it does not
appear to be an issue with the network. I am not sure why my snmp4j
configuration can receive the Traps but not the Informs.

Questions:

1. Any idea why I am receiving Traps by not Informs?
2. Do you have an example for how to use snmp4j to acknowledge Traps sent
be a device that is expecting a response?

Here is my code:

public void start() {
try {
String address = LOCALHOST + port;
logger.info("startSnmpServer at " + address);
Address _listenAddress = GenericAddress.parse(address);
(Continue reading)

jackychen | 18 Sep 03:58 2014

About snmp4j agent

Hi, Frank:
I want create a snmp Agent,the agent can manage some devices, I have the MIB for the agent, the mib contain
some table and several scalar node, each row for table is represent a device and the column represent the
attribute of the device. The several scalar node is represent the agent attribute. I want use the snmp4j
agent  implement the Agent. Should I use database to store the temp data for each device? I don't know how to
relate the device.You can give me some advice,

Best regards,
Jacky
_______________________________________________
SNMP4J mailing list
SNMP4J <at> agentpp.org
https://oosnmp.net/mailman/listinfo/snmp4j
Mooli Tayer | 15 Sep 13:05 2014
Picon

Re: SNMP4J and OSGI

Whet version are you using? 

> I'm using BNDtools, i have added the bundle to the building path, however
> most of the functions does not exist.

> example:

> System . out . println ( "Trap Type = " + pdu. getType ( ) ) ;
> System . out . println ( "Variable Bindings = " + pdu. getVariableBindings (
> ) ) ;
> int pduType = pdu. getType ( ) ;
> if ( ( pduType != PDU. TRAP ) && ( pduType != PDU. V1TRAP ) && ( pduType !=
> PDU. REPORT )
> && ( pduType != PDU. RESPONSE ) )
> {
> pdu. setErrorIndex ( 0 ) ;
> pdu. setErrorStatus ( 0 ) ;
> pdu. setType ( PDU. RESPONSE ) ;
> StatusInformation statusInformation = new StatusInformation ( ) ;
> StateReference ref = cmdRespEvent. getStateReference ( ) ;

> I try to use PDU, but it does not have.. and i have imported import
> org.snmp4j.*;

> I have try to search for a example of SNMP4J trap or other without success..

> > Date: Mon, 15 Sep 2014 05:26:13 -0400
> > From: mtayer <at> redhat.com
> > To: x5rated <at> hotmail.com
> > CC: snmp4j <at> agentpp.org; osgi-dev <at> mail.osgi.org
(Continue reading)

daniel Trump | 12 Sep 18:05 2014
Picon

SNMP4J and OSGI

Hello I'm very new in this, 
I'm developing and SNMP application with trap and request(sending OID and receiving result data).
I have research in google for example but without success...
I'm able to create a SNMP Trap normal Java programming.. however I can't do it in OSGI..
I'm using the latest bundle a the normal commands are not there...
Does any one is working with iT or can anyone send me more information about SNMP with OSGI?thanks

 		 	   		  
_______________________________________________
SNMP4J mailing list
SNMP4J <at> agentpp.org
https://oosnmp.net/mailman/listinfo/snmp4j

Gmane