After a bunch of messing around, here is what I did
use --with-mib-module=xxx in configure just as you did.
Then create agent/mibgroup/dellmib directory and agent/mibgroup/dellmib.h
put all your mib2c created code files in dellmib
In dellmib.h add lines for every file compiled within the dir dellmib
config_require(dellmib/filename.c)
config_add_mib(DELL-CMC-MIB)
Run make clean and configure.
This causes configure to place the proper init calls into the
mib_modules_inits.h (not mib_module_includes.h) - my mistake.
Hope this helps.
Adam
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 11, 2007 4:15 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: Compiled variable code in net-snmp-5.4
Hi, Adam -
Thanks for the suggestion!
It is not listed.
'mib_module_includes.h' has /*#include "mibgroup/DELL-CMC-MIB.h"*/
... in it.
Strange. Is the configure fooked here?
./configure --with-mib-modules="DELL-CMC-MIB"
--with-default-snmp-version="2" --with-sys-contact="root@"
--with-sys-location="Unknown" --with-logfile="/var/log/snmp.log"
--with-persistent-directory="/var/net-snmp"
I do see my drs* functrions when grepping DELL-CMC-MIB.o and utilk_funcs.o.
--
Don Wilde 512-723-8255
Dell, Incorporated Austin, Texas, USA
-----Original Message-----
From: Adam Bell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 11, 2007 3:06 PM
To: Wilde, Donald
Subject: RE: Compiled variable code in net-snmp-5.4
Check agent/mibgroup/mib_module_inits.h - see if you init() routines are
listed to be called.
Without this the handler is not registered.
configure makes this happen for the listed mib modules, odd if it missing
since the code is compiled and linked in, one would think all is well.
I added a file.h that lists the file to be compiled in agent/mibgroup/file.h
(this is a new mib module)
Adam
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, April 11, 2007 2:39 PM
To: [EMAIL PROTECTED]
Subject: Compiled variable code in net-snmp-5.4
Good gentlebeings -
I am having difficulty recognizing my enterprise-specific variables with
net-snmp-5.4.
My system is RHEL4u4 Linux.
First off, I have verified that my var handlers are being compiled using
nm /usr/local/lib/libnetsnmpmibs* | grep handle_drs
I can access all system-related objects using snmpwalk and snmpget.
My snmp.conf has 'mibs +DELL-CMC-MIB'
My snmpd.conf has 'rocommunity mystring'
The snmpd -d shows communication in both directions.
I've tried various combinations of the other four variables from the
supplied example snmpd.conf file.
When I try to access my variables, I get
# snmpget -v 2c -c mystring localhost drsProductName
DELL-CMC-MIB::drsProductName = No such object available on this agent at
this OID
I am not seeing my init_ or handle_ debugging code get called, and I am not
seeing my stuff in NET-SNMP-AGENT-MIB::nsModuleTable.
NET-SNMP-MIB::nsModuleTable does not exist.
Please, what silly | stupid | undocumented thing am I missing?
Thanks in advance!
--
Don Wilde 512-723-8255
Dell, Incorporated Austin, Texas, USA
------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's
Techsay panel and you'll get the chance to share your opinions on IT &
business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
The information contained in this electronic mail transmission may be
privileged and confidential, and therefore, protected from disclosure.
If you have received this communication in error, please notify us
immediately by replying to this message and deleting it from your computer
without copying or disclosing it.
The information contained in this electronic mail transmission may be
privileged and confidential, and therefore, protected from disclosure. If you
have received this communication in error, please notify us immediately by
replying to this message and deleting it from your computer without copying or
disclosing it.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users