On Mon, 2005-01-03 at 08:03, John, Jaiber J wrote:
JJJ> When I send a trap from my subagent (AgentX), the enterprise
JJJ> OID field of the V1 trap is always .1.3.6.1.4.1.8072.3.2.10.
JJJ> I actually want it the be a different one

DTS>I've just tried this with the current code, and it works as expected.
DTS>  b)  What's the exact 'send_enterprise_trap_vars()' call you're making

JJJ>  send_enterprise_trap_vars (6, 0, obj_ID, 13 * 2, &var_obj);

And how is 'obj_ID' defined and initialised?

I'm not sure your size is right either - the OID that you mention
(.1.3.6.1.4.1.343.1000.2) has nine subidentifiers, rather than 26.
Not that I would expect this to cause the problems you're seeing,
but it's worth fixing, just in case.

The other difference between your code and my quick test is that
I didn't add any other varbinds to the trap.  So it might be worth
temporarily replacing "&var_obj" by NULL - again, just in case.


Are you sending the trap from the main SNMP agent, or are you
working with an AgentX subagent?


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