Hi, i cross compiled net-snmp for arm architecture, everything works great.
I have a few modules that i tested before on my pc and i know they are
working.
When i move the modules to arm i got some weird errors :
# snmpd -f -c /etc/snmp/snmpd.conf -DALL
No log handling enabled - turning on stderr logging
duplicate registration (skynetPortInteger, skynetPortInteger)duplicate
registration (skynetSetPortInteger, skynetSetPortInteger)duplicate
registration (skynetPortStatusTable, skynetPortStatusTable)duplicate
registration (skynetUserTable, skynetUserTable)NET-SNMP version 5.5
Here is what i did ,
moved the mib file to /usr/share/snmp/mibs
executed export MIBS=ALL
moved the cross compiled module to arm machine and added lines to snmpd.conf
dlmod skynetPortInteger /home/makkalot/scalar_get_int/skynetPortInteger.so
dlmod skynetSetPortInteger
/home/makkalot/scalar_set_int/skynetSetPortInteger.so
dlmod skynetPortStatusTable
/home/makkalot/table_get/skynetPortStatusTable.so
dlmod skynetUserTable /home/makkalot/table_set/skynetUserTable.so
dlmod skynetSnmpPortStatusNotification
/home/makkalot/notifications/skynetSnmpPortStatusNotification.so
here is how i compiled the snmp package :
--with-persistent-directory=/var/lib/snmp --disable-static \
--with-defaults --enable-mini-agent --without-rpm \
--with-logfile=none --without-kmem-usage $(DISABLE_IPV6) \
--enable-as-needed --disable-debugging
--without-perl-modules \
--disable-embedded-perl --disable-perl-cc-checks \
--with-sys-contact="r...@unknown" \
--with-sys-location="Unknown" \
--with-mib-modules="host smux ucd-snmp/dlmod"
(taken from buildroot)
Any ideas ? Thanks in advance for your help ...
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders