Hi Leonard,
I had a similar issue with adding several tables from a newly MIB, which I've
defined.
I've solved it is the following manner; Note: Since you're trying to add only a
single table, from a MIB, you might need to modify some of the steps below…
1. Place the auto-generated .c and .h files in
agent/mibgroups/entity-mib/entAliasMappingTable
2. Create a file: agent/mibgroups/entity-mib/entAliasMappingTable.h that
has the following line:
/*
* module to include the modules
*/
config_require(entity-mib/entAliasMappingTable/entAliasMappingTable)
3. Create another file: agent/mibgroups/entity-mib.h that has the
following lines:
/*
* module to include the modules
*/
config_require(entity-mib/entAliasMappingTable)
config_add_mib(ENTITY-MIB)
4. Now run the ./configure
HTH,
David Ganor
From: Leonard G [mailto:ked3...@yahoo.com]
Sent: Tuesday, May 14, 2013 6:46 PM
To: net-snmp-users@lists.sourceforge.net
Subject: mib2c
Hi,
I am new to Net-SNMP so please excuse me is the question is somewhat simple.
I am trying to add the ENTITY MIB code to the agent. I have no problems with
the scalars, but here is what happens when I add a table( below it is
entAliasMappingTable but the same happens for every table in the MIB):
env MIBS=”+ENTITY-MIB” mib2c –c mib2c.mfd.conf entAliasMappingTable
A bunch of .c and .h is generated and I copy them into …/agent/mibgroup dir.
Run ./configure –with-mib-modules=entAliasMappingTable
And get an error:
Mib module “entAliasMappingTable” requires module
“ENTITY-MIB/entAliasMappingTable/entAliasMappingTable_interface” but
ENTITY-MIB/entAliasMappingTable/entAliasMappingTable_interface.h or
ENTITY-MIB/entAliasMappingTable/entAliasMappingTable_interface.c could not be
found in ./agent/mibgroup
But the files entAliasMappingTable_interface.c and
entAliasMappingTable_interface.h were generated and are in mibgroup.
What am I doing wrong?
Thanks,
lg
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
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