> I was fighting with this myself,
> did you add a createUser line to the snmptrapd.conf file in /var/net-snmp?
> 
> This will send a coldstart-inform to snmptrapd on localhost with an uptime of 42
> timeticks:
> snmpinform  -v 3 -u testuser -a MD5 -A password -x DES -X ppassword -l authPriv
> localhost 42 coldStart.0
> 
> To make snmptrapd receive this inform you have to add this to
> /var/net-snmp/snmptrapd.conf before starting it:
> createUser testuser MD5 password DES ppassword
>

I didn't add the createUser line. If i add it is now working only for 
informs(snmpinform or snmptrap -Ci). But it is not working for traps(using 
snmptrap command without -Ci). Why is it so? But i am able to send v2 
traps.

> As for sending V3 Traps/Informs from an agent I used code from the 
> snmptrap-utility in my 
> case because I did not find any API functions like send_v2_trap.
> But I am using an old ucd-snmp 4.2.5 package for my agent, maybe there is
> something in newer Versions.

I am using net-snmp 5.0.6. But any net-snmp version is fine with me. Does 
anyone else knows how to send v3 traps from the net-snmp agent?



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to