I figured out the solution.
In Net SNMP makefile make sure you set the default SNMP version to 2 and 
disable the snmp version 1.

Only issue that remain unsolved is I still see the warning from the code
send_trap: v1 traps can't carry Counter64 varbinds
send_trap: failed 
to convert v2->v1 template PDU

But the traps do reach the trap server.

Hope this helps.





________________________________
From: Malathi Panyam <malathipan...@yahoo.com>
To: net-snmp-users@lists.sourceforge.net
Sent: Sat, March 20, 2010 2:18:40 PM
Subject: COUNTER64 support in SNMPv2 traps


Hi,
     Is Counter64 supported for SNMPv2 traps? I am aware that its supported by 
SNMPv2 and I am able to use them successfully for my other MIBs, but when I 
tried to use a counter64 bit value with my traps, I see the following messages 
in my output
send_trap: v1 traps can't carry Counter64 varbinds
send_trap: failed to convert v2->v1 template PDU

I use trap2sink in my snmpd.conf and I used ASN_COUNTE64 as the type in my code.
I am using NetSNMP 5.4.2.1 and when I checked the code, when we send a v2 trap, 
ultimately it converts it into a V1 trap...
Pl. help.

Thanks in advance,

Regards,
Malathi


      
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to