Re: Cross-compiling Net-SNMP

Leo Lin <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,
 
I'm crosscompiling net-snmp for ARM9, and I disabled SNMPv3 support with
 
--disable-des --disable-privacy --disable-md5 --enable-mini-agent --with-out-mib-modules=snmpv3mib,mibII/vacm --disable-privacy \
      --disable-md5 --without-openssl
 
when runing ./configure it loads, the default_modules, which loads snmpv3mibs.
 
Is this normal?  I'm trying to build a minimal agent, and add my mib modules as needed, as I'm not sure if the complete module/package is supported in my target system.
 
Thanks!
 
Leo;

--- On Sat, 9/4/10, Bart Van Assche <[email protected]> wrote:


From: Bart Van Assche <[email protected]>
Subject: Re: Cross-compiling Net-SNMP
To: "Leo Lin" <[email protected]>
Cc: "Net-snmp-users" <[email protected]>
Date: Saturday, September 4, 2010, 6:50 AM



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.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.