Hi,

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

If you are not using privacy just cut out the -x and -X options as well as DES
ppassword and use
-l authNoPriv.

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.

greetings
Wolfgang


> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Auftrag von
> madanagopal
> Gesendet: Montag, 05. Juli 2004 07:55
> An: [EMAIL PROTECTED]
> Betreff: how to send a v3 trap
> 
> 
> hai,
>    I want to send a SNMP v3 trap(which i suppose is same as a v2 trap 
> along with v3 specific parameters) using snmptrap utility and 
> receive it 
> using snmptrapd. I am able to send v2 traps and receive them. 
> But i am not 
> able to send and receive v3 traps. I tried different 
> combinations like 
> giving only userName, giving engineID and userName but they were not 
> successful. I would like to know which parameters are 
> mandatory for a v3 
> trap and may be a sample command actually containing them.
>   Also i am able to send v2 traps from agent using 
> send_v2trap(). Which 
> function or api to use for sending v3 traps from the 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
> 


-------------------------------------------------------
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