I 'm trying to cross-compile net-snmp-5.3.2 with my mib-module and my personal library, not form of agentx

but I failed every time.


I think that it is a problem of configuration option.

I make shared library and static library using my source library files.

and linked them

but useless...


It is my install script file


================================================================================================

CFLAGS="-I/home/psyche/sychoi/net-snmp-5.3.2/agent/mibgroup/nexlib" LDFLAGS="-L/home/psyche/sychoi/lib/libnexcmd -lnexcmd" ./configure --host=i386-linux --build=ppc-linux --target=ppc-linux --prefix=/usr --exec-prefix=/usr --enable-shared --disable-debugging --enable-mini-agent --with-mibs="IP-MIB:IF-MIB:TCP-MIB:UDP-MIB:SNMPv2-MIB:RFC1213-MIB:NEXCOMM-FAN-MIB:NEXCOMM-LOG-MIB:NEXCOMM-SMI:NEXCOMM-MODULE-MIB" --with-mib-modules="agentx ucd-snmp/dlmod nexlib/snmp_fan nexlib/snmp_log nexlib/snmp_module" --with-enterprise-notification-oid=.1.3.6.1.4.1.5927.99.12.1 --sysconfdir=/etc --localstatedir=/var --enable-internal-md5 --enable-snmpv1 --enable-snmpv2c --disable-embedded-perl --with-cc=ppc_82xx-gcc --with-linkcc=ppc_82xx-gcc --with-ar=ppc_82xx-ar --with-endianness=big --with-install-prefix=/home/psyche/sychoi/install --without-rpm | tee snmp.config.log




make | tee snmp.config.log


perl -pi -e "s|^prefix=/usr|prefix=/home/psyche/sychoi/install/usr|" net-snmp-config


perl -pi -e "s|^exec_prefix=/usr|exec_prefix=/home/psyche/sychoi/install/usr|" net-snmp-config


make install | tee snmp.intall.log

===============================================================================================
I made shared library
1. ln -s libnexcmd.so.1.0.1 libnexcmd.so
2. export LD_LIBRARY_PATH=/home/psyche/sychoi/lib/libnexcmd:$LD_LIBRARY_PATH
3. cp libnexcmd.so.1.0.1 /usr/lib
4. cp libnexcmd.so.1.0.1 /usr/local/lib
5. install net-snmp-5.3.2

I want to install net-snmp-5.3.2 involved my mib modules. not agentx

These files, snmp_fan.c , snmp_log.c, snmp_module.c are run well in agentx form.
but I include them  form of mib module in net-snmp, they are not

when i run snmpd, the reply is below
=============================================================================================
[r...@localhost nexlib]# snmpwalk -v 1 -c public 172.16.0.100 system
SNMPv2-MIB::sysDescr.0 = STRING: n5000
SNMPv2-MIB::sysObjectID.0 = OID: NEXCOMM-SMI::n5000
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (155804) 0:25:58.04
SNMPv2-MIB::sysContact.0 = STRING: http://www.globaltelecom.co.kr
SNMPv2-MIB::sysName.0 = STRING: N5000
SNMPv2-MIB::sysLocation.0 = STRING: nexcomm systems Inc.
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (4) 0:00:00.04
SNMPv2-MIB::sysORID.1 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.2 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.3 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.4 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.5 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.2 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.3 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.5 = STRING: The management information definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (3) 0:00:00.03
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (3) 0:00:00.03
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (4) 0:00:00.04
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (4) 0:00:00.04
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (4) 0:00:00.04
[r...@localhost nexlib]# snmpwalk -v 1 -c public 172.16.0.100 fan
[r...@localhost nexlib]# snmpwalk -v 1 -c public 172.16.0.100 log
[r...@localhost nexlib]# snmpwalk -v 1 -c public 172.16.0.100 module
================================================================================================
It is not problem of snmpd.conf.
I don't know what is the problem.
please let me know what is the problem...
I need your help..





------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to