Re: notification.c ... TObjID: Enterprises ... why?

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 (...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-23-2005
Dave Shield
 
Posts: n/a
Default Re: notification.c ... TObjID: Enterprises ... why?

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:14 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0