Hi,
Just follow the instructions from:
http://www.net-snmp.org/wiki/index.php/TUT:Configuring_snmptrapd
and little more tips:
- Create one file named as "TRAP-TEST-MIB.txt" in
/usr/local/share/snmp/mibs/ with below entries
TRAP-TEST-MIB DEFINITIONS ::= BEGIN
IMPORTS ucdExperimental FROM UCD-SNMP-MIB;
demotraps OBJECT IDENTIFIER ::= { ucdExperimental 990 }
demo-trap TRAP-TYPE
STATUS current
ENTERPRISE demotraps
VARIABLES { sysLocation }
DESCRIPTION "This is just a demo"
::= 17
END
- Make sure that UCD-SNMP-MIB.txt is present in that path.
- issue the below command to check the effect of above change for TRAP
$ snmptrap -v 1 -c public host TRAP-TEST-MIB::demotraps "" 6 17 ""
SNMPv2-MIB::sysLocation.0 s "Just here"
The above example creates SNMPv1 TRAP.
- Modify the /etc/snmp/snmpd.conf for below entries to define trap sink
# send v1 traps
trapsink localhost public
# also send v2 traps
trap2sink localhost public
# send traps on authentication failures
authtrapenable 1
-- To receive the trap use command
$snmptrapd -P
_____
From: Shrawan Patel [mailto:[EMAIL PROTECTED]
Sent: 2008-11-25 20:26
To: [email protected]
Subject: How to send traps from snmpd daemon
Hi friends,
I am using net-snmp-5.4.1.2 ,want to send traps from snmpd daemon. Can
anybody help me in this problem. I am beginner in Net-SNMP, Please specify
me the complete procedure properly .
Thanks in advance.
Regards,
Shrawan
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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