[SNMP4J] Error when trying to send a Trap

Gibbons, Sean Sean.Gibbons at trueposition.com
Thu Jul 5 19:39:42 CEST 2007


Oh yeah, I forgot to add, I don't think you are sending a Trap.  I don't
believe a trap should be getting a response, unless there's an error of
some sort (?).  Looking at the code on in the javadoc you said you were
using you are probably doing a getnext. 

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

It should mean the listener is having a problem.  Looking at your code
it is probably because you didn't put in the right OID.
 
You give the oid as 1.3. 6.1.4.1.28867.2,   which I doubt is a valid
oid.  You note in the comment that it should be .28867.2.2.0 so try:
 
  pdu.add(new VariableBinding(new OID(new int[]
                    { 1, 3, 6, 1, 4, 1, 28867, 2, 2, 0 }))); //
.28867.2.2.0


________________________________

From: Mark Stang [mailto:mstang at pingidentity.com]
Sent: Thursday, July 05, 2007 1:25 PM
To: Gibbons, Sean; snmp4j at agentpp.org
Subject: RE: [SNMP4J] Error when trying to send a Trap



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.








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.

_______________________________________________
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