[SNMP4J] Error when trying to send a Trap

Mark Stang mstang at pingidentity.com
Thu Jul 5 19:09:01 CEST 2007


Hi,
I took the example in the Snmp.html javadoc and tried to adapt it for my use.  I am trying to send a simple v1 Trap.  If I use the exact code from the example, it works fine.  Or at least the value printed out by the listener says that the response is fine.

10:51:43,351 INFO  [STDOUT] Received response PDU is: RESPONSE[requestID=1644014217, errorStatus=Success(0), errorIndex=0, VBS[1.3.6.1.2.1.1.2.0 = 1.3.6.1.4.1.8072.3.2.10]]

However, when I try and change the OID to be mine:

                    pdu.add(new VariableBinding(new OID(new int[]
                    { 1, 3, 6, 1, 4, 1, 28867, 2 }))); // .28867.2.2.0


I get this:

11:01:36,410 INFO  [STDOUT] Received response PDU is: RESPONSE[requestID=1891488794, errorStatus=No such name(2), errorIndex=1, VBS[1.3.6.1.4.1.28867.2 = Null]]

What does the error mean?  What does it mean "No such name(2)"?

Is there some documentation that explains this?

thanks,

Mark

Mark J. Stang
Software Engineer
office: +1 303.468.2900
Ping Identity



More information about the SNMP4J mailing list