On Wed, 15 Dec 2004 16:06:04 +0530 John, wrote:
JJJ> When I send a trap from my subagent (AgentX), the enterprise OID field of
JJJ> the V1 trap is always .1.3.6.1.4.1.8072.3.2.10. 
JJJ> 
JJJ> I actually want it the be a different one (for ex: .1.3.5.1.4.1.442.20.1
JJJ> etc). Can this be done using some NetSNMP API from the Subagent - I just
JJJ> searched, but couldn___t find one.

No. If you always want the custom OID, reconfigure with the configure option
your mentioned in your other message.

If you want to send different traps with different enterprise OIDs, then
you have to either:

a) hack the code. Poke around agent/agent_trap.c, and search on
snmptrapenterprise_oid.

b) build the pdu manually, instead of using the agent api convenience routines.
Again, agent/agent_trap.c will be your guide.

If you are sending the trap from a sub-agent, then b is the only choice.

-- 
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>  
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
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