Hi all,

I am using ucd-snmp-4.2.6. I am writing to you in order to certify that the 
following procedure for generating a trap is correct when a specific event 
occur.

Fitst of I have to creat a MIB file such as the following one which defines 
the trap.

=====================================================
demotraps-MIB DEFINITIONS ::= BEGIN

IMPORTS
    MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE,
    TimeTicks, Counter32, snmpModules, coronis-trap
        FROM SNMPv2-SMI

demotraps       OBJECT IDENTIFIER ::= { coronis-trap 1 }

demo-trap TRAP-TYPE
    STATUS current
    ENTERPRISE demotraps
    VARIABLES { terminal-serial-number }    --this an object which I created
    DESCRIPTION
            "This is only for testing purposes"
    ::=  1 
END
======================================================

The next step is to call the: 

void send_easy_trap(int trap, int specific);  function

inside the source file of the "terminal-serial-number",

which will generate the trap when the event specified by the source code 
occur.

Is the previously referred procedure correct?

Thanks in advance for your help

Regards,
Mike


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
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

Reply via email to