[SNMP4J] Error when trying to send a Trap

Mark Stang mstang at pingidentity.com
Thu Jul 5 19:24:39 CEST 2007


Thanks for the quick response.

Where is it trying to "get or set the OID"?

Does that mean that it didn't send the Trap or does it mean that the "listener" had an issue?

thanks,

Mark

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



-----Original Message-----
From: Gibbons, Sean [mailto:Sean.Gibbons at trueposition.com]
Sent: Thu 7/5/2007 11:13 AM
To: Mark Stang; snmp4j at agentpp.org; snmp4j at agentpp.org
Subject: RE: [SNMP4J] Error when trying to send a Trap
 
"No such name[2]" is reffering to the error type in the message.  2 is
the value for the "no such name" error, meaning the agent was asked to
get or set an OID that it can't find.

-----Original Message-----
From: snmp4j-bounces at agentpp.org [mailto:snmp4j-bounces at agentpp.org] On
Behalf Of Mark Stang
Sent: Thursday, July 05, 2007 1:09 PM
To: snmp4j at agentpp.org; snmp4j at agentpp.org
Subject: [SNMP4J] Error when trying to send a Trap

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
_______________________________________________
SNMP4J mailing list
SNMP4J at agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j


Confidentiality Notice
This e-mail (including any attachments) is intended only for the recipients named above. It may contain confidential or privileged information and should not be read, copied or otherwise used by any other person. If you are not a named recipient, please notify the sender of that fact and delete the e-mail from your system.







More information about the SNMP4J mailing list