Bluehost.com Web Hosting $6.95

RE: Can mib2c support more than one table in a MIB?

This is a discussion on RE: Can mib2c support more than one table in a MIB? within the SNMP Users forums, part of the Networking and Network Related category; Hi,=20 My experience with Mib2c is that you can use it one more then one table, but you'll ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-31-2005
Hurt, Paul
 
Posts: n/a
Default RE: Can mib2c support more than one table in a MIB?

Hi,=20
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=3D"+MY_MIB" mib2c -c mib2c.mfd.conf MyTable1
env MIBS=3D"+MY_MIB" mib2c -c mib2c.mfd.conf MyTable2
env MIBS=3D"+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: net-snmp-users-admin@lists.sourceforge.net
[mailto:net-snmp-users-admin@lists.sourceforge.net] 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...


<=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= 3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D>
<=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= 3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D>
<=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= 3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D>

[root@k2mtest test3]# env MIBS=3D"+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 =3D 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:
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

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

BB 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 10:10 AM.


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