RE: problem in receiving traps in SNMP-V3

"Darryl" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Try adding –Dsum parameter to snmptrapd to get some extra debug information
(snmptrapd -f -Le –Dsum)

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 –Ci ...)

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/tutorial-5/commands/snmptrap.html

Darryl


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

 #!/bin/sh
 
 read host
 read ip
 vars=
 
 while read oid val
 do
   if [ "$vars" = "" ]
   then
     vars="$oid = $val"
   else
     vars="$vars, $oid = $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: [email protected]
[mailto:[email protected]] On Behalf Of Reza
Salehi
Sent: 31 July 2007 20:52
To: SNMP FORUM
Subject: problem in receiving traps in SNMP-V3

Hi All,
 
 
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  -d switch but not able to see the content of the message.
 
This is what I am doing.
 
At the sender :
 
snmptrap  -e 0x0102030405  -v 3 -u Reza -a MD5  -A 12345678 -l authNoPriv 
192.168.0.204  42 coldStart.0
 
 
and in reciver runinng  snmptrapd  -Le -f -d
 
and in  /var/net-snmp/snmptrapd.conf
 
createUser -e 0x0102030405  Reza  MD5  12345678 DES 9876543210 
 
 
I appreciate it if you could help me out.
 
Regards,
Reza  
  
________________________________________
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.