Re: Problems implementing a v2 trap,

This is a discussion on Re: Problems implementing a v2 trap, within the SNMP Coders forums, part of the Networking and Network Related category; On 17/08/06, Felipe openglx <openglx@starbyte.net> wrote: > When I > ran snmpd, it gave ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-17-2006
Dave Shield
 
Posts: n/a
Default Re: Problems implementing a v2 trap,

On 17/08/06, Felipe openglx <openglx@starbyte.net> wrote:
> When I
> ran snmpd, it gave me this error everytime my send_trap function was
> called:
>
> "send_trap: no v2 trapOID varbind provided"



> My code looks something like this:


> snmp_varlist_add_variable(&var_list,
> snmptrap_oid, OID_LENGTH(snmptrap_oid),
> ASN_OBJECT_ID,
> dlswTrapCircuitUp_oid,
> OID_LENGTH(dlswTrapCircuitUp_oid));


No - that looks fine at first glance.

I'd be inclined to run the agent under a debugger, set a breakpoint in
the send_trap routine (perhaps at the point this message is
displayed), and have a look at the varbind list of the PDU. How does
this compare with the list that you were expecting to see?

Dave

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=...057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:00 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0