>>
>> When I send a trap from my subagent (AgentX), the enterprise OID
field
>> of the V1 trap is always .1.3.6.1.4.1.8072.3.2.10.
>> I actually want it the be a different one (for ex:
.1.3.5.1.4.1.442.20.1
>> etc). Can this be done using some NetSNMP API from the Subagent
>
>> One addition: I'm using send_enterprise_trap_vars() to send TRAPS.
>
>Yes - that's the correct API to use for this.
>You should be able to specify the required enterprise OID as the third
>(and fourth) parameters of this call.
>
>I've just tried this with the current code, and it works as expected.
>
>  a)  Which release are you working with?

Net-SNMP 5.1 distributed with RHEL 3 Advanced Server.

>  b)  What's the exact 'send_enterprise_trap_vars()' call you're making
?

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

The trap I received is like this:
------------------------------------------------------------------------
---
2004-12-15 15:52:09 xxx.yyy.com [x.x.10.233] (via x.x.10.233) TRAP,SNMP
v1, community public
.1.3.6.1.4.1.8072.3.2.10 Enterprise Specific Trap (3) Uptime: 0:51:03.77
.1.3.6.1.2.1.1.3.0 = Timeticks: (306376) 0:51:03.76
.1.3.6.1.6.3.1.1.4.1.0 = OID: .1.3.6.1.4.1.343.2.10.3.5.1000.20.3
.1.3.6.1.4.1.343.2.10.3.5.1000.10.1 = STRING: "System critical."
.1.3.6.1.4.1.343.2.10.3.5.100.1.0 = INTEGER: 3
------------------------------------------------------------------------
--

Instead of .1.3.6.1.4.1.8072.3.2.10, I need .1.3.6.1.4.1.343.1000.2

>
>Dave

Thanks for the reply,
Jaiber John


-------------------------------------------------------
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