On Thu, 2005-05-05 at 10:21, dwarf wrote:

> This agent build with configure :
> 
> ./configure --prefix=/opt/x86/snmp --disable-applications
> --disable-manuals --disable-scripts --disable-mibs
> --disable-mib-loading --disable-des --disable-md5 --disable-snmpv3
> --disable-debugging --disable-privacy --disable-internal-md5
> --enable-mini-agent --disable-shared --enable-static
> --without-kmem-usage --with-copy-persistent-files="no"
> --with-default-snmp-version="2" --with-out-transports="TCP UDPIPv6
> TCPIPv6 Callback AAL5PVC IPX" --with-out-mib-modules="mibII snmpv3mibs
> ucd_snmp agent_mibs agentx notification target utilities"
> --with-out-security-modules="ksm" --without-openssl --without-krb5
> --without-rpm --without-opaque-special-types --without-libwrap
> --without-zlib --with-persistent-directory="/opt/x86/snmp"
> --with-sys-location="Softier Inc" --with-logfile="/opt/x86/snmp/log"
> --with-sys-contact="gxk" --disable-dependancy-tracking
> --without-gnu-ld --without-pic --with-mib-modules="ipstb"

Well, as a starting point, I'd suggest you work with a "normal"
configuration, rather than stripping out everything you don't need.
When you're sure you've got things working, *then* try building
the stripped down version.  But initially, I'd suggest trying:

   ./configure --prefix=/opt/x86/snmp  
               --with-persistent-directory="/opt/x86/snmp"
               --with-sys-location="Softier Inc"
               --with-logfile="/opt/x86/snmp/log"
               --with-sys-contact="gxk"
               --with-mib-modules="ipstb"


(though I'm not sure having prefix=persistent-directory is
 necessarily a good idea either).


> As you can see the last parameter is my MIB. It's compiled well. I
> create this MIB with mib2c.scalar.conf file.

Fair enough.
In which case, I'd suggest you have a look at the checklist given
in the FAQ entry:
        I've added my code to this template and it still
        doesn't work.  Why not?

If pressed, my immediate suspicion would be access control settings.
What *can* you see in the agent?


> So, on one linux i ran as root:
>     snmpd -f -C -c ./snmpd.conf -Lf ./log.log
> >From another call 
>     snmpget -c gxk -v 2c 192.168.2.24 ipstb

Errr.... I'd be very surprised if that worked anyway.
At the very least, you'd need an instance subidentifier (ipstb.0)
That's assuming that "ipstb" is an individual MIB (scalar) object,
rather than the root of a tree.

What object(s) are you trying to implement?


Dave



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to