Hi

Sorry for this new/old question but I still have miss-understanding of the
snmptrap syntax.

Looking on the TUT

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

2/ I have saved the MIB onto the MIB directory

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

Hence, the problem is Cannot find TrapOID in TRAP2 PDU again :-)

Will appreciate any help.
------------------------------------------------------------------------------
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