|
i installed net-snmp-5.3.2 on fedora11 platform below process
=================================================================
make | tee snmp.config.log perl -pi -e "s|^prefix=/usr|prefix=/home/proj/msap/apps/sychoi/install/usr|" net-snmp-config perl -pi -e "s|^exec_prefix=/usr|exec_prefix=/home/proj/msap/apps/sychoi/install/usr|" net-snmp-config make install | tee snmp.intall.log
===================================================================
and i make a agentx program with my Makefile and exam.c and log.c and fan.c
agentx Makefile is below..
=================================================================== INSTDIR = $(PROJDIR)/rootfs/usr/sbin SNMPINC = /home/proj/msap/apps/sychoi/install/usr CC=ppc_82xx-gcc STRIP=ppc_82xx-strip OBJS += agentx.o OBJS += fan.o OBJS += log.o OBJS += exam.o TARGETS = agentx # LIBS=$(PROJDIR)/lib/libnexcmd/libnexcmd.a -lpthread # CFLAGS = -I. -I$(PROJDIR)/include/libnexcmd -I$(PROJDIR)/include #CFLAGS = -I. 'net-snmp-config --cflags' CFLAGS += -O2 -Dlinux -I. -I$(SNMPINC)/include BUILDLIBS = -L$(SNMPINC)/lib -lnetsnmp -lcrypto -lm #BUILDLIBS =+ 'net-snmp-config --libs' BUILDAGENTLIBS = -L$(SNMPINC)/lib -lnetsnmpmibs -lnetsnmpagent -lnetsnmphelpers -lnetsnmp -ldl -lcrypto -lm #BUILDAGEXTLIBS =+'net-snmp-config --agent-libs' # shared library flags (assumes gcc) DLFLAGS=-fPIC -shared -lpthread all: $(TARGETS) agentx: $(OBJS) # $(CC) -o agentx $(OBJS) $(LIBS) $(BUILDLIBS) $(BUILDAGENTLIBS) $(CC) -o agentx $(OBJS) $(BUILDLIBS) $(BUILDAGENTLIBS) $(STRIP) agentx install: cp -a agentx $(INSTDIR) clean: rm -f $(OBJS) $(TARGETS) ===================================================================
shortly... i succeeded crosscompilingl net-snmp-5.3.2 on fedora11 and making agentx..
i upload snmpd and agent file on my target board...
first i command "snmpwalk -v 1 -c public 172.16.0.100 system i received reply... but i command "snmpwalk -v 1 -c public 172.16.0.100 NEXCOMM-FAN_MIB::fan i couldn't receive reply...at all...
agentx involved fan and exam and log... if agentx is executed normally, when i command "snmpwalk -v 1 -c public 172.16.0.100 NEXCOMM-FAN-MIB::fan", i must receive the reply..
i copyed NEXCOMM MIBS in /usr/local/share/snmp/mibs/ directory on my target board.. and command like this "MIBS=ALL" and "export MIBS"
and i copyed snmpd libraries but it is no use...
honestly... there is no mibs directory and no snmp directory and no share directory..on my target board... i make a share and snmp and mibs directory in /usr/local/ path... there is even no .bahsrc
i don't konw how could snmpd recognized NEXCOMM MIBS... i think the problem is snmp is not recognize NEXCOMM MIBS...
honestly... i simply upload snmpd and agentx file.. and copy NEXCOMM-MIBS in /usr/local/share/snmp/mibs directory.... and copy snmpd libraries in /lib directory...
there 's anything i must do to execute snmpd nomarlly?!....
plese...help me...
it is first time i cosscompile net-snmp ....
i 'll wait for your advice...
have a good day..
ps...sorry for my poor english again...^^;
---------[ 받은 메일 내용 ]---------- |
|
|
|
------------------------------------------------------------------------------ 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
