>> And how is 'obj_ID' defined and initialised?

> obj_ID is initialized as: 
> static oid obj_ID = { 1,3,6,1,4,1,343,2,10,3,5,1000,10,1 };

Hmmmm....
Shouldn't that be

    static oid obj_ID[] = {....};
                     ^^
An OID is an *array* of 'oid' subidentifier values, not just one.


>> Are you sending the trap from the main SNMP agent, or are you
>> working with an AgentX subagent?
> 
> I'm sending traps from the AgentX subagent.

Maybe that's the difference then?
<tap, tap, tap>
Nope.
If I run my test from a subagent, that works properly as well.

I'm very suspicious about that missing array declaration, but if
that doesn't fix it, then you may need to dig a little deeper.

Perhaps run either the master or subagent in packet dump mode
(-d or -Ddump) and when the flurry of initial registrations has
died down, trigger this trap.
  Try looking at the trap OID in the AgentX notification that's
sent between the two - is it correct (in which case the problem
lies in the master agent), or not (in the subagent).


> In windows SNMP API, the notification oid can be set to whatever
> required each time a trap is sent.

So it can with our API - it's just that there's a bug somewhere
that's breaking things for your setup.

Dave



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to