Hello,

What I am trying to do is to send out SNMP trap from an embedded linux 
target for alarming purpose in case HW failure. So I see the notification.c 
is the best candidate.

I also wish to have the target respond to SNMP query.

Therefore, I'm thinking there're 2 ways
1) a) Run snmptrapd for query
    b) Compile notification.c as a stand-alone app and run it to send SNMP 
trap
    So, I'm really appreciated to your help of how to do b)
2) The notification.c is "embed" into snmptrapd so I run only 1 task for 
both

Job 1.b) could be simpler in creating a Makefile ? but 2) is simnpler in 
operation as 1 task does both jobs (sending out and responding to query)

I really appreciate to your time and help

Duy

----- Original Message ----- 
From: "Mike Ayers" <[EMAIL PROTECTED]>
To: "dan anderson" <[EMAIL PROTECTED]>; "Duy-Ky Nguyen" 
<[EMAIL PROTECTED]>
Cc: <net-snmp-users@lists.sourceforge.net>
Sent: Friday, September 12, 2008 3:10 PM
Subject: RE: How to use examples/notification.c



Also note that this is an example of sending notifications from a subagent. 
Sending notifications from a separate application is a little different.


HTH,

Mike


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of dan anderson
> Sent: Friday, September 12, 2008 3:02 PM
> To: Duy-Ky Nguyen
> Cc: net-snmp-users@lists.sourceforge.net
> Subject: Re: How to use examples/notification.c
>
> snmptrapd is a trap listening daemon, and will not send traps.
>
> notification.c & .h will compile into a module which sends a
> notification/trap (netSnmpExampleNotification is the one) twice a
> minute. So with the snmptrapd running, if you then compile the
> notification example into the agent (snmpd), put localhost in the
> config file as a sink, and run snmpd, then your snmptrapd should get
> notifications every 30 seconds.
>
> -Dan
>
> 2008/9/12 Duy-Ky Nguyen <[EMAIL PROTECTED]>:
> > Hello,
> >
> > In the directory net-snmp-5.2.5/agent/mibgroup/examples,
> there is a file
> > describing how to send a notification from inside the agent.
> >
> > I did
> > ./configure --with-mib-modules="examples/notification
> > as required, then make install
> >
> > But I'm not sure how this notification gets executed ???
> > Is it executed by snmptrapd ???
> >
> > Your help is greatly appreciated
> >
> > Duy Kyng
> >
> >
> --------------------------------------------------------------
> -----------
> > This SF.Net email is sponsored by the Moblin Your Move
> Developer's challenge
> > Build the coolest Linux based applications with Moblin SDK
> & win great
> > prizes
> > Grand prize is a trip for two to an Open Source event
> anywhere in the world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > Net-snmp-users mailing list
> > Net-snmp-users@lists.sourceforge.net
> > Please see the following page to unsubscribe or change
> other options:
> > https://lists.sourceforge.net/lists/listinfo/net-snmp-users
> >
> >
>
> --------------------------------------------------------------
> -----------
> This SF.Net email is sponsored by the Moblin Your Move
> Developer's challenge
> Build the coolest Linux based applications with Moblin SDK &
> win great prizes
> Grand prize is a trip for two to an Open Source event
> anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
> 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to