Phil,

We have added an enterprise MIB to net-snmp contained in snapgear-3.3.0 for IXP425. Like you, we added our MIB name to the configure line and placed the files in agent/mibgroup. We also added some utility parsing code to the agent.

Check in snapgear/user/net-snmp/build/agent/mibgroup to verify that your agent modifications are being built. I would also suggest verifying that your changes are linked into the snmpd if building statically or are in the shared library if built dynamically.

We use shared libraries on our system. I had problems when I was only copying the snmpd program, not the shared libs to the target. My changes didn't show up until I updated the libraries on the target, too.

Brian

FYI: Here is the configuration line we use:

 CC="ucfront-gcc arm-linux-gcc -mbig-endian
     -O1 -fno-common -fno-builtin -Wall
     -Dlinux -D__linux__ -Dunix
     -DEMBED" LDFLAGS="-g -fno-common -fno-builtin" LIBS=""
         ../configure --host=arm-linux --prefix=
                      --with-endianness=big
                      --disable-applications
                      --disable-manuals
                      --disable-scripts
                      --disable-mibs
                      --disable-mib-loading
                      --with-out-transports="Unix TCP"
                      --with-default-snmp-version="3"
                      --with-sys-contact="root"
                      --with-sys-location="unknown"
                      --with-logfile="none"
                      --with-persistent-directory="/var/net-snmp"
                      --with-enterprise-oid="19139"
--with-mib-modules="disman/event-mib edgewater cfg_util strl ipaddr"
                      --sysconfdir=/etc/config

--with-enterprise-notification-oid="1.3.6.1.4.1.19139"
                      --with-enterprise-sysoid="1.3.6.1.4.1.19139.16"
                      --disable-debugging;


Philip Mason wrote:
From: "Philip Mason" <[EMAIL PROTECTED]>
Subject: [uClinux-dev] Extending net-snmp agent
To: <uclinux-dev@uclinux.org>
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain;       charset="US-ASCII"

Hello All,

I'm trying to extend the net-SNMP agent in the uClinux kernel but I am
having some trouble doing so. I followed the steps listed here:

http://mailman.uclinux.org/pipermail/uclinux-dev/2006-August/039796.html

to get snmpd running (although I had to alter the final command that
runs snmpd and added -f to prevent it forking). I then downloaded the
example agent extension from the tutorial here:

http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_MIB_Module

I have placed the source files in usr/net-snmp/agent/mibgroup/ and run
./configure --with-mib-modules="nstAgentModuleObject"

And when the configure script has finished the "Agent MIB code" line
states that it is including nstAgentModuleObject. However when I make
the kernel and download it to the hardware I can't find the objects in
the MIB. If I add -DnstAgentModuleObject to the command to run the snmpd
I don't see the expected debug.

Is the kernel make squashing the changes I made with the ./configure
command? Is there something else I need to set in the kernel builder?

Any help much appreciated.

Thanks in advance

Phil Mason

_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to