Hi all. I'm trying to generate a simple table with mib2c.iterate.conf or
mib2c.create-dataset.conf but it generates only few lines of code like this:
---------------------------------------------------------------------------
/*
* Note: this file originally auto-generated by mib2c using
* : mib2c.create-dataset.conf,v 5.3 2002/12/05 00:29:45 hardaker Exp $
*/
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
#include <net-snmp/agent/net-snmp-agent-includes.h>
#include "tabelaMaterias.h"
/** Initializes the tabelaMaterias module */
void
init_tabelaMaterias(void)
{
/* here we initialize all the tables we're planning on supporting */
}
---------------------------------------------------------------------------
Using mib2c.scalar.conf generates the scalars without problem. I used another
MIB defined by me (GPS-MIB) and the code of the table was generated without
problem by mib2c.iterate.conf or mib2c.create-dataset. I exported MIBS with
ALL and put the my MIB in the correct directory. My MIB is defined like this:
------------------------------------------------------------------------
MIB-TESTE DEFINITIONS ::= BEGIN
--
-- Example MIB objects for agent module example implementations
--
IMPORTS
netSnmpExamples FROM NET-SNMP-EXAMPLES-MIB
MODULE-IDENTITY, OBJECT-TYPE, Integer32 FROM SNMPv2-SMI
MODULE-COMPLIANCE, OBJECT-GROUP FROM SNMPv2-CONF;
mibTeste MODULE-IDENTITY
LAST-UPDATED "200202060000Z"
ORGANIZATION "PUC-RIO"
CONTACT-INFO
"Jordan Janeiro
email: [EMAIL PROTECTED]"
DESCRIPTION
""
REVISION "200202060000Z"
DESCRIPTION
""
::= { netSnmpExamples 5 }
--
-- top level structure
--
testeEscalares OBJECT IDENTIFIER ::= { mibTeste 1 }
testeTabelas OBJECT IDENTIFIER ::= { mibTeste 2 }
testeNotificacoes OBJECT IDENTIFIER ::= { mibTeste 3 }
--
-- Example scalars
--
examploInteiro OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-write
STATUS current
DESCRIPTION
""
DEFVAL { 42 }
::= { testeEscalares 1 }
exemploSoneca OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-write
STATUS current
DESCRIPTION
""
DEFVAL { 1 }
::= { testeEscalares 2 }
--
-- Example Tables
--
tabelaMaterias OBJECT-TYPE
SYNTAX SEQUENCE OF EntradaTabela
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
""
::= { testeEscalares 3 }
entradaTabela OBJECT-TYPE
SYNTAX EntradaTabela
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
""
INDEX { professor }
::= {tabelaMaterias 1 }
EntradaTabela ::= SEQUENCE {
professor OCTET STRING,
materia1 OCTET STRING,
materia2 OCTET STRING
}
professor OBJECT-TYPE
SYNTAX OCTET STRING (SIZE(1..32))
MAX-ACCESS read-write
STATUS current
DESCRIPTION
""
::= { entradaTabela 1 }
materia1 OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-create
STATUS current
DESCRIPTION
""
::= { entradaTabela 2 }
materia2 OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-create
STATUS current
DESCRIPTION
""
::= { entradaTabela 3 }
END
------------------------------------------------------------------------
Am I doing something wrong? Is there another configuration file that I have to
create? Can anybody help me please?
Jordan Janeiro
TelemÃdia - PUC-Rio
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders