[uClinux-dev] net-snmp in embedded system

? ? laili at interepoch.com.tw
Sun Mar 16 20:50:44 EST 2003


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/9b89689d/attachment.html>


More information about the uClinux-dev mailing list