Re: is there SNMP for embedded system?
James Mccammon <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
I built an agent for an embedded ppc (MPC852) application running under Linux 2.4. The build machine is running Fadora. Some of the instructions I found for embedding net-snmp was a bit confusing to me because it stated (if memory serves) that you had to run "make install", build a tar ball then copy the tar ball and untar it. Not true in my case. After writing my MIBs, I ran configure (see below) to generate the MIB.h and MIB.c files I needed. I edited the .c to add IPC, the communication from application to agent, and a polling function (call back) so the agent would poll the MIB.c. I ran make to build the daemon, snmpd, in the BuildDir/agent directory and I merely had to copy it (snmpd) to my NFS mounted file system to run it. Once the bugs were worked out, I added the daemon to the list of other daemons to build the flash'd version of the application. I did notice that the flash'd version needed a "-c <path to snmpd.conf>" argument but the NFS did not; snmpd found snmpd.conf on the NFS mounted file system as advertised. # Configure reduced footprint with my tools, V2Mib and MyMib .../configure --prefix=/not/usr \ --exec_prefix=/usr \ --with-install-prefix=~/myInstalldir \ --with-cc=<path to tool chain>/bin/powerpc-linux-gcc \ --with-ld=<path to tool chain>/bin/powerpc-linux-ld \ --target=powerpc-linux \ --with-endianness=big \ --host=powerpc \ --with-mib-modules=MyMibModules \ --disable-debugging \ --disable-embedded-perl \ --disable-mib-loading \ --disable-mibs \ --disable-scripts \ --disable-manuals \ --disable-applications \ --disable-perl-cc-checks \ --with-sys-contact=<as required> \ --disable-privacy \ --disable-set-support \ --disable-mib-loading \ --disable-md5 \ --without-opaque-special-types \ --with-out-mib-modules=all \ --with-default-snmp-version=2 Hope this helps - James ----- Original Message ---- From: Dave Shield <[email protected]> To: Brian A. Seklecki <[email protected]>; rakesh zingade <[email protected]>; Vishal Nandanwar <[email protected]> Cc: Net-SNMP Users <[email protected]> Sent: Monday, April 7, 2008 3:04:19 AM Subject: Re: is there SNMP for embedded system? On 06/04/2008, Vishal Nandanwar <[email protected]> wrote: > I think [net-snmp] will work on any embedded system, you need to > configure and compile it correctly. Configure and compilation is biggest > task in this case. I'll repeat my regular plea here. If anyone has had success in getting the Net-SNMP suite (particularly the agent) to work on embedded systems, could you please let us have the details of exactly what sort of configure/compilation settings are required, together with any other problems you came across, incantations or ritual dances you needed to perform, etc... This sort of question comes up fairly frequently, but none of the core development team have much experience with embedded systems. All we can really report is that "apparently it's possible, but we don't know how" (which isn't very satisfactory for anyone!) It would be extremely useful if we could put together some form of documentation for getting things working on embedded systems. (Either Net-SNMP hosted docs or links to other information - it doesn't really matter. But *something* would be nice!) Dave ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ 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 ____________________________________________________________________________________ You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ 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