Re: Compliling MIB with mib2c

2008-02-01 Thread Dave Shield
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

Re: mib2c linker errors ifTable

2008-02-01 Thread Dave Shield
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

Re: mib2c linker errors ifTable

2008-02-01 Thread Pranesh Kulkarni
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

Re: mib2c linker errors ifTable

2008-02-01 Thread Dave Shield
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

mib2c linker errors ifTable

2008-01-31 Thread Pranesh Kulkarni
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

Re: mib2c linker errors ifTable

2008-01-31 Thread Dave Shield
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

Re: mib2c linker errors ifTable

2008-01-31 Thread Pranesh Kulkarni
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

Re: mib2c linker errors ifTable

2008-01-31 Thread Dave Shield
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

Re: mib2c linker errors ifTable

2008-01-31 Thread Pranesh Kulkarni
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

Re: mib2c linker errors ifTable

2008-01-31 Thread Pranesh Kulkarni
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

RE: mib2c linker errors ifTable

2008-01-31 Thread Mike Ayers
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

mib2c - allocate and free memory question

2008-01-12 Thread Andrey Kamchatnikov
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

Re: mib2c-update: unable to merge automatically.

2008-01-09 Thread Dave Shield
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

Re: mib2c-update: unable to merge automatically.

2008-01-09 Thread Paul Herring
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

Re: mib2c-update: unable to merge automatically.

2008-01-08 Thread Dave Shield
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

Re: mib2c-update: unable to merge automatically.

2008-01-08 Thread Paul Herring
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

Re: mib2c-update: unable to merge automatically.

2008-01-08 Thread Paul Herring
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

mib2c-update: unable to merge automatically.

2008-01-07 Thread Paul Herring
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

Re: mib2c-update: unable to merge automatically.

2008-01-07 Thread Dave Shield
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

Re: mib2c-update: unable to merge automatically.

2008-01-07 Thread Paul Herring
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

question regarding how to use mib2c

2007-12-18 Thread Xuan Pan
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

Re: question regarding how to use mib2c

2007-12-18 Thread Wes Hardaker
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

Re: question regarding how to use mib2c

2007-12-18 Thread Xuan Pan
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

Re: How to generate code from top of mib using mib2c

2007-12-12 Thread Sharad Chandra
| | | |-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

Re: [Tutorials] after running mib2c with mib2c.mfd.conf and configure, wha t's next?

