[uClinux-dev] net-snmp in embedded system

v.nagasrinivas cheluvi at yahoo.com
Sun Mar 16 23:49:24 EST 2003


Ie.,  right, it needs the libraries......
When you sum of all the total comes around in Megs...

I have read some time back an article of floppy based router works..
http://www.linuxrouter.org/LRP-Package-HOWTO.shtml
Will give a concept any of required package to be put in .tar.gz form...

and load through a form of script or program dynamically unzip and untar

place the binaries in the respective areas of file system which already
in RAM
from your flash which definitely serves the memory space requirement ..

But here one more point also require..when ever the snmp daemon to be
started on startup  the same scipt should be run automatically .......

Could this idea work out..?????

because i have downloaded the net-snmp.lrp meant for linux router
project which is of 567 K
the untarred and the  occupying harddisk space is of 13Meg...


------------------------------------------------------------------------

cheluvi at srinivas:~$ du -ch net-snmp
116k net-snmp/include/net-snmp/system
8.0k net-snmp/include/net-snmp/machine
356k net-snmp/include/net-snmp/library
172k net-snmp/include/net-snmp/agent
744k net-snmp/include/net-snmp
748k net-snmp/include
1.2M net-snmp/bin
9.1M net-snmp/lib
276k net-snmp/sbin
24k net-snmp/share/snmp/snmpconf-data/snmp-data
36k net-snmp/share/snmp/snmpconf-data/snmpd-data
16k net-snmp/share/snmp/snmpconf-data/snmptrapd-data
80k net-snmp/share/snmp/snmpconf-data
1.2M net-snmp/share/snmp/mibs
1.3M net-snmp/share/snmp
1.3M net-snmp/share
108k net-snmp/man/man1
420k net-snmp/man/man3
64k net-snmp/man/man5
20k net-snmp/man/man8
616k net-snmp/man
13M net-snmp
13M total ---------------------------------Occupying this much of
space......



Thanks
srinivas.











? ? wrote:

>  the snmpd dose not work without many libs, i use ldd command to check
> snmpd ,it depends on many libs. [root at MMI .libs]# ldd ./snmpd
>         libnetsnmpagent.so.5 => /usr/local/lib/libnetsnmpagent.so.5
> (0x40013000)
>         libnetsnmpmibs.so.5 => /usr/local/lib/libnetsnmpmibs.so.5
> (0x40025000)
>         libnetsnmphelpers.so.5 =>
> /usr/local/lib/libnetsnmphelpers.so.5 (0x40041000)
>         libnetsnmp.so.5 => /usr/local/lib/libnetsnmp.so.5 (0x4004c000)
>
>         libdl.so.2 => /lib/libdl.so.2 (0x400ac000)
>         libm.so.6 => /lib/i686/libm.so.6 (0x400af000)
>         libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
>
>      ----- Original Message -----
>      From: v.nagasrinivas
>      To: laili at interepoch.com.tw ; uclinux-dev at uclinux.org
>      Sent: Saturday, March 15, 2003 12:59 PM
>      Subject: Re: [uClinux-dev] net-snmp in embedded system
>       HI,
>
>                   I have downloaded the net-snmp latest and
>      compiled and installed and check the
>      snmpd      .....................showing 101k ( everything on
>      i686 machine...)
>      and these figures are without doing flthdr running etc....
>
>      So the memories of net-snmp installed files also i put
>      here...
>
>      From this when you take only     /sbin/snmpd
>      ------------101k
>      I don't the involvement of libfiles   as /lib showing
>      --------9.1M (i think without these also the net-snmp
>      runs..)
>      and the mibs files total finally depends on you which one do
>      you need to supply for the customer..
>
>                                            ---combining the stds
>      mibs and your private mibs total...that never follows the
>
>                               following figure...
>      Could you give more information for analysation..........
>
>      Thanks,
>      srinivas.
>
>
>
>      cheluvi at srinivas:~/net-snmp/sbin$ ls -lh
>      total 272k
>      -rwxr-xr-x    1 cheluvi  cheluvi      101k Mar 15 09:59
>      snmpd
>      -rwxr-xr-x    1 cheluvi  cheluvi      160k Mar 15 09:59
>      snmptrapd
>      cheluvi at srinivas:~/net-snmp/sbin$
>
>      --------------------------------------------------
>      cheluvi at srinivas:~/net-snmp$ du -ch
>      116k ./include/net-snmp/system
>      8.0k ./include/net-snmp/machine
>      356k ./include/net-snmp/library
>      172k ./include/net-snmp/agent
>      744k ./include/net-snmp
>      748k ./include
>      1.2M ./bin
>      9.1M ./lib
>      276k ./sbin
>      24k ./share/snmp/snmpconf-data/snmp-data
>      36k ./share/snmp/snmpconf-data/snmpd-data
>      16k ./share/snmp/snmpconf-data/snmptrapd-data
>      80k ./share/snmp/snmpconf-data
>      1.2M ./share/snmp/mibs
>      1.3M ./share/snmp
>      1.3M ./share
>      108k ./man/man1
>      420k ./man/man3
>      64k ./man/man5
>      20k ./man/man8
>      616k ./man
>      13M .
>      13M total
>      cheluvi at srinivas:~/net-snmp$
>      ----------------------------
>      -----------------------------------------
>
>
>      §õ ñ° wrote:
>
>     > hi all: I am a engineer in InterEpoch in Taiwan , this is
>     > web's url of my company www.interepoch.com.tw.I want to
>     > add SNMP agent in our wireless lan AP product, so i deside
>     > to used NET-SNMP.But the snmpd file size is about 800kbyte
>     > witch is too large for our embedded platform (4MB flash
>     > memory).i try to reduse NET-SNMP code size in many ways
>     > such as removing snmpv3 ,debugging msg,app ( we dont need
>     > in agent product)..., only reduse 40kbyte. how can i
>     > reduse  NET-SNMP size ? thank you. lai li
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.uclinux.org/pipermail/uclinux-dev/attachments/20030317/588edb57/attachment.html>


More information about the uClinux-dev mailing list