RE: Compiled variable code in net-snmp-5.4

This is a discussion on RE: Compiled variable code in net-snmp-5.4 within the SNMP Users forums, part of the Networking and Network Related category; Based on Adam's suggestion, I added (by hand) a line to run init_drsProductName (my first Dell-defined variable) to ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2007
 
Posts: n/a
Default RE: Compiled variable code in net-snmp-5.4

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: net-snmp-users-bounces@lists.sourceforge.net
[mailto:net-snmp-users-bounces@lists.sourceforge.net] On Behalf Of
Donald_Wilde@Dell.com
Sent: Wednesday, April 11, 2007 3:15 PM
To: abell@safenet-inc.com
Cc: net-snmp-users@lists.sourceforge.net
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:abell@safenet-inc.com]
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: net-snmp-users-bounces@lists.sourceforge.net
[mailto:net-snmp-users-bounces@lists.sourceforge.net] On Behalf Of
Donald_Wilde@Dell.com
Sent: Wednesday, April 11, 2007 2:39 PM
To: net-snmp-users@lists.sourceforge.net
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?p...orge&CID=DEVDE
V
_______________________________________________
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/...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?p...orge&CID=DEVDE
V
_______________________________________________
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/...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?p...rge&CID=DEVDEV
_______________________________________________
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/...net-snmp-users
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:05 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0