2007-12-12 Thread Sharad Chandra
, [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

How to generate code from top of mib using mib2c

2007-12-11 Thread Sharad Chandra
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

problem running mib2c on Windows Vista

2007-11-13 Thread Rotem Tzuk
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

Re: mib2c error

2007-10-09 Thread Dave Shield
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

mib2c error

2007-10-08 Thread Yogesh A
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

mib2c error

2007-10-08 Thread Yogesh Ankolekar
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

compiling code generated by mib2c

2007-09-28 Thread Jelena Savic
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.

Re: compiling code generated by mib2c

2007-09-28 Thread Dave Shield
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

Which configuration file should be used with mib2c ???

2007-09-17 Thread dhannya.chandran
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

Re: Help with mib2c

2007-09-06 Thread Dave Shield
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

Re: Help with mib2c

2007-09-06 Thread Dave Shield
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

Help with mib2c

2007-09-05 Thread Salai, Sivakkani Thirunavukkarasu
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

Re: Help with mib2c

2007-09-05 Thread Lucian Romi
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

Re: Re :Regarding Generating source code with mib2c

2007-08-20 Thread Dave Shield
(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

Re :Regarding Generating source code with mib2c

2007-08-19 Thread vishal_nitr
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

mib2c: invalid OID

2007-08-14 Thread Patrik Nagel
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

Re: mib2c: invalid OID

2007-08-14 Thread Dave Shield
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

Re: mib2c: invalid OID

2007-08-14 Thread Patrik Nagel
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

Re: mib2c: invalid OID

2007-08-14 Thread Dave Shield
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

How to modify C file created by mib2c?

2007-07-11 Thread [EMAIL PROTECTED]
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

Re: How to modify C file created by mib2c?

2007-07-11 Thread taner memetali
@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

mib2c

2007-07-09 Thread Theja Babu
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

Using mib2c

2007-06-21 Thread Karthikeyan Ramasubramanian
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

Re: Using mib2c

2007-06-21 Thread Dave Shield
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

Re: composite index creation in mib2c generated code

2007-06-06 Thread Dave Shield
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

Re: composite index creation in mib2c generated code

2007-06-06 Thread Awadhesh Kumar
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

composite index creation in mib2c generated code

2007-05-22 Thread Awadhesh Kumar
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

Re: [mib2c, IEEE802dot110MIB] Using mib2c to generate code with IEEE802dot-MIB

2007-05-10 Thread Dave Shield
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

Re: [mib2c, IEEE802dot110MIB] Using mib2c to generate code with IEEE802dot-MIB

2007-05-10 Thread bowmanchen
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

Re: [mib2c, IEEE802dot110MIB] Using mib2c to generate code with IEEE802dot-MIB

2007-05-09 Thread Dave Shield
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

Re: [mib2c, IEEE802dot110MIB] Using mib2c to generate code with IEEE802dot-MIB

2007-05-09 Thread bowmanchen
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

[mib2c, IEEE802dot110MIB] Using mib2c to generate code with IEEE802dot-MIB

2007-05-08 Thread bowmanchen
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

Fwd: Re: Re: Re: RE: about mib2c

2007-04-25 Thread Reza Salehi
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

Re: Re: Re: Re: RE: about mib2c

2007-04-25 Thread Dave Shield
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);

Re: Re: Re: RE: about mib2c

2007-04-24 Thread Dave Shield
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

RE: RE: about mib2c

2007-04-23 Thread Adam Bell
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

Fwd: Re: Re: RE: about mib2c

2007-04-23 Thread Reza Salehi
() 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

Re: Re: RE: about mib2c

2007-04-22 Thread Dave Shield
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

Re: RE: about mib2c

2007-04-21 Thread Dave Shield
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

Fwd: Re: RE: about mib2c

2007-04-21 Thread Reza Salehi
(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

about mib2c

2007-04-20 Thread Reza Salehi
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

Fwd: RE: about mib2c

2007-04-20 Thread Reza Salehi
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

a problem in mib2c

2007-04-16 Thread Porat, Dan
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

Re: Mib2c with mib2c.mfd.conf

2007-04-04 Thread Joao Miguel Ferreira
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

Re: Mib2c with mib2c.mfd.conf

2007-04-04 Thread Thomas Anders
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

Re: Mib2c with mib2c.mfd.conf

2007-04-03 Thread Augusto Salazar
: 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

Re: Mib2c with mib2c.mfd.conf

2007-04-02 Thread Thomas Anders
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

Re: Mib2c with mib2c.mfd.conf

2007-04-02 Thread Augusto Salazar
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

Mib2c with mib2c.mfd.conf

2007-04-01 Thread Augusto Salazar
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

Mib2c with mib2c.mfd.conf (this may be the second mail)

2007-04-01 Thread Augusto Salazar
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

Re: mib2c usage on tables (bad tables!)

2007-03-27 Thread Dave Shield
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

Re: mib2c usage on tables (bad tables!)

2007-03-27 Thread Joao Miguel Ferreira
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

Re: MIB2C for compiling MIB

2007-03-22 Thread Dave Shield
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

RE: MIB2C for compiling MIB

2007-03-22 Thread Adam Bell
@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

MIB2C for compiling MIB

2007-03-21 Thread Madan Mohan
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

Re: mib2c usage on tables (bad tables!)

2007-03-07 Thread Dave Shield
, 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

Re: mib2c usage on tables (bad tables!)

2007-03-07 Thread Joao Miguel Ferreira
) 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

Re: Can mib2c be used for developing client applications, not agent applications

2007-03-07 Thread Dave Shield
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

Re: mib2c usage on tables (bad tables!)

2007-03-07 Thread Joao Miguel Ferreira
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

mib2c usage on tables (bad tables!)

2007-03-06 Thread Joao Miguel Ferreira
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

Can mib2c be used for developing client applications, not agent applications

2007-03-05 Thread Andrew Walker (CV/ETL)
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

RE: problem using mib2c

2007-02-22 Thread Adam Bell
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

RE: perl and mib2c

2007-02-21 Thread Adam Bell
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

problem using mib2c

2007-02-20 Thread anand anand
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

FW: perl and mib2c

2007-02-20 Thread Adam Bell
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

mib2c query

2007-01-30 Thread [EMAIL PROTECTED]
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

RE: mib2c query

2007-01-30 Thread vijaya.dlakshmi
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

Re: ask about souce code generated with mib2c .iterate.conf

2007-01-15 Thread Dave Shield
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

ask about souce code generated with mib2c .iterate.conf

2007-01-07 Thread 112hwei
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

MIB2C Issue

2006-11-13 Thread Hai Wang (汪海)
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

Re: About mib2c

2006-10-13 Thread Dave Shield
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

Re:About mib2c

2006-10-13 Thread Clement Hsu
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

Re: About mib2c

2006-10-13 Thread Dave Shield
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

About mib2c

2006-10-12 Thread Clement Hsu
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

Re: mib2c - More the one node and type in the Mib File

2006-08-09 Thread Dave Shield
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

Re: mib2c - More the one node and type in the Mib File

2006-08-09 Thread Boris von Alten Blaskowitz
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

<    1   2   3   4   5   >