Re: mib2c mfd for ifTable

2014-09-24 Thread Pranesh Kulkarni
Hi Kenneth, I could do both snmpget and snmpset . Thanks for your help Pranesh -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-th

Re: mib2c mfd for ifTable

2014-09-19 Thread Pranesh Kulkarni
Hi All , I have kept the function ifTable_container_load() in the function _ifTable_container_init() , the file name ifTable_interface.c . Now am getting the values for the index , I need to put for other values. Is it the right location to keep or i need to keep some where el

Re: mib2c

2013-05-22 Thread Leonard G
From: David Ganor To: 'Leonard G' ; net-snmp-users@lists.sourceforge.net Sent: Tuesday, May 21, 2013 4:16 AM Subject: RE: mib2c Hi Leonard, I had a similar issue with adding several tables from a newly MIB, which I've defined. I've solved it is the following manner; Note:

RE: mib2c

2013-05-21 Thread David Ganor
Hi Leonard, I had a similar issue with adding several tables from a newly MIB, which I've defined. I've solved it is the following manner; Note: Since you're trying to add only a single table, from a MIB, you might need to modify some of the steps below… 1. Place the auto-generated .c

Re: mib2c best configuration mode to access global functions

2013-01-07 Thread Nuno Magalhães
Thanks Dave, You made my day :-) static will do just fine. Regards, Nuno Magalhães. On 06-01-2013 18:47, Dave Shield wrote: > On 5 January 2013 18:10, Nuno Magalhães wrote: >> Here it goes. > Thanks for that. > >> In windows embedded code full compilation it doesn't happen. >> In linux debian d

Re: mib2c best configuration mode to access global functions

2013-01-06 Thread Dave Shield
On 5 January 2013 18:10, Nuno Magalhães wrote: > Here it goes. Thanks for that. > In windows embedded code full compilation it doesn't happen. > In linux debian dlmod (obu.so) I must declared it inline to proc_status not > return always zero. I'm not currently set up for compiling dynamically l

Re: mib2c best configuration mode to access global functions

2013-01-05 Thread Dave Shield
On 5 January 2013 12:14, Nuno Magalhães wrote: > It seems that normal global functions are not called since I put snmp logs > all over the global function and invoke it in the function handler and > nothing gets logged. > If I use the 'inline' keywork in the global function definition it gets > lo

Re: mib2c best configuration mode to access global functions

2013-01-05 Thread Nuno Magalhães
Hi Dave, It seems that normal global functions are not called since I put snmp logs all over the global function and invoke it in the function handler and nothing gets logged. If I use the 'inline' keywork in the global function definition it gets logged. As you're certainly more experienced in

Re: mib2c best configuration mode to access global functions

2013-01-05 Thread Dave Shield
On 5 January 2013 09:05, Nuno Magalhães wrote: > But why must it be declared as inline? Why must what be declared inline? What has that got to do with using global functions/variables? > Is there any limitation in global variables and function calls? > Otherwise the global function will return

Re: mib2c best configuration mode to access global functions

2013-01-05 Thread Nuno Magalhães
Hi Dave, But why must it be declared as inline? Is there any limitation in global variables and function calls? Otherwise the global function will return always 0 no matter what values is returned. Have you ever experienced the same? Regards, Nuno Magalhães. Em 04-01-2013 21:44, Dave Shield esc

Re: mib2c best configuration mode to access global functions

2013-01-04 Thread Dave Shield
On 4 January 2013 19:34, Nuno Magalhães wrote: > What's the configuration I should use, with the mib2c tool, to access > global functions. > For example for invoking unix shell commands with popen or system and > retrieving a value. There's no special configuration required for mib2c - just take

Re: mib2c default has no 'ifTable_cache_load()'

2012-04-19 Thread James Gosnell
Did you just tinker around until you got values? Did you use the dummy.conf file or did you create your own values? Did you create your own rows? Thank you for your response. On Wed, Apr 18, 2012 at 6:12 PM, Zlaja wrote: > that tutorial is out of date. you only have to modify > iftable_data_acce

Re: mib2c default has no 'ifTable_cache_load()'

