I have tried with convert_v1pdu_to_v2(). But it doesn't worked. Upon checking the syslog file, it showed the error "snmptrapd[19529]: Forward failed: Cannot send V2 PDU on V1 session"
Can you please tell me what could be the problem? And any solution? thank you, renjith -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield Sent: Tuesday, October 19, 2010 5:19 PM To: Renjith R. V. Cc: [email protected] Subject: Re: how to identify variable 'type' and 'value' from pdu structure 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 ***** Confidentiality Statement/Disclaimer ***** This message and any attachments is intended for the sole use of the intended recipient. It may contain confidential information. Any unauthorized use, dissemination or modification is strictly prohibited. If you are not the intended recipient, please notify the sender immediately then delete it from all your systems, and do not copy, use or print. Internet communications are not secure and it is the responsibility of the recipient to make sure that it is virus/malicious code exempt. The company/sender cannot be responsible for any unauthorized alterations or modifications made to the contents. If you require any form of confirmation of the contents, please contact the company/sender. The company/sender is not liable for any errors or omissions in the content of this message. ------------------------------------------------------------------------------ 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
