SNMP on embedded Linux device
From: Pavel (pavel_at_polbox.com)
Date: 06/18/04
- Previous message: Jacky Cheung: "sound driver error"
- Next in thread: James: "Re: SNMP on embedded Linux device"
- Reply: James: "Re: SNMP on embedded Linux device"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 18 Jun 2004 11:25:49 +0200
Hello,
I develope a device which should
send alarms when something goes wrong.
I would like to use snmp and send traps.
I run snmptrapd server.
Then created MIB:
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
And finally used command :
snmptrap -v 1 -c public 192.168.1.1 TRAP-TEST-MIB:demotraps 192.168.1.1 6 17
'' SNMPv2-MIB::sysLocation.0 s "Alarm"
Unfortunatelly, man pages and tutorial is poor for
me, and I am not able to understand idea of
snmp traps and even meaning of parameters for
snmptrap.
I would like just to send (alarm code in integer of string)
trap to snmptrapd server, when something is wrong with
a device.
If you provide me with some good materials or explanation
how to do it, I will be glad.
Thanks in advice,
Pavel.
- Previous message: Jacky Cheung: "sound driver error"
- Next in thread: James: "Re: SNMP on embedded Linux device"
- Reply: James: "Re: SNMP on embedded Linux device"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|