2012-04-18 Thread Zlaja
that tutorial is out of date. you only have to modify iftable_data_access.c file, specifically load container function Zlatan S. On Apr 18, 2012, at 7:04 PM, James Gosnell wrote: > I ran `mib2c -c mib2c.mfd.conf ifTable` and used the default settings. Should > i have a `int ifTable_cache_load

Re: mib2c on entire MIB -- gluing the bits together

2012-02-10 Thread Dave Shield
On 10 February 2012 14:41, Chris Smith wrote: > What do I then need to do to glue the bits together into a working > subagent? a) Tweak the code that handles the 'initialize' calls, so that both init routines are invoked. (either by adding 'init_myTable' to the scalar initialisat

Re: mib2c -c mib2c.mfd.conf

2011-11-04 Thread Simon Chamlian
I installed libper-dev. So now, I did the following steps: ./configure --enable-embedded-perl --enable-shared cd perl perl Makefile.PL make It seems to be working. But when I do: make test I get lots of errors: Test Summary Report --- t/async.t (Wstat: 11 Tests: 3 Failed: 1)

Re: mib2c -c mib2c.mfd.conf

2011-11-03 Thread Dave Shield
On 3 November 2011 15:21, Simon Chamlian wrote: > What does mib2c do? It produces _template_ code for implementing a MIB module. You would take the generated code file, fill in the gaps, and compile it into the SNMP agent (either a native agent for the system you are developing on, or cross-compi

Re: mib2c -c mib2c.mfd.conf

2011-11-03 Thread Simon Chamlian
What does mib2c do? I can always install it on a host computer and run it. But eventually, I will need an application that returns values associated to my MIB OIDs. Is that done by modifying the SNMP agent daemon or I can have a different application interact with agent? The tutorial http://www.

Re: mib2c -c mib2c.mfd.conf

2011-11-03 Thread Dave Shield
On 31 October 2011 18:51, Simon Chamlian wrote: > I have an embedded board running Linux/net-snmp (TWR54418 from Freescale). > [root@M54418TWR snmp]# mib2c -c mib2c.mfd.conf > > ERROR: You don't have the SNMP perl module installed. Why do you need to create the MIB template code on the embedde

Re: mib2c -c mib2c.mfd.conf

2011-11-02 Thread Simon Chamlian
The problem is that the net-snmp is compiled in installed using *LTIB* (*Linux Target Image Builder*) , which build an image on an embedded target (cross compiles). Therefore, I don't have the folder net-snmp-5.7.pre1/perl available, nor have any compiler on the target board. Also, I have version

Re: mib2c -c mib2c.mfd.conf

2011-11-01 Thread Venki
Hi Simon, Please follow the following steps. [root@venkatesh perl]# cd net-snmp-5.7.pre1/perl [root@venkatesh perl]# make [root@venkatesh perl]# make install Please try this, Regards, Venki. Simon Chamlian wrote: Hi, I have an embedded board running Linux/net-snmp (TWR5

Re: mib2c -c mib2c.mfd.conf

2011-11-01 Thread Simon Chamlian
I also tried: [root@M54418TWR snmp]# snmpd -a -c snmpd.conf,snmp.conf -d -Lf log.txt -r [root@M54418TWR snmp]# cat log.txt /usr/share/snmp/snmpd.conf: line 37: Warning: Unknown tok

Re: mib2c config option

2011-09-12 Thread N. Karthikeyan
nt: Monday, September 12, 2011 2:43 AM Subject: Re: mib2c config option On 2 September 2011 19:13, N. Karthikeyan wrote: >     I created an executable which contains the mib2c generated code. > When I run that executable, it reports the following error. > > ./test_snmpd: error while lo

Re: mib2c config option

2011-09-12 Thread Dave Shield
On 2 September 2011 19:13, N. Karthikeyan wrote: >     I created an executable which contains the mib2c generated code. > When I run that executable, it reports the following error. > > ./test_snmpd: error while loading shared libraries: libssp.so.0: cannot open > shared object file: No such file

Re: mib2c config option

2011-09-02 Thread N. Karthikeyan
snmp-users@lists.sourceforge.net" Sent: Friday, September 2, 2011 3:14 AM Subject: Re: mib2c config option On 2 September 2011 08:56, Dheeraj Gautam wrote: > You need to use mib2c.scalar.conf as config file. That will generate template code to implement the scalar objects. For a template of routin

Re: mib2c config option

2011-09-02 Thread Dave Shield
On 2 September 2011 08:56, Dheeraj Gautam wrote: > You need to use mib2c.scalar.conf as config file. That will generate template code to implement the scalar objects. For a template of routines to generate the notifications, use mib2c.notify.conf There are a number of possible templates for handl

RE: mib2c config option

2011-09-02 Thread Dheeraj Gautam
You need to use mib2c.scalar.conf as config file. http://www.net-snmp.org/docs/man/mib2c.html -Dheeraj -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even bett

Re: mib2c result

2011-03-22 Thread Dave Shield
On 22 March 2011 12:33, Naama Bar Menachem wrote: > 1.   Why is there two instances of nsDemodEventsUtcSeconds Because the definition of nsDemodEventsUtcSeconds is "MAX-ACCESS =read-only" Index objects are meant to be defined as "not-accessible" (unless this is the only column in the table

Re: mib2c generates wrong code for textual conventions

2010-10-11 Thread Boris Zweimueller
perfect, thank you! Boris 2010/10/11 Dave Shield > On 11 October 2010 13:51, Boris Zweimueller > wrote: > > the generated c code for this object ist: > > > > /** Check the ranges of the passed value for legality */ > > if ( !(*val >= 54 && *val <= 54) || !(*val >= 65 && *val <= 65) ) >

Re: mib2c generates wrong code for textual conventions

2010-10-11 Thread Dave Shield
On 11 October 2010 13:51, Boris Zweimueller wrote: > the generated c code for this object ist: > >     /** Check the ranges of the passed value for legality */ >     if ( !(*val >= 54 && *val <= 54) || !(*val >= 65 && *val <= 65) ) >     { >         return SNMP_ERR_WRONGVALUE; >     } > > which yi

RE: mib2c does not like object syntax "IpAddress"

2010-09-23 Thread kavita raghunathan
3/10, anup.shan...@emc.com wrote: > From: anup.shan...@emc.com > Subject: RE: mib2c does not like object syntax "IpAddress" > To: kraghuna2...@yahoo.com, net-snmp-users@lists.sourceforge.net > Cc: net-snmp-cod...@lists.sourceforge.net > Date: Thursday, Septembe

RE: mib2c does not like object syntax "IpAddress"

2010-09-22 Thread anup.shankar
Try using iterate / table.conf file in mib2c , this works.. -Original Message- From: kavita raghunathan [mailto:kraghuna2...@yahoo.com] Sent: Thursday, September 23, 2010 2:07 AM To: net-snmp-users@lists.sourceforge.net Cc: net-snmp-cod...@lists.sourceforge.net Subject: mib2c does not lik

RE: mib2c generation of snmpNotifyFilterTable code

2010-01-13 Thread Lewis Adam-VNQM87
To: Lewis Adam-VNQM87 > Cc: net-snmp-users@lists.sourceforge.net > Subject: Re: mib2c generation of snmpNotifyFilterTable code > > 2010/1/13 Lewis Adam-VNQM87 : > > Okay, thanks again. I may well speak to the -coders. It > seems a shame > > to have gone to the effort of

Re: mib2c generation of snmpNotifyFilterTable code

2010-01-13 Thread Dave Shield
2010/1/13 Lewis Adam-VNQM87 : > Okay, thanks again. I may well speak to the -coders. It seems a shame to > have gone to the effort of creating scripts that cannot be re-run. Bear in mind that the MfD code structure is an order of magnitude more complete (if you ask Robert) / complicated (if you as

RE: mib2c generation of snmpNotifyFilterTable code

2010-01-13 Thread Lewis Adam-VNQM87
t: Wednesday, January 13, 2010 3:10 PM > To: Lewis Adam-VNQM87 > Cc: net-snmp-users@lists.sourceforge.net > Subject: Re: mib2c generation of snmpNotifyFilterTable code > > 2010/1/13 Lewis Adam-VNQM87 : > > Are the mib2c scripts purely for the benefit of creating new > >

Re: mib2c generation of snmpNotifyFilterTable code

2010-01-13 Thread Dave Shield
2010/1/13 Lewis Adam-VNQM87 : > Are the mib2c scripts purely for the benefit of creating > new user-defined tables? That's how I view them, yes. I seem to recall Robert had some method of re-running mib2c to update the standard structure of MfD-based MIB code. But I have no involvement with this

RE: mib2c generation of snmpNotifyFilterTable code

2010-01-13 Thread Lewis Adam-VNQM87
dnesday, January 13, 2010 1:43 PM > To: Lewis Adam-VNQM87 > Cc: net-snmp-users@lists.sourceforge.net > Subject: Re: mib2c generation of snmpNotifyFilterTable code > > 2010/1/13 Lewis Adam-VNQM87 : > > Looking at the files that combine to provide support for the > > snmpN

Re: mib2c generation of snmpNotifyFilterTable code

2010-01-13 Thread Dave Shield
2010/1/13 Lewis Adam-VNQM87 : > Looking at the files that combine to provide support for the > snmpNotifyFilterTable: > >  agent\mibgroup\notification\snmpNotifyFilterTable.c >  agent\mibgroup\notification\snmpNotifyFilterTable_data_access.c >  agent\mibgroup\notification\snmpNotifyFilterTable_inte

Re: mib2c not working, perl module perl/SNMP not installed correctly

2009-10-27 Thread maniraj . patri
Hi, I also faced the same problem in Fedora core 6. and solved it by setting the LD_LIBRARY_PATH as follows export LD_LIBRARY_PATH=/usr/local/lib As it is just a matter of setting LD_LIBRARY_PATH, I think it should work witha ll Unix based systems. Thanks, Maniraj Patri -- This message was s

Re: mib2c compilation issue

2009-07-03 Thread Dave Shield
2009/7/3 Jaikar Nalthooru : >  I am trying to compile the H.323 MIB file [snip] > But the generated files are not complete. > I got the MIB subtree without any variables What variables were you expecting to see? Have a proper look at the MIB you are working with. What management objects does i

Re: mib2c format

2009-06-04 Thread Dave Shield
2009/6/4 kusuma.bm : > i would like to know the mib2c command format that has been used to > generate the VACM MIBS that exposes API's like vacm_parse_group, > vacm_parse_access and vacm_parse_view The vacm_parse_xxx routines are hand coded, and weren't generated via mib2c.They are really con

Re: mib2c API style of TargetAddrTable.

2009-04-14 Thread Dave Shield
2009/4/14 kusuma.bm : > i would like which API style has been used to generate > snmpTargetAddrTable code (netsnmp-5.4.2.1) using mib2c compiler so that > i can use the same API style to generate code for snmpCommunityTable . That's probably a bad idea. The snmpTargetAddrTable implementation is re

Re: mib2c gives an error "you didn't give me a valid OID to start with.."

2009-03-24 Thread Pranesh Kulkarni
You have to set the environmental variable If it is bash shell, export MIBS=ALL If it is csh shell, setenv MIBS ALL On Wed, Mar 25, 2009 at 10:20 AM, Tanisha Kashyap < tanisha.kash...@aricent.com> wrote: > Hi, > > > > I am trying to generate the code using: mib2c -c mib2c.scalar

Re: mib2c without perl

2008-09-02 Thread Wes Hardaker
> On Tue, 02 Sep 2008 23:27:25 +0200, Thomas Anders <[EMAIL PROTECTED]> > said: >> Is it possible to run mib2c without perl modules installed? I get an >> error and haven't found a workaround. TA> No. mib2c is a Perl program that requires our Perl modules (see the FAQ). It should be pos

Re: mib2c without perl

2008-09-02 Thread Thomas Anders
dan anderson wrote: > Is it possible to run mib2c without perl modules installed? I get an > error and haven't found a workaround. No. mib2c is a Perl program that requires our Perl modules (see the FAQ). > Either way, is it possible to use the resulting .c and .h files > without the perl modules

Re: [mib2c .c code] code for MODE_SET_ACTION

2008-05-17 Thread Dave Shield
2008/5/15 CHAHIBI Samira <[EMAIL PROTECTED]>: > I have run mib2c and obtained my .c and .h files. I have one single RW > scalar variable named "id". Which mib2c template did you use? scalar or int_watch? Your requirements match the 'mib2c.int_watch.conf' template almost exactly. That will hand

Re: [mib2c .c code] code for MODE_SET_ACTION

2008-05-15 Thread Wes Hardaker
> On Thu, 15 May 2008 16:59:19 +, CHAHIBI Samira <[EMAIL PROTECTED]> > said: CS> Hi all, CS> I have run mib2c and obtained my .c and .h files. I have one single RW scalar variable named "id". I I have completed the MODE_GET case by giving the pointor and lenght of "id". The problem

Re: mib2c linker errors ifTable

2008-02-06 Thread Pranesh Kulkarni
Hi Dave, When I run my subagent as ... ./simpleTable -f -L -DsimpleTable -M localhost:1161 Its running correctly , and I am getting the values from snmpget and snmpwalk command. My next strep will be AgentX configuration. Thanks for your valuable help and its required in future also T

Re: mib2c linker errors ifTable

2008-02-06 Thread Dave Shield
On 05/02/2008, Pranesh Kulkarni <[EMAIL PROTECTED]> wrote: > So when I run the subagent, > ./simpleTable -f -L > Its saying > Warning: Failed to connect to the agentx master agent ([NIL]): > In my /usr/local/share/snmp , I have kept the line > master agentx Is that

Re: mib2c linker errors ifTable

2008-02-05 Thread Pranesh Kulkarni
It was library linking issue its resolved , Thanks Dave So when I run the subagent, ./simpleTable -f -L Its saying Warning: Failed to connect to the agentx master agent ([NIL]): In my /usr/local/share/snmp , I have kept the line master agentx Do we need anothe

Re: mib2c linker errors ifTable

2008-02-05 Thread Dave Shield
On 05/02/2008, Pranesh Kulkarni <[EMAIL PROTECTED]> wrote: > I created my module and generated using mib2c tool. > $ mib2c -c mib2c.mfd.conf simple-MIB::simpleTable Urkhh. That's one framework that I don't know much about. You may need to try asking Robert for help. (Which is best done on the pr

Re: mib2c linker errors ifTable

2008-02-04 Thread Pranesh Kulkarni
Hi , I want to have a subagent to master net-snmp agent. Dircectory structure is ~/net-snmp-5.4.1 and I have wriiten my mib module simple-MIB in /usr/local/share/snmp/mibs directory and checked with snmptranslate command. I am generating C files using mib2c tool in ~/simpleTable . I created

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 g

Re: mib2c linker errors ifTable

2008-02-01 Thread Pranesh Kulkarni
Hi With mib2c tool , I generated the code and and it corrected errors for table by assigning default values for integers 1 and string "abc" , and I did not write any code for doing get, get-next request . Just I wanted to make sure that make runs the clean and installs. For get-req , get-next-r

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 so

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-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: Unknow

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 or direct

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 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 -lnetsnmph

Re: mib2c linker errors ifTable

2008-01-31 Thread Pranesh Kulkarni
Hi Dave, OK I will go ahead with 5.4.1 version . I configured 5.2.4 as following steps 1)./configure --enable-embedded-perl --enable-shared --with-ldflags=-L/usr/lib64 2)make 3)make test 4)make install Then i created directory ifTable and using the

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 m

Re: mib2c - allocate and free memory question

2008-01-13 Thread Manfred Wassmann
On Sat, 12 Jan 2008, Andrey Kamchatnikov wrote: > 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 free

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

Re: mib2c-update: unable to merge automatically.

2008-01-08 Thread Paul Herring
On Jan 8, 2008 11:00 AM, Paul Herring <[EMAIL PROTECTED]> wrote: > 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

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 o

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

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 modifie

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, co

Re: mib2c error

2007-10-10 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 10/10

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:

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

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. >

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

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

2007-05-10 Thread bowmanchen
try "MIBS=+IEEE802dot11-MIB mib2c ieee802dot11". The result is fail for 5.3.1. BR, Bowman Chen - Original Message - From: "Dave Shield" <[EMAIL PROTECTED]> To: "bowmanchen" <[EMAIL PROTECTED]> Cc: Sent: Thursday, May 10, 2007 4:34

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-09 Thread bowmanchen
gt; To: "bowmanchen" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, May 09, 2007 9:15 PM Subject: Re: [mib2c, IEEE802dot110MIB] Using mib2c to generate code with IEEE802dot-MIB On 08/05/07, bowmanchen <[EMAIL PROTECTED]> wrote: I want to use IEEE802dot-MIB.txt. I have put it

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. > >

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 158

Re: Mib2c with mib2c.mfd.conf

2007-04-04 Thread Joao Miguel Ferreira
hecked the code but it should be ok ! I'm using net-snmp 5.2.3 on Debian jmf > Thanks, > > Augusto. > > > - Original Message - > From: "Thomas Anders" <[EMAIL PROTECTED]> > To: "Augusto Salazar" <[EMAIL PROTECTED]> >

Re: Mib2c with mib2c.mfd.conf

2007-04-03 Thread Augusto Salazar
Hi, Has abyone been able to use this command with net-snmp for the bridge-mib? Thanks, Augusto. - Original Message - From: "Thomas Anders" <[EMAIL PROTECTED]> To: "Augusto Salazar" <[EMAIL PROTECTED]> Cc: Sent: Monday, April 02, 2007 2:45 PM Subjec

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: Sent: Monday, April 02, 2007 2:45 PM Subject: Re: Mib2c

Re: Mib2c with mib2c.mfd.conf

2007-04-01 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 (thomas

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 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 for compiling MIB

2007-03-22 Thread Adam Bell
I could not find something like this either. I wrote a bash script and named every scalar, table, and trap so I could run them all. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Madan Mohan Sent: Thursday, March 22, 2007 2:04 AM To: net-snmp-users@lists

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 usage on tables (bad tables!)

2007-03-07 Thread Joao Miguel Ferreira
Hi Dave, On Wed, 2007-03-07 at 09:03 +, Dave Shield wrote: > On 06/03/07, Joao Miguel Ferreira <[EMAIL PROTECTED]> wrote: > > what is the best approach when trying to implement the agent extension > > for tables with complex indexes like multi-valued indexes. > About this piece of code gene

Re: mib2c usage on tables (bad tables!)

2007-03-07 Thread Joao Miguel Ferreira
Thanks Dave, I'll check it out. joao jmf On Wed, 2007-03-07 at 09:03 +, Dave Shield wrote: > On 06/03/07, Joao Miguel Ferreira <[EMAIL PROTECTED]> wrote: > > what is the best approach when trying to implement the agent extension > > for tables with complex indexes like multi-valued index

Re: mib2c usage on tables (bad tables!)

2007-03-07 Thread Dave Shield
On 06/03/07, Joao Miguel Ferreira <[EMAIL PROTECTED]> wrote: > what is the best approach when trying to implement the agent extension > for tables with complex indexes like multi-valued indexes. It doesn't matter. Almost all of the table helpers can handle complex indexing requirements. If you loo

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 f

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: > 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. You'll have to ask Robert about

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 with t

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. >

Re: mib2c question.

2006-03-02 Thread Dave Shield
On Fri, 2006-02-24 at 12:03 +0100, Palmentieri Nunzio wrote: > I wrote a MIB with several table objects. > How can I generate code for it? > I think I have to run mib2c on both the tables, and then compile the > code generated, as follows: > > mib2c peProcessTable > mib2c peObjectTable That's ce

Re: mib2c question.

2006-02-24 Thread Raffles
I don't know about tables specifically, but in general the other way (i.e. apart from using a sub-agent) is to build your stuff into the agent directly. You compile your MIB definition files using an appropriate mib2c config file and then drop the output files in the agents/mibgroup folder in th

RE: mib2c config file format - testing read-only

2006-01-11 Thread Finking, Robert
to:[EMAIL PROTECTED] On Behalf > Of Makavy, Erez (Erez) > Sent: 11 January 2006 11:18 > To: Finking, Robert > Cc: net-snmp-users@lists.sourceforge.net > Subject: RE: mib2c config file format - testing read-only > > > > I think this manual could be what

Re: mib2c config file format - testing read-only

2006-01-11 Thread Peter Martin
Is the mib2c config file format published anywhere, Nope. Possibly in the darker recesses of Wes' subconscious, but certainly nowhere useful. Try man mib2c.conf Pete --- This SF.net email is sponsored by: Splunk Inc. Do you grep through l

RE: mib2c config file format - testing read-only

2006-01-11 Thread Makavy, Erez (Erez)
-snmp-users@lists.sourceforge.net Subject: Re: mib2c config file format - testing read-only On Fri, 2005-12-23 at 10:41 +, Finking, Robert wrote: > Is the mib2c config file format published anywhere, Nope. Possibly in the darker recesses of Wes' subconscious, but certainly nowhere useful

Re: mib2c config file format - testing read-only

2006-01-11 Thread Dave Shield
On Fri, 2005-12-23 at 10:41 +, Finking, Robert wrote: > Is the mib2c config file format published anywhere, Nope. Possibly in the darker recesses of Wes' subconscious, but certainly nowhere useful. > is it just a case of looking at the mib2c source code? That's what the rest of us have had

  1   2   >