Dear sir,
I have a problem with snmptrap and snmptrapd.
I have compiled net-snmp from 5.7.1. source on WIN7 with OpenSSL and
winExt support. Then I generated three config files (snmp.conf,
snmpd.conf and snmptrapd.conf) and put them in usr/share/snmp folder.
The config files contains:
snmp.conf-----------------------------------------------
defaultport 46380
defversion 3
defcommunity AHS
defsecurityname mahmoud
defsecuritylevel authNoPriv
defauthpassphrase mkopol12
defAuthType MD5
-------------------------------------------------------------
snmpd.conf-----------------------------------------------
createUser mahmoud MD5 mkopol12
createUser memol MD5 mkopol12
rwuser mahmoud auth
rwuser memol auth
rocommunity public
rwcommunity AHS
load 14 14 14
syslocation AHS
syscontact momtazpour
trap2sink localhost AHS 46380
informsink localhost AHS 46380
trapcommunity AHS
authtrapenable 2
-------------------------------------------------------------
snmptrapd.conf-----------------------------------------------
createUser -e 0x8000000001020304 mahmoud MD5 mkopol12
createUser memol MD5 mkopol12
authUser log,execute,net mahmoud
authUser log,execute,net memol
authcommunity log,execute,net AHS
snmpTrapdAddr udp:46380
-------------------------------------------------------------
I have successfully tested snmpget and snmpwalk with snmpd daemon.
But I
wonder why I can't use snmptrap and snmptrapd to send and receive
traps.
More specifically, I run
snmptrapd -f -Le
and I get :
NET-SNMP version 5.7.1
which seems to be listening.
But when simultaneously running on different window:
snmptrap -v 2c localhost
NET-SNMP-EXAMPLES-MIB::netSnmpExampleNotification "" 6 17 ""
\netSnmpExampleInteger i 123456
or
snmptrap localhost
NET-SNMP-EXAMPLES-MIB::netSnmpExampleNotification ""
6 17 "" \netSnmpExampleInteger i 123456
or any other trap command, I do not see anything in the first
window?
What is wrong with it?
I appreciate your help.
Bests,
--
Mahmoud Momtazpour
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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