This is a discussion on Re: notification.c ... TObjID: Enterprises ... why? within the SNMP Coders forums, part of the Networking and Network Related category; On Fri, 2005-08-19 at 10:43 +0200, Torben Surmer wrote: > when I compile the notification.c sample (...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Fri, 2005-08-19 at 10:43 +0200, Torben Surmer wrote:
> 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: [snip] > do anyone know how I have to modify the notification.c code so it sends a > specific TObjID? Well, it's difficult to be sure without further details about exactly what your trap receiver means by "TObjID". But it's might be worth replacing the line: send_v2trap(notification_vars); with something like: oid myEnterprise[] = { 1, 3, 6, 1, 4, 1, 1579, 42, 99 }; size_t myEntLen = OID_LENGTH( myEnterprise ); send_enterprise_trap_vars( -1, -1, myEnterprise, myEntLen, notification_vars ); and see what that displays. Dave ------------------------------------------------------- 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 Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders |