[SNMP4J] discoverAuthoritativeEngineID

Stath, Paul PStath at axxcelera.com
Fri Jun 11 15:21:33 CEST 2010


The discoverAuthoritativeEngineID() method return false if SNMP4J is
unable to determine the engine ID of
the device.

Couple of things to check are:

The timeout argument that SNMP4J waits for a response REPORT is in units
of millisecond.
I have seen people think this is in units of second, and be surprised
that they didn't get a response in 3 milliseconds.

Does the device support SNMPv3?  The "probe" GET PDU that SNMP4J sends
to discover the Engine ID is a SNMPv3 PDU.
If the device does not support SNMPv3, it probably simply ignores the
PDU, thus no response and no engine ID discovery.

Lastly, have you turned off the discover engine ID flag in the USM
class?
You would have to explicitly do this, since discovery is turned on by
default.

If you use Wireshark, do you see your code send the GET PDU (probe), and
do you see the device respond with a REPORT PDU?
Is that response returned before your timeout expires?


> -----Original Message-----
> From: snmp4j-request at agentpp.org [mailto:snmp4j-request at agentpp.org]
> Sent: Friday, June 11, 2010 6:00 AM
> To: snmp4j at agentpp.org
> Subject: SNMP4J Digest, Vol 77, Issue 6
> 
> Send SNMP4J mailing list submissions to
> 	snmp4j at agentpp.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.agentpp.org/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
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of SNMP4J digest..."
> 
> 
> Today's Topics:
> 
>    1. discoverAuthoritativeEngineID problem (abattiloro at libero.it)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Thu, 10 Jun 2010 17:37:04 +0200 (CEST)
> From: "abattiloro at libero.it" <abattiloro at libero.it>
> Subject: [SNMP4J] discoverAuthoritativeEngineID problem
> To: snmp4j at agentpp.org
> Message-ID: <22076848.3011031276184224431.JavaMail.root at wmail42>
> Content-Type: text/plain;charset="UTF-8"
> 
> Simple problem: why snmp.discoverAuthoritativeEngineID() returns null
> every
> time?
> 
> 
> ------------------------------
> 
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
> 
> 
> End of SNMP4J Digest, Vol 77, Issue 6
> *************************************



More information about the SNMP4J mailing list