Try adding =96Dsum parameter to snmptrapd to get some extra debug informati=
on
(snmptrapd -f -Le =96Dsum)

I have not managed to get the snmptrap command to work with snmpV3 users but
the snmpinform command did (I think snmpinform is the equivalent to using
snmptrap =96Ci ...)

I notice you have specified an engine id of 0x0102030405 which I expect is
taken from one of the examples, I assume this is the same engine id used by
the trap sink? If not I expect it probably should be.

I have been using one of the SNMP examples, below is information from my
configuration and script files if it helps. Check you have the authuser
entry in your configuration file.

The example I have been using including MIB files can be found here...
http://www.net-snmp.org/tutorial/tut.../snmptrap.html

Darryl


A trap handler (/home/myuser/trap.sh)
-------------------------------

#!/bin/sh
=

read host
read ip
vars=3D
=

while read oid val
do
if [ "$vars" =3D "" ]
then
vars=3D"$oid =3D $val"
else
vars=3D"$vars, $oid =3D $val"
fi
done
echo trap: $1 $host $ip $vars



Trapd configuration (snmptrapd.conf)
------------------------------------

authuser log,execute,net testuser
authCommunity log,execute,net public

trapcommunity public

# the generic traps
traphandle SNMPv2-MIB::coldStart /home/myuser/trap.sh cold
traphandle SNMPv2-MIB::warmStart /home/myuser /trap.sh warm
traphandle IF-MIB::linkDown /home/myuser /trap.sh down
traphandle IF-MIB::linkUp /home/myuser /trap.sh up
traphandle SNMPv2-MIB::authenticationFailure /home/myuser /trap.sh auth
# this one is deprecated
traphandle .1.3.6.1.6.3.1.1.5.6 /home/support/trap.sh egp-neighbor-loss

# enterprise specific traps
traphandle TRAP-TEST-MIB::demo-trap /home/myuser /trap.sh demo-trap
traphandle NOTIFICATION-TEST-MIB::demo-notif /home/ myuser /trap.sh
demo-notif



All of the following commands worked for me...

snmptrap -v 1 -c public 192.168.28.22 TRAP-TEST-MIB::demotraps
192.168.144.229 6 17 "" SNMPv2-MIB::sysLocation.0 s "Just here"

snmptrap -v 2c -c public 192.168.28.22 "" NOTIFICATION-TEST-MIB::demo-notif
SNMPv2-MIB::sysLocation.0 s "just here"

snmpinform -v 3 -u usera -a MD5 -A mypassword -l authNoPriv 192.168.28.22
coldStart.0 =


________________________________________
From: net-snmp-users-bounces@lists.sourceforge.net
[mailto:net-snmp-users-bounces@lists.sourceforge.net] On Behalf Of Reza
Salehi
Sent: 31 July 2007 20:52
To: SNMP FORUM
Subject: problem in receiving traps in SNMP-V3

Hi All,
=A0
=A0
I am able to send and receive Trap in V2 mode but in V3 I can send trap but
I am not able to see them using snmptrapd.I can see the packets coming
using=A0 -d switch but not able to see the content of the message.
=A0
This is what I am doing.
=A0
At the sender :
=A0
snmptrap=A0 -e 0x0102030405=A0 -v 3 -u Reza -a MD5=A0 -A 12345678 -l authNo=
Priv=A0
192.168.0.204=A0 42 coldStart.0
=A0
=A0
and in reciver runinng=A0 snmptrapd=A0 -Le -f -d
=A0
and in=A0 /var/net-snmp/snmptrapd.conf
=A0
createUser -e 0x0102030405=A0 Reza=A0 MD5=A0 12345678 DES 9876543210 =

=A0
=A0
I appreciate it if you could=A0help me out.
=A0
Regards,
Reza=A0 =

=

________________________________________
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel
and lay it on us. =



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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/...net-snmp-users