Hi, 
My experience with Mib2c is that you can use it one more then one table,
but you'll end up with several very similar c files.  The "secret" is to
run mib2c multiple times.  For instance, if your mib defines 3 tables
(MyTable1, MyTable2, and MyTable3) then you can do
env MIBS="+MY_MIB" mib2c -c mib2c.mfd.conf MyTable1
env MIBS="+MY_MIB" mib2c -c mib2c.mfd.conf MyTable2
env MIBS="+MY_MIB" mib2c -c mib2c.mfd.conf MyTable3

It may also be worth while to play with mib2c without the -c option
(mib2c MyTable1), this gives you a prompted user interface where you can
see what other options you have for implementing the requested part of
your mib.

However I'm still fairly new to Net-SNMP, and there may be a better way
of doing things.

Thanks,
Paul

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ???
Sent: Wednesday, August 31, 2005 3:20 AM
To: net-snmp-users@lists.sourceforge.net
Subject: Can mib2c support more than one table in a MIB?

When I use mib2c.mfd.conf I get the problem like the following.

Is it impossible to support more than one table in a MIB?

If impossible, should I use mib2c.mfd.conf by each tables and modify
source files?

Please help... Help will be appreciated...


<=======================================================================
============================================>
<=======================================================================
============================================>
<=======================================================================
============================================>

[EMAIL PROTECTED] test3]# env MIBS="+ISM-SAMPLE-MIB" mib2c -c mib2c.mfd.conf
ipsRule This module can only be used with tables, not branches or entire
MIBs.
Please specify and OID that is a table. (OID: ipsRule)
/usr/local/share/snmp//mib2c.mfd.conf:25 contained a line that started
with a @ but did not match any mib2c configuratio n tokens.
(maybe missing the trailing @?)
writing to ipsRule.h
| +-> Processing table hostTable
writing to -
There are no defaults for hostTable. Would you like to

  1) Accept hard-coded defaults
  2) Set defaults now [DEFAULT]

Select your choice : 1
ans = 1
writing to default-table-hostTable.m2d
writing to default-node-zoneHost.m2d
writing to default-node-hostName.m2d
writing to default-node-ipAddr.m2d
writing to default-node-hostAccess.m2d
writing to default-node-hostDesc.m2d
writing to default-node-hostStatus.m2d
writing to default-node-indxHost.m2d
| +-> Processing table networkTable
Can't find a configuration file called default-table-networkTable.m2d
(referenced at /usr/local/share/snmp/mib2c-data/m2c_setup_table.m2i:54)
I looked in:
  .
  /usr/local/share/snmp/
  /usr/local/share/snmp/mib2c-data
  ./mib2c-conf.d


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices Agile & Plan-Driven Development * Managing Projects & Teams *
Testing & QA Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
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


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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

Reply via email to