On 19 October 2010 12:35, Renjith R. V. <[email protected]> wrote:
> Now I need to convert the SNMP V1 trap received to SNMP V3/V2
> and then forward.
That's not currently supported.
(Though it's on the list of Requested Features)
> Can you provide information to do the same inside forward_handler?
> I mean how can I convert SNMP V1 trap to SNMP V2 trap?
> Also SNMP V1 trap to SNMP V3 trap?
First thing - there is no such thing as "SNMPv3 trap".
SNMPv2c requests and SNMPv3 requests both use
the same SNMPv2 PDU format - so there are only
really only two types of notification:
SNMPv1 trap
(with distinct header fields)
and
SNMPv2 notification
(used for SNMPv2c traps and informs,
and also for SNMPv3 traps and informs)
There are routines 'convert_v2pdu_to_v1' and 'convert_v1pdu_to_v2'
which can be used to convert from one format to the other.
Strictly speaking, these are part of the agent library, but snmptrapd
is normally compiled in such a way as to include this library anyway.
That's probably the easiest way to convert PDU formats.
Dave
------------------------------------------------------------------------------
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