On 1 Feb 2008 08:55:24 -, maruthi prasad [EMAIL PROTECTED] wrote:
I have developed a private mib which contains scalar objects. When I try to
compile using mib2c, it is not generating the skelton .c and .h files.
What command are you running?
What output does it produce?
Dave
On 01/02/2008, Pranesh Kulkarni [EMAIL PROTECTED] wrote:
Using mib2c tool , I generated code for the scalar and table and then
configured , make and make install . Then I ran snmpd
if I issue snmpget it replies,
No Such Instance currently exists at this OID
You've probably done
Hi ,
I am going through how to make subagent . I have written mib(xyz) and loaded
/usr/local/share/snmp/mibs and tested with snmptranslate.
Using mib2c tool , I generated code for the scalar and table and then
configured , make and make install . Then I ran snmpd
if I issue snmpget it replies
On 01/02/2008, Pranesh Kulkarni [EMAIL PROTECTED] wrote:
May be this sounding simple to you , please help me in this regard,
It's not a matter of being simple or complex.
The problem is that you are not giving us sufficient
information to work with.
You say that:
Using mib2c tool , I
Hi All,
I have installed net-snmp 5.2.4 package. I want to write subagent for my
mib . So I was going through tutorials of mib2c with ifTable.
I am able to generate source code and modified according tutorials page
, but while linking its giving error
Thanks,
Prak
here is the snap
On 31/01/2008, Pranesh Kulkarni [EMAIL PROTECTED] wrote:
I have installed net-snmp 5.2.4 package.
That's a fairly old version of the code.
If you are installing things yourself, then we'd suggest you work
with the most recent release (5.4.1).
I am able to generate source code and
the command mib2c
mib2c -c mib2c.mfd.conf ifTable
With the makefile of Subagent, these are the libraries linking,
-L/usr/lib64 -L/usr/local/lib -lnetsnmpmibs -lnetsnmpagent
-lnetsnmphelpers -lnetsnmp -ldl -lcrypto -lm -Wl,-E
-Wl,-rpath,/usr/lib64/perl5/5.8.5
On 31/01/2008, Pranesh Kulkarni [EMAIL PROTECTED] wrote:
With the makefile of Subagent, these are the libraries linking,
-L/usr/lib64 -L/usr/local/lib -lnetsnmpmibs -lnetsnmpagent
-lnetsnmphelpers -lnetsnmp
Try using
-L/usr/lib64 -lnetsnmpagent
Hi Dave,
From which relative path we should issue command mib2c for generating
code for subagent .
Suppose say ,
i have installed net-snmp package in /home/xyz/net-
snmp-5.4.1 , from which directory I should issue mib2 command.
Thanks,
Pranesh
On Jan 31, 2008 4:22
Hi Dave,
I have installed net-snmp 5.4.1 and generated subagent code ifTable
as given in tutorial with mib2c
Iam getting symbol error . I have uninstalled other net-snmp versions.
# ./ifTable
Error: Failed to connect to the agentx master agent: Unknown host (No such
file
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Pranesh Kulkarni
Sent: Thursday, January 31, 2008 4:54 AM
Hi Dave,
The net-snmp-users list is more commonly known as Dave and Friends.
# ./ifTable
Error: Failed to connect to the agentx master agent: Unknown
host
Hi,
I have a question regarding mib2c tool.
I have created a file with this tool (C code template) and it calls malloc
function (see below):
(* myDetail_val_ptr ) = malloc(mydata.Detail_len*
sizeof(mydata.Detail[0]));
But I could find in net-snmp library where this memory is freed.
I'll
On 08/01/2008, Paul Herring [EMAIL PROTECTED] wrote:
Deleting .M2C-UPDATE-MERGE-FAILED in the root of the build tree (and
all the .directories mib2c-update creates) /appears/ to have resolved
my problem.
That's fine.
This is exactly the effect of choosing re-run within the script.
I still
On Jan 9, 2008 9:10 AM, Dave Shield [EMAIL PROTECTED] wrote:
On 08/01/2008, Paul Herring [EMAIL PROTECTED] wrote:
Deleting .M2C-UPDATE-MERGE-FAILED in the root of the build tree (and
all the .directories mib2c-update creates) /appears/ to have resolved
my problem.
That's fine
On 07/01/2008, Paul Herring [EMAIL PROTECTED] wrote:
What happens if you create a completely new directory,
copy your current code file there, and run mib2c-update
in that new directory?
Do you get an error or not?
If so, what is the output?
It appears to have worked. Well
On Jan 8, 2008 10:56 AM, Dave Shield [EMAIL PROTECTED] wrote:
But Robert is the expert here.
Ok - thanks for the help anyway.
What you've said amounts to what I /think/ I found out by trying to
reverse engineer the script myself - but would like to know
causes/solutions rather than relying on
myself - but would like to know
causes/solutions rather than relying on my rather incomplete
understanding of bash ;)
Well having got a bit sick of the errors, I persevered a bit more with
the script.
Deleting .M2C-UPDATE-MERGE-FAILED in the root of the build tree (and
all the .directories mib2c
I'm starting to get this 'error' cropping up on my files when using
mib2c-update on my source files (it's previously had no problem
merging MIB changes into my modified sources.):
---8
# SNMPD:updating .o files for ndCCUGPRMCGroup
export UPDATE_MIB2C_OPTS=-q -I mib2c_config
On 07/01/2008, Paul Herring [EMAIL PROTECTED] wrote:
I'm starting to get this 'error' cropping up on my files when using
mib2c-update on my source files (it's previously had no problem
merging MIB changes into my modified sources.):
What happens if you create a completely new directory,
copy
On Jan 7, 2008 4:41 PM, Dave Shield [EMAIL PROTECTED] wrote:
On 07/01/2008, Paul Herring [EMAIL PROTECTED] wrote:
I'm starting to get this 'error' cropping up on my files when using
mib2c-update on my source files (it's previously had no problem
merging MIB changes into my modified sources
Hi,
I am quite new to here as well as to the SNMP protocol. I am implementing
a snmp agent and I've spent some time reading the online tutuorial. A
question is I can understand this library has implemented useful helper
features like mib2c to generate template code when converting MIB files
of data that mib2c can think about: tables, and
scalars. If you have a lot of scalars in your MIBs, those are
frequently easier to write and need less template code actually. You
can, however, run mib2c -c mib2c.scalar.conf SCALAROID in order to
have it generate scalar code.
XP For example I have
tables but
XP also many other data types. Is it still possible that I can make use
of
XP the template generation feature somehow and which conf file I should
XP use?
There are only two types of data that mib2c can think about: tables, and
scalars. If you have a lot of scalars in your MIBs
| | | |-Table4
| | |
| | |OB5
|
| Or similar
| So i want mib2c to generate code at OB1.
| OB = object indentifier
| Table = object type # it has table entry and column name
`
I need some help How to create Makefile
, [EMAIL PROTECTED] wrote:]
| I was looking into
| http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_MIB_Module
| http://www.net-snmp.org/tutorial/tutorial-5/toolkit/mfd/
| After mib2c using mib2c.mfd.conf, do I need to add code into master agent
| so that it knows the new modules? mib2c
Hi ,
I saw
http://net-snmp.sourceforge.net/tutorial/tutorial-5/toolkit/mfd/if-mib/ifTable/index.html
link
Can you suggest me some other mfd to generate code using mib2c from top
level of table?
my mib is like
OB1
|---OB2
| ---Table1
Hi guys
I'm working on Windows Vista.
I installed net-snmp-5.4.1-3.win32.exe from Net-SNMP site.
Seems to work fine.
Running mib2c required perl SNMP module.
I tried to get the module in the following ways:
* ActivePerl 5.8.8 build 822 ppm - failed because Crypt-DES is
missing
On 08/10/2007, Yogesh Ankolekar [EMAIL PROTECTED] wrote:
I installed net-snmp-5.3.1 using the option
--with-perl-modules=/usr/bin/perl.
That doesn't feel right.
What happens if you try --with-perl-modules ?
When I try to use mib2c, it always complains me as below.
ERROR: You don't
Hi All,
I installed net-snmp-5.3.1 using the option
--with-perl-modules=/usr/bin/perl.
There was no error in configure, make or make install steps.
When I try to use mib2c, it always complains me as below.
ERROR: You don't have the SNMP perl module installed. Please obtain
Hi All,
I installed net-snmp-5.3.1 using the option
--with-perl-modules=/usr/bin/perl.
There was no error in configure, make or make install steps.
When I try to use mib2c, it always complains me as below.
ERROR: You don't have the SNMP perl module installed. Please obtain
this by getting
I generated code for a MIB using mib2c.iterate_access.conf, which created
several files including myMib.c myMib.h myMib_access.c myMib_access.h
(several more)
where source files depend on other source files.
I need to create a shared object for this so that i can load the module
dynamically.
On 27/09/2007, Jelena Savic [EMAIL PROTECTED] wrote:
I need to create a shared object for this so that i can load the module
dynamically. Is there an example of a makefile that does this?
Please see the tutorial
Writing a Dynamically Loadable Object
on the project web site.
Dave
as related
scalar objects in the same subtree. The actual implementation is done
using the mib2c tool as well as hand coding. C files are generated along
with header files on using the mib2c. The core work of implementing the
module is done in the C code file. Currently, the 802.11 MIB contains
198
On 05/09/07, Salai, Sivakkani Thirunavukkarasu [EMAIL PROTECTED] wrote:
I get the following error when I run mib2c program:
(I issued the command as: mib2c WMAN-DEV-MIB)
You must give mib2c the name of a MIB *object*, not a MIB module/file.
Please see the FAQ entry:
Mib2c complains
On 06/09/07, Salai, Sivakkani Thirunavukkarasu [EMAIL PROTECTED] wrote:
Whenever I want to add a new MIB to the agent, according to the
documentation I re-run the configure and specify the new MIB. Is that
the only way to add MIBS to the agent? Are there any other way to add
the MIB to the
Hi All,
I get the following error when I run mib2c program: (I issued the
command as: mib2c WMAN-DEV-MIB)
Cannot find module (=+WMAN-DEV-MIB) : At line 0 in (none) .
This error message is followed with You didn't give mib2c a valid
OID to start with .
I am
Did you try
env MIBS=+WMAN-DEV-MIB mib2c
?
On 9/5/07, Salai, Sivakkani Thirunavukkarasu [EMAIL PROTECTED] wrote:
Hi All,
I get the following error when I run mib2c program: (I issued the
command as: mib2c WMAN-DEV-MIB)
Cannot find module (=+WMAN-DEV-MIB) : At line 0
(i.e. the parent of the scalar
or notification objects that you want to handle), then this will generate a
single code file covering all of these objects.
If you want to implement code to cover scalar objects *and* tables *and*
notifications, then see the FAQ entry
How can I have mib2c generate
Hi Manu,nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; use this command
mib2c -c mib2c.scalar.conf (MIB name)::(object name)
this command is for scalar for notifications use notifi.conf like wise you will
have to generate code for all objects individually. I don\'t know if we can
generate at once.
On Mon
Hi all,
I'm trying to generate the code templates with mib2c to write a MIB module. I
always get the error You didn't give mib2c a valid OID to start with For
testing purposes I tired to run
snmptranslate -m +IEC-62439-2-MIB -IR MergeLayerInfo
and get the similiar error message Unknown
On 14/08/07, Patrik Nagel [EMAIL PROTECTED] wrote:
For testing purposes I tired to run
snmptranslate -m +IEC-62439-2-MIB -IR MergeLayerInfo
and get the similiar error message Unknown object identifier:
MergeLayerInfo.
The definition 'MergeLayerInfo' is defining the *syntax* for a MIB
Dave Shield wrote:
The definition 'MergeLayerInfo' is defining the *syntax* for a MIB bject,
not the actual MIB object itself. Try
snmptranslate -m +IEC-62439-2-MIB -IR tMergeLayerInterFace
The snmp translation works after syntax correction in the MIB and using the
command above.
I'm
On 14/08/07, Patrik Nagel [EMAIL PROTECTED] wrote:
I'm not convinced that this is a valid MIB definition, though.
SMI (as used to define MIB modules) is not the same as full ASN.1,
and doesn't support SEQUENCEs, except as part of defining a table.
I tried to rewrite this MIB (see below) by
Hi all,
I've created .c and .h file using mib2c.
Now i have to modify .
c file in order to make agent capable in reading date and time from my
pc (this is an example).
Where and how i set instruction to do it in .c
file?
Can someone give me a VALID LINK to a tutorial explaining how to
modify .c
@lists.sourceforge.net
Sent: Wednesday, July 11, 2007 1:00 PM
Subject: How to modify C file created by mib2c?
Hi all,
I've created .c and .h file using mib2c.
Now i have to modify .
c file in order to make agent capable in reading date and time from my
pc (this is an example).
Where and how i set
Hi all,
I installed perl and net-snmp, while doing mib2c for code generation, I
got the error like
# perl mib2c ssg
ERROR: You don't have the SNMP perl module installed. Please obtain
this by getting the latest source release of the net-snmp toolkit from
http://www.net-snmp.org
Hi,
I have a mib where scalars and tables are present together. When i try
to generate a .c .h file using mib2c tool for the Net-SNMP style code
then it first detects that i have scalars and asking me whether to generate
the code for scalars. I gave the option of generating generic scalar
On 21/06/07, Karthikeyan Ramasubramanian [EMAIL PROTECTED] wrote:
How can i have the code
generated for both scalars and tables in the same file?
Please see the FAQ entry:
How can I have mib2c generate code for both scalars and tables?
http://www.net-snmp.org/wiki/index.php
On 23/05/07, Awadhesh Kumar [EMAIL PROTECTED] wrote:
I am using mib2c application to develop the agent application for table.
Which mib2c framework are you using?
There are various options, and the code produced looks very different
in each case.
The fragment you posted isn't really sufficient
Hi Dave,
I am using net-snmp 5.4.1 pre version, I am using mib2c configuration file
mib2c.array-user.conf to implement the snmp table. Well I have tried it
again as following
void init_gsomcGrpCfgTable(void)
{ netsnmp_index index;
oid index_oids[2];
index.oids = index_oids;
index.len
Hi,
I am using mib2c application to develop the agent application for table.
This table has composite index (gsomcGscId and gsomcGtsChassisId). I am
using following procedure to create the SNMP row
void init_gsomcGrpCfgTable(void){
netsnmp_index index;
oid index_oid[2
On 10/05/07, bowmanchen [EMAIL PROTECTED] wrote:
Step7: $ mib2c IEEE802dot11-MIB::ieee802dot11
For 5.4 is OK.
For 5.3.1 is Fail
Do you get the same results when running
MIBS=+IEEE802dot11-MIB
Hi Dave:
I forget to tell you .
I use under commande instead of MIBS=+IEEE802dot11-MIB mib2c
ieee802dot11.
export MIBS=ALL
mib2c IEEE802dot11-MIB::ieee802dot11
I think it is same.
But I also have try MIBS
On 08/05/07, bowmanchen [EMAIL PROTECTED] wrote:
I want to use IEEE802dot-MIB.txt. I have put it in
/usr/local/share/snmp/mibs .
My problem is
Using mib2c to generate code by NET-SNMP 5.4 is OK.
Using mib2c to generate code by NET-SNMP 5.3.1 is fail.
Why I
IEEE802dot11-MIB.txt
/usr/local/share/snmp/mibs/
Step6: $ snmptranslate IEEE802dot11-MIB::ieee802dot11
IEEE802dot11-MIB::ieee802dot11
Step7: $ mib2c IEEE802dot11-MIB::ieee802dot11
For 5.4 is OK
Dear all:
I encounter some problem. Please give me some advasie. I had search
net-snnmp mail archive that can't found relate same issue with my problem.
I want to use IEEE802dot-MIB.txt. I have put it in
/usr/local/share/snmp/mibs .
My problem is
Using mib2c to generate
Thanks Dave,
I ran my sub agent through GDB and it seems program falls at memcpy() from
/lib/libc.so.6(get SIGSEGV signal) which gets call by memdup and memdup by
net_snmp_table_set_add_default_row(table_set=0x869f138,column=13760608,type =
Variable type is not variable) at
On 25/04/07, Reza Salehi [EMAIL PROTECTED] wrote:
netsnmp_table_set_multi_add_default_row(table_set,
COLUMN_DOT3CITINDEX, 0, NULL, 0,
COLUMN_DOT3CITCHANNELNUMBER, ASN_INTEGER, 0, NULL, 0,
COLUMN_DOT3CITDATARATE, ASN_INTEGER, 0, NULL, 0,
COLUMN_DOT3CITTXPOWER, ASN_INTEGER, 0, NULL, 0,
0);
On 23/04/07, Reza Salehi [EMAIL PROTECTED] wrote:
I did that modification but when I compile and run the code as subagent I
am getting the
Segmentation Fault Error.
I just did very simple modification in the the data_set.c example. This
error happens right before the
Would have to see the MIB you wrote.
_
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Reza
Salehi
Sent: Friday, April 20, 2007 5:00 PM
To: SNMP FORUM
Subject: Fwd: RE: about mib2c
Thanks Adam,
Even mib2c.iterate_access.conf makes empty c file. I ran this command
()
function.
At below you can see the code.
I appreciate if you can give me a hint on this problem.
I can successfully run and compile data_set.c
Regards,
Reza
* Note: this file originally auto-generated by mib2c using
* : mib2c.create-dataset.conf,v 5.4 2004/02/02 19:06:53
On 22/04/07, Reza Salehi [EMAIL PROTECTED] wrote:
I used mib2c.create-dataset.conf to create a C file. I want to register
Integers in each column .In example data-set.c it used
net_snmp_set_row_column(row,column,type, char* value,
size_t length) function for setting the column for each
you tell mib2c to load your MIB file?
What was the exact command(s) you ran?
Dave
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits
(from IF-MIB.txt) and it worked fine.My table is exactly like
ifTable just the name is different.I don't know why it works with ifTable
but not working with myTable.
How did you tell mib2c to load your MIB file?
What was the exact command(s) you ran?
Dave
---End Message
Hi All,
I am trying to run mib2c using create-dataset.conf. In return it creates 2
files (mymibTable.c mymibTable.h) .But in .C file it is just a empty
subroutine that looks like this:
init_mymibTable(void)
{
// here we initialize all the table
}
Shouldn't it create
it creates. MFD is HUGE, I
use mib2c.iterate_access.conf and get something in between
_
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Reza
Salehi
Sent: Friday, April 20, 2007 2:12 PM
To: SNMP FORUM
Subject: about mib2c
Hi All,
I am trying to run mib2c using create
While creating a c file using the mib2c , using the dataset option,
It creates all the indexes in the table as well,
Instead of creating the indexes in the netsnmp_table_set_add_indexes
alone.
It creates it over there , and in the
netsnmp_table_set_multi_add_default_row.
This prevents from
On Wed, 2007-04-04 at 08:47 +0800, Augusto Salazar wrote:
Hi,
Has abyone been able to use this command with net-snmp for the bridge-mib?
Hello Augusto,
I just tried: mib2c dot1dStpPortTable
and it seems to work (I've chosen the mfd option !!!)
I haven't checked the code but it should
Augusto Salazar wrote:
/usr/local/share/snmp//mib2c.mfd.conf:25 contained a line that started
with a @ but did not match any mib2c configuration tokens.
(maybe missing the trailing @?)
[...]
Thanks for the answer, I am working in net-snmp-5.4.
It's a bug in 5.4, fixed in SVN Rev 15885
: Mib2c with mib2c.mfd.conf
Augusto Salazar wrote:
/usr/local/share/snmp//mib2c.mfd.conf:25 contained a line that started
with a @ but did not match any mib2c configuration tokens.
(maybe missing the trailing @?)
What exact Net-SNMP version/package is this?
Have you tried with 5.4
Augusto Salazar wrote:
/usr/local/share/snmp//mib2c.mfd.conf:25 contained a line that started with a
@ but did not match any mib2c configuration tokens.
(maybe missing the trailing @?)
What exact Net-SNMP version/package is this?
Have you tried with 5.4?
+Thomas
--
Thomas Anders
Hi Thomas,
Thanks for the answer, I am working in net-snmp-5.4.
BR.
Augusto Salazar.
- Original Message -
From: Thomas Anders [EMAIL PROTECTED]
To: Augusto Salazar [EMAIL PROTECTED]
Cc: net-snmp-users@lists.sourceforge.net
Sent: Monday, April 02, 2007 2:45 PM
Subject: Re: Mib2c
Hi All,
I am getting the following from the mi2c:
[EMAIL PROTECTED] own]# mib2c -c mib2c.mfd.conf dot1dBridge
This module can only be used with tables, not branches or entire MIBs.
Please specify and OID that is a table. (OID: dot1dBridge)
/usr/local/share/snmp//mib2c.mfd.conf:25 contained
Hi All,
I am getting the following from the mi2c:
[EMAIL PROTECTED] own]# mib2c -c mib2c.mfd.conf dot1dBridge
This module can only be used with tables, not branches or entire MIBs.
Please specify and OID that is a table. (OID: dot1dBridge)
/usr/local/share/snmp//mib2c.mfd.conf:25 contained
On 07/03/07, Joao Miguel Ferreira [EMAIL PROTECTED] wrote:
About this piece of code generated by mib2c what is the usage/meaning of
min_column and max_column ??
'min_column' is the column number of the first (accessible) column in the
table, and 'max_column' is the column number of the last
Got it.
I thought min_column and max_column were indexes for the rows and not
for the columns.
Now it is clear. Thanks
jmf
On Tue, 2007-03-27 at 14:38 +0100, Dave Shield wrote:
On 07/03/07, Joao Miguel Ferreira [EMAIL PROTECTED] wrote:
About this piece of code generated by mib2c what
On 22/03/07, Madan Mohan [EMAIL PROTECTED] wrote:
Is there any way we can compile the entire MIB through
mib2C compiler in a single shot?
For what purpose?
What exactly are you trying to do?
Dave
-
Take Surveys
@lists.sourceforge.net
Subject: MIB2C for compiling MIB
Hi all,
Is there any way we can compile the entire MIB through mib2C
compiler in a single shot?
I know that we can have a MIBNODE as input for mib2C compiler. But just
wondering if any body did something like what I asked above.
Thanks
Hi all,
Is there any way we can compile the entire MIB through mib2C compiler
in a single shot?
I know that we can have a MIBNODE as input for mib2C compiler. But just
wondering if any body did something like what I asked above.
Thanks in advance,
Madan
,
ASN_INTEGER, 0);
In fact, you should find that the mib2c template will include this
registration for you automatically.
There's no real difference between a single-indexed table,
and one with multiple indexes. Referencing an individual
row is a little more complex perhaps
)
netsnmp_table_helper_add_indexes(table_info,
ASN_INTEGER,
ASN_OCTET_STR,
ASN_INTEGER, 0);
In fact, you should find that the mib2c template will include this
registration for you automatically.
There's no real difference
that will automatically generate all the
C code for the MIB structures and the MIB retrieval functions to fill
the structures.
It might be possible to construct a mib2c template for this, but I'm
not sure whether it's worth it.
If the processing for each MIB is more-or-less the same, then a
single
by mib2c what is the usage/meaning of
min_column and max_column ??
This is part of the table initialization code Am I compromising the
future possible growth of the table or this is only for initialization
purposes ?
Put it another way: if I simply do not initialize it (ex: max=0, min=0)
would
Hello all,
what is the best approach when trying to implement the agent extension
for tables with complex indexes like multi-valued indexes.
For example this table has an index of 3 values (one number, one string
and one number)
What is the extension approach ? My past experience is limited
to generate the folowing files
using the mib2c application:-
omsEquipmentNEInfo-README-FIRST.txt
omsEquipmentNEInfo.c
omsEquipmentNEInfo.h
omsEquipmentNEInfo_data_access.c
omsEquipmentNEInfo_data_access.h
omsEquipmentNEInfo_data_get.c
omsEquipmentNEInfo_data_get.h
omsEquipmentNEInfo_data_set.c
To: net-snmp-users@lists.sourceforge.net
Subject: problem using mib2c
Hello all,
I tried using mib2c for code generation. I get the following error
ERROR: You don't have the SNMP perl module installed. Please obtain
this by getting the latest source release of the net-snmp toolkit from
http
I think I found some resolution to this.
To build mib2c you must have perl modules turned on WITHIN the net-snmp
build and have it INSTALLED.
Here is the procedure that worked for me using v5.2.3.
Run configure (see config for mib2c below)
Make
Make install
Cd perl
Perl Makefile.PL -NET
Hello all,
I tried using mib2c for code generation. I get the following error
ERROR: You don't have the SNMP perl module installed. Please obtain
this by getting the latest source release of the net-snmp toolkit from
http://www.net-snmp.org/download/ . Once you download the source and
unpack
Reposting a bounced message from yesterday
_
From: Adam Bell
Sent: Monday, February 19, 2007 4:27 PM
To: [EMAIL PROTECTED]
Subject: perl and mib2c
I am trying to build mib2c and I am getting an error OID 5.1 not found.
I did find many references to this in the archives
i want to generete c and h file for my WMAN-IF-MIB.txt file..i already
installed nert-snmp 5.3.0.1 and already put one copy my mib file in to
usr/local/share/snmp/mibs..also EXPORT=Mibs and MIBS=ALL done...already
SNMP/perl also installed..using perl MAKEFILE.PL,make,make install..
but still it
Check ur LD_LIBRARY_PATH properly...
source ur .bashrc once again
-Original Message-
From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED]
Sent: Tue 1/30/2007 4:49 PM
To: Net-snmp-users@lists.sourceforge.net
Subject: mib2c query
i want to generete c and h file for my WMAN-IF-MIB.txt
On 05/01/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
could I know the detail mechnism about this code or how to modify them for
us?
That's a somewhat vague question.
Could you perhaps give a bit more detail about exactly what you
are struggling with?
There are basically two bits of the code
hi,
could I know the detail mechnism about this code or how to modify them for us?
thanks
Sun
想免费获得高速稳定的3G邮箱吗? www.126.com
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and
Hello everyone,
I encountered a MIB2C issue while I managed to generate C code
against a MIBS with more than one tables, Please shed some light on
this issue
MIBS:
Under my network tree I have more than two tables like
network(3)
|
|
+--netIFTable(2
On 13/10/06, Clement Hsu [EMAIL PROTECTED] wrote:
when I try to translate netSnmpExamples(from NET-SNMP-EXAMPLES-MIB)
into .c and .h , the error message is
showen as following:
..not having a valid OID.
What is the exact command that you are using?
so , i modified the related
is
NET-SNMP-EXAMPLES-MIB::netSnmpExamples
That means, the agent still can find
out netSnmpExamples, somehow, the mib2c still failed. So , I try to write netSnmpExamples Object Identifier::={netSnmp 2} into its imported MIB, NET-SNMP-MIB, to make sure the snmp agent can find the valid oid
from NET
On 13/10/06, Clement Hsu [EMAIL PROTECTED] wrote:
export MIBS=ALL
mib2c netSnmpExamples
Try
mib2c NET-SNMP-EXAMPLES-MIB::netSnmpExamples
What does that say?
Snmptranslate –IR netSnmpExamples
The result is
NET-SNMP-EXAMPLES-MIB::netSnmpExamples
That means, the agent still
Dear all: I am Clement. I have a problem about mib2c. my version is net-snmp 5.3.1, and when I try to translate netSnmpExamples(from NET-SNMP-EXAMPLES-MIB) into .c and .h , the error message is showen as following:
..not having a valid OID. so , i modified the related OID, such like
On 09/08/06, Boris von Alten Blaskowitz [EMAIL PROTECTED] wrote:
I have a big mib-file with all kind of types(table, int, ...) and like
to make only one SO-library with all handlers inside. Is this possible
in general?
Yes.
Is there one mib2c configfile what I can use?
No.
Or do
Hi Dave,
thanks for the fast answer. One more question, I tried to run mib2c with
configuration mfd of root node in my mib file and it started with the
first table, but then it stoped and I had just the headerfile. My
question now is, can I use my root node and once run mfd and the also
201 - 300 of 455 matches
Mail list logo