On Tue, 2010-10-19 at 17:05 +0530, Renjith R. V. wrote:
> Thank you for the input. 
> I could forward the trap to the destination specified in snmptrapd.conf.
> 
> Now I need to convert the SNMP V1 trap received to SNMP V3/V2 and then
> forward.
> Can you provide information to do the same inside forward_handler?

If I should do that then I would probably look at axforward_handler
(same file) which works by means of sending an agentx NOTIFY-PDU to
snmpd and let's snmpd send the notification. Snmpd then do have support
for sending of both v1 traps and v2 and v3 notifications and informs.

> I mean how can I convert SNMP V1 trap to SNMP V2 trap? Also SNMP V1 trap
> to SNMP V3 trap?

There is code for doing this in the agent_trap.c (convert_v2pdu_to_v1
and convert_v1pdu_to_v2) but before you use those you should read the
coexistence rfcs as they are somewhat involved to use properly.

/MF


------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to