SNMP on embedded Linux device

From: Pavel (pavel_at_polbox.com)
Date: 06/18/04

  • Next message: Mike_at_nospam.co.uk: "DiskOnChip support"
    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.


  • Next message: Mike_at_nospam.co.uk: "DiskOnChip support"

    Relevant Pages

    • SNMP
      ... I would like to use snmp and send traps. ... I run snmptrapd server. ... I would like just to send (alarm code in integer of string) ...
      (comp.os.linux.misc)
    • SNMP, MIB for traps
      ... I`m developing a device which will use SNMP traps ... I set up snmptrapd server. ... I send traps from a device with use of snmptrap application. ... The problem is that I don`t understand function of MIB in traps. ...
      (comp.os.linux.networking)