Hi ,

   Iam working on snmptrap . Iam trying  to receive Snmptrap from a router
and call a script   /home/rchand/mail/traps  which performs critical  task
like mail alert. I have Net:snmp installed and working in my Linux box .

My snmptrapd.conf file looks something like this .


 #
# net-snmp (or ucd-snmp) persistent data file.
#
# DO NOT STORE CONFIGURATION ENTRIES HERE.
# Please save normal configuration tokens for snmptrapd in
SNMPCONFPATH/snmptrapd.conf.
# Only "createUser" tokens should be placed here by snmptrapd
administrators.
#

# the generic traps
traphandle IF-MIB::linkDown         /home/rchand/mail/traps down
traphandle IF-MIB::linkUp           /home/rchand/mail/traps up
# this one is deprecated
traphandle .1.3.6.1.6.3.1.1.5.6     /home/rchand/mail/traps
egp-neighbor-loss

# enterprise specific traps
traphandle TRAP-TEST-MIB::demo-trap /home/rchand/mail/traps demo-trap
traphandle NOTIFICATION-TEST-MIB::demo-notif /home/rchand/mail/traps
demo-notif

usmUser 1 3 0x800007e58035090d7ddb96e341 0x76335f7573657200
0x76335f7573657200 NULL .1.3.6.1.6.3.10
.1.1.2 0x641804ae09e69728d5ebfd7710e2e918 .1.3.6.1.6.3.10.1.2.2
0x06436b9304b1b3af7e9a84150347570f
0x00
engineBoots 4
oldEngineID 0x800007e58035090d7ddb96e341


 I also enabled trapping in my Router .

But when I give

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

NOTIFICATION-TEST-MIB::demo-notif: Unknown Object Identifier

Here 172.25.2.40 is my routers loopback .

Also how do i make sure whether my system receive traps properly!!

Guys pls help me out as i got stuck with this for past 3 days.


Thanks in Advance


regards ,
rajasekaran C




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to