Hallo,

when I compile the notification.c sample (net-snmp-config --compile-subagent test notification.c) and run the created test agent, my snmp trap receiver prints out:

TObjID:enterprises;
ObjID1:sysUpTime.0; W1:15274;
ObjID2:snmpTrapOID.0; W2:netSnmp.2.3.0.1;
ObjID3:netSnmp.2.3.2.1.0; W3:30;
<<<

when I run the snmptrap (snmptrap -v 1 -c public my.destination .1.3.6.1.4.1.8072 <xxx.xxx.xxx.xxx> 6 4711 '' .1.3.6.1.4.1.8072.1.4 s "hello world") the trap receiver prints out:

TObjID:netSnmp;
ObjID1:netSnmp.1.4; W1:hello world;
<<<

do anyone know how I have to modify the notification.c code so it sends a specific TObjID?

Thank you!

_________________________________________________________________
Sie suchen E-Mails, Dokumente oder Fotos? Die neue MSN Suche Toolbar mit Windows-Desktopsuche liefert in sekundenschnelle Ergebnisse. Jetzt neu! http://desktop.msn.de/ Jetzt gratis downloaden!



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to