[SNMP4J] Snmpv3 Sending and Receiving

guyfawkes at gmx.at guyfawkes at gmx.at
Sat Jul 23 19:49:12 CEST 2011


Thx, Frank!

I ensured now that they are different:

ownContextEngineID = new OctetString("t" + System.nanoTime());
snmpSession.setLocalEngine(ownContextEngineID.toByteArray(), 0, 0);

and when I force a 
byte [] engineAuth = getSnmp().discoverAuthoritativeEngineID(
GenericAddress.parse(TAREGET_ADDRESS), 500);

I can receive this message on the receiving part. 
GET[reqestID=227832322, errorStatus=0, errorIndex=0, VBS[]]

But there I don't know what to do with it. 
The question is also if I have to force a discoverAuthoritativeEngineID and if what to response.


When i'm trying to send a own PDU
(GET[reqestID=416231126, errorStatus=0, errorIndex=0, VBS[1.3.6.1.2.1.1.1.0 = Null]]) 
the response remains null. The timeout value is allready 5000 so I guess that is not the problem.      	

thx for further help.

Frank Fock wrote:
> Did you make sure that sender and receiver
> use different engine IDs?

-- 
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!		
Jetzt informieren: http://www.gmx.net/de/go/freephone



More information about the SNMP4J mailing list