Has anyone loaded net-snmp-5.2.1 on Axis as a running SNMP agent?
How about any prior versions of net-snmp?
Been trying to compile net-snmp-5.2.1 using cris-gcc but it's giving me errors.
Anyway, would really appreciate if anyone could share what he/she has done to have a running SNMP agent on Axis.
Thank,
Ben.
-----Original Message-----
From: Christer Weinigel [mailto:christer@xxxxxxx.se]
Sent: Tuesday, March 01, 2005 3:28 AM
To: Ben Jafari
Cc: 'dev-etrax@xxxxxxx.com'
Subject: Re: Running Snmpd on Axis
Ben Jafari <bjafari@xxxxxxx.com> writes:
> Could some one please give a clean recipe as how to load and run Snmpd on
> Axis platform?
>
> I did read through the mail thread, but it seems that no one had a clear cut
> answer as how to port (compile and link all the needed libraries, etc.) and
> run Snmpd on Axis.
This works for me:
./configure --target=cris-linux-gnu --host=i386-linux \
CC=cris-gcc \
--prefix=/usr \
--with-endianness=little \
--with-openssl=`pwd`/openssl \
--with-default-snmp-version=3 \
--with-sys-contact="" \
--with-sys-location="" \
--with-logfile=/var/log/snmpd.log \
--with-cflags=-Os \
--with-libs=-ldl \
--without-root-access \
--with-transports="TCP UDP" \
--with-mib-modules="mibII/interfaces mibII/ip"
And the following patch to work around a problem with getting the
interface information:
diff -urw "net-snmp-5.1/agent/mibgroup/mibII/interfaces.c.orig" "net-snmp-5.1/agent/mibgroup/mibII/interfaces.c"
--- net-snmp-5.1/agent/mibgroup/mibII/interfaces.c.orig 2003-11-02 13:50:38.000000000 +0100
+++ net-snmp-5.1/agent/mibgroup/mibII/interfaces.c 2004-05-11 18:28:35.000000000 +0200
@@ -1404,7 +1404,7 @@
*/
unsigned int getIfSpeed(int fd, struct ifreq ifr){
unsigned int retspeed = 10000000;
-#ifdef linux
+#ifdef linuxNONONO
/* the code is based on mii-diag utility by Donald Becker
* see ftp://ftp.scyld.com/pub/diag/mii-diag.c
*/
/Christer
--
"Just how much can I get away with and still go to heaven?"
Freelance consultant specializing in device driver programming for Linux
Christer Weinigel <christer@xxxxxxx.se" TARGET="_blank">http://www.weinigel.se