Based on Adam's suggestion, I added (by hand) a line to run
init_drsProductName (my first Dell-defined variable) to
agent/mibgroup/mib_module_inits.h and did make && make install. My error
message has now changed:

DELL-CMC-MIB::drsProductName = No Such Instance currently exists at this
OID (was No such object)

I've also added Dell's IANA number --with-enterprise-oid="674", but that
didn't seem to help. When I added the --enable-mib-config-* entries to
./configure, it seemed to accept my MIB.  


--
Don Wilde                           512-723-8255
Dell, Incorporated         Austin, Texas, USA


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, April 11, 2007 3: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.

------------------------------------------------------------------------
-
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

-------------------------------------------------------------------------
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

Reply via email to