Re: Cross-compiling Net-SNMP
Bart Van Assche <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Sep 2, 2010 at 4:32 PM, Leo Lin <[email protected]> wrote: > I have Net-SNMP installed in my PC / Cygwin. I would like to implement the > agent portion and deployed to an ARM9 CPU. > > I figured, in order to cross-compile it, I simply need to change the --CC > options on the ./configure() script when building the agent. > > My question is: when the agent is built, which files, directories I need to > create / copy to my target CPU (ARM9). At this moment, I'm thinking that > snmpd, snmpd.conf. > > Once in my target CPU, how it generates traps? Have a custom source code / > script that invokes the snmptrap() command? if so, I need to copy this > binary to my target CPU as well, right? > It depends on how you want to send traps. If you want to be able to send traps from a shell script, you need the snmptrap command. If you are only going to send traps from C code, then you don't need the snmptrap command. Sending traps from C code is possible via one of the functions defined in <net-snmp/agent/agent_trap.h> (see also http://www.net-snmp.org/docs/man/snmp_trap_api.html). Bart. ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users