On 29 July 2010 12:22, YAHYAOUI Mohammed <[email protected]> wrote:
> 1/ A new mib is defined to enable a notification
>
> NOTIFICATION-TEST-MIB DEFINITIONS ::= BEGIN
>         IMPORTS ucdavis FROM UCD-SNMP-MIB;
> demonotifs OBJECT IDENTIFIER ::= { ucdavis 991 }
> demo-notif NOTIFICATION-TYPE
>  STATUS current
>         OBJECTS { sysLocation }
>  DESCRIPTION "Just a test notification"
>         ::= { demonotifs 9}
> END

You probably want an intermediate entry between demonotifs and demo-notif
Something like:

     demonotifs   OBJECT IDENTIFIER ::= { ucdavis 991 }
     demonotifs0  OBJECT IDENTIFIER ::= { demonotifs 0 }
     demo-notif NOTIFICATION-TYPE
            :
      ::= { demonotifs0 9}

But that's a fairly minor issue.



> 3/ My commans is C:\NetSNMP\usr\bin>snmptrap -v 2c -c public localhost:199
> '' NOTIFICATION-TEST-MIB::demo-notif SNMPv2-MIB::sysLocation.0 s "just here"
>
> My daemon is running => C:\NetSNMP\usr\bin>snmptrapd  -f -Le -c
> C:\NetSNMP\usr\etc\snmp\snmptrapd.conf -M c:/usr/share/snmp/mibs 
> udp:127.0.0.1:199
> NET-SNMP version 5.4.1
> Cannot find TrapOID in TRAP2 PDU

Try running the trap receiver using the flag '-Ddump'
and resend the notification.   What debug output do you see?

Dave

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to