Minor typo in mib2c-update man page

2019-02-19 Thread Kole Swesey
Hello, I hope I am sending this to the write mailing list, but the current version of the mib2c-update man page has a typo in it, where 'mib2c-updaterc' is spelled 'mib2c-udpaterc'. Thanks, -- Sincerely, Kole Swesey *Iowa State University | *Computer Science *Informati

Mib2c not generating type for RowStatus Object

2018-05-07 Thread Kalenscher, Dan
current DESCRIPTION "Column Description" ::= { ActiveLogicalPositionEntry 2 } When running Mib2c it generates the following definition: #define ALPROWSTATUS 2 {AL

RE: Installing net-snmp-5.7.3 and mib2c on CentOS

2018-04-11 Thread Kalenscher, Dan
urceforge.net Subject: RE: Installing net-snmp-5.7.3 and mib2c on CentOS Might have narrowed down the issue. Seems like my make install failed for the perl module, running the perl install manually and did a make test got the output: Can't load '../blib/arch/auto/NetSNMP/default_store/de

RE: Installing net-snmp-5.7.3 and mib2c on CentOS

2018-04-11 Thread Kalenscher, Dan
ner [mailto:fen...@gmail.com] Sent: Wednesday, April 11, 2018 4:25 PM To: Kalenscher, Dan (US Person) Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Installing net-snmp-5.7.3 and mib2c on CentOS On Wed, Apr 11, 2018 at 3:07 PM, Kalenscher, Dan mailto:dkale...@harris.com>> wrote: I am wor

Re: Installing net-snmp-5.7.3 and mib2c on CentOS

2018-04-11 Thread Bill Fenner
On Wed, Apr 11, 2018 at 3:07 PM, Kalenscher, Dan wrote: > I am working on a server with CentOS 7 and I am building net-snmp agents > with custom MIBs and therefore need mib2c. The yum repos with my CentOS > build only have: > > > yum list net-snmp > > Loaded plugins: f

Installing net-snmp-5.7.3 and mib2c on CentOS

2018-04-11 Thread Kalenscher, Dan
I know there are a number of threads detailing installation instructions, but I cannot seem to find a definitive answer to my issue here. I am working on a server with CentOS 7 and I am building net-snmp agents with custom MIBs and therefore need mib2c. The yum repos with my CentOS build only

use of various SET macros in mib2c generated files

2017-05-22 Thread deepak . sachan deepak . sachan
Hi There are various SET macros like MODE_SET_RESERVE1, MODE_SET_RESERVE2,MODE_SET_UNDO in my generated file . I have implemented only MODE_SET_COMMIT for setinng values . What is use of others??. Are they helpful to set values permanently.?? Thanks in advance.

5.7.2: Problem in ifTable.h created with mib2c

2017-03-30 Thread Zvi Vered
Hello, I ran: mib2c -c mib2c.mfd.conf ifTable I think (not sure) that the file ifTable.h has an error: ... config_add_mib(IF-MIB) config_require(IF-MIB/ifTable/ifTable_interface) config_require(IF-MIB/ifTable/ifTable_data_access) config_require(IF-MIB/ifTable/ifTable_data_get) config_require(IF

mib2c databas access

2015-02-10 Thread Mattias Barthel
Hi, I am going to create mib tables the are populated from a database. Would the iterate config style be the best fitted to use from mib2c? Thanks! Mattias -- Avis de confidentialité Les informations contenues dans le présent message et dans toute pièce qui lui est jointe sont

RE: query in mib2c

2014-11-25 Thread Robson, Alan
Hi Janki Did MIB2C also create any files for you that ended with the words: …_data_get.c or …_data_access.c ? I ask because when I ran MIB2C it generated these files to give me an opportunity to write functions that would be called when the SNMP agent wanted to fetch a value to return to the

Fwd: query in mib2c

2014-11-25 Thread Janki Chhatbar
Hi I am working on net-snmp since past few days. I want lldpLocChassisId from Q-BRIDGE-MIB. I have added the mib and able to translate the OIDs. Now I want to do get. I did mib2c -c mib2c.scalar.conf lldpdLocalSystemData. lldpLocSystemData.c and lldpLocSystemData.h files are generated in the

query in mib2c

2014-11-25 Thread Janki Chhatbar
Hi I am working on net-snmp since past few days. I want lldpLocChassisId from Q-BRIDGE-MIB. I have added the mib and able to translate the OIDs. Now I want to do get. I did mib2c -c mib2c.scalar.conf lldpdLocalSystemData. Janki Chhatbar M.Tech (Embedded Systems) Nirma University (+91

Re: using Mib2c on an entire MIB, not individual MIB objects

2014-10-21 Thread Ali Azar
Could someone with the knowledge please reply? Thanks! On 20 October 2014 17:35, Ali Azar wrote: > I have a mib file which has many tables. > > I have used mib2c to generate code for each of the tables separately in > the following fashion > > mib2c -c someconfigFile tab

using Mib2c on an entire MIB, not individual MIB objects

2014-10-20 Thread Ali Azar
I have a mib file which has many tables. I have used mib2c to generate code for each of the tables separately in the following fashion mib2c -c someconfigFile tablename1 mib2c -c someconfigFile tablename2 mib2c -c someconfigFile tablename3 ... etc I am not aware if there is a way that I could

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
else ? Pranesh On Thu, Sep 18, 2014 at 11:48 AM, Pranesh Kulkarni wrote: > > Hi All, >> >> I used mib2c compiler for generating mfd option for ifTable >> >> I am not getting the values for snmpwalk >> >> #snmpwalk -v 2c -c public localhost ifTable >&g

mib2c mfd for ifTable

2014-09-17 Thread Pranesh Kulkarni
Hi All, I used mib2c compiler for generating mfd option for ifTable I am not getting the values for snmpwalk #snmpwalk -v 2c -c public localhost ifTable IF-MIB::ifTable = No Such Object available on this agent at this OID I have correctly configured config file. running the master agent as

mib2c compilation issue .

2014-07-14 Thread timingsrc src
Hello, mib2c throwing compilation error , when i compile with --with-mib-module=mibII/interfaces, we have our own mibII/XYZinterfaces.c module, which i wanted to include with other mib modules. May i know how to remove 'if-mib/data_access/interface' module and add mibII/interface mib

License of mib2c output

2014-05-20 Thread Christopher Nelson
We've recently used mib2c to create a subagent for another open source project (hostapd). We'd like to give that subagent to the other project but can't find a clear statement of license for the mib2c output. Can anyone on this list provide an authoritative statement about what

Re: scalars and mib2c for perl

2014-01-06 Thread Michael Schwartzkopff
Am Montag, 6. Januar 2014, 18:15:50 schrieb Michael Schwartzkopff: > Hi, > > when I enter > > # mib2c -c mib2c.perl.conf myOID > > node code is generated, but the part of the scalars is missing. tables are > ok, but no scalars are defined. Not in he oidfunc hash nor

scalars and mib2c for perl

2014-01-06 Thread Michael Schwartzkopff
Hi, when I enter # mib2c -c mib2c.perl.conf myOID node code is generated, but the part of the scalars is missing. tables are ok, but no scalars are defined. Not in he oidfunc hash nor in the skel.pl output. It looks as is the scalars are never read into the $scalar variable. Is this a bug

Mib2c generated code for table setting.

2013-06-29 Thread Amit Zur
Hello, I'm using net-snmp v5.7.2 and the mib2c tool. When I'm trying to set and created values for table I defined, I got error that the set operation had failed. After investigation I found out that in each table, which had been defined I see in the xxxTable_interfac

Re: mib2c

2013-05-22 Thread Leonard G
Hi David, Thanks for your email. Unfortunately the result was the same as before. But I found a simple way to avoid it. Just run plain vanilla mib2c w/o -c <...> and it produces just 2 files. I then insert my code into .c file. Thanks a lot again, lg

RE: mib2c

2013-05-21 Thread David Ganor
G [mailto:ked3...@yahoo.com] Sent: Tuesday, May 14, 2013 6:46 PM To: net-snmp-users@lists.sourceforge.net Subject: mib2c Hi, I am new to Net-SNMP so please excuse me is the question is somewhat simple. I am trying to add the ENTITY MIB code to the agent. I have no problems with the scalars, b

mib2c

2013-05-14 Thread Leonard G
): env MIBS=”+ENTITY-MIB” mib2c –c mib2c.mfd.conf entAliasMappingTable A bunch of .c and .h is generated and I copy them into …/agent/mibgroup dir. Run ./configure –with-mib-modules=entAliasMappingTable And get an error: Mib module “entAliasMappingTable” requires module “ENTITY-MIB

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
escreveu: > 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'

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

mib2c best configuration mode to access global functions

2013-01-04 Thread Nuno Magalhães
Hi, 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. Can someone point me sample code. Thanks, Nuno Maga

mib2c: Use of uninitialized value for read-write table elements

2012-08-21 Thread Klemen Sladic
Hi. I have added a new table with read-write elements into my MIB and mib2c reports the following "errors" : $ env MIBS="+./MY-MIB.mib" mib2c -c mib2c.mfd.conf myTable ... ... writing to defaults/table-myTable.m2d Starting MFD code generation... writing to myTable.h |

Re: question on mib2c, tables, etc....follow up

2012-05-29 Thread Michael Dorin
Dave, Thanks for your reply. I must admit I did find the bug...and should have posted it..but was a bit ashamed since I had been doing the nasty habit of ignoring warnings! My variables table need something bigger than variable4...once I changed it to variable7 and REGISTER_MIBS in the init functi

Re: question on mib2c, tables, etc....follow up

2012-05-29 Thread Dave Shield
On 18 May 2012 14:57, Michael Dorin wrote: > My question should have been more specific..the Table function is > invoked when a get request comes in... > and UPSALARMID  is built...but it never comes back for the remaining > columns.(At least that is how it seems to me)... > I thought it would com

re: question on mib2c, tables, etc....follow up

2012-05-18 Thread Michael Dorin
My question should have been more specific..the Table function is invoked when a get request comes in... and UPSALARMID is built...but it never comes back for the remaining columns.(At least that is how it seems to me)...I thought it would come back and ask for UPSALARMDESCR...but it does not seem

SNMP-Agent with mib2c

2012-05-18 Thread Murugayen M
After Creating MIB2C where i modifed the logic of c file pls help me for simple example with print snmpwalk with hostname display -- Thanks & Regards, Murugayen M -- Live Security Virtual Conference Exclusive live e

question on mib2c, tables, etc.

2012-05-17 Thread Michael Dorin
I am trying to make a subagent for the UPS-MIB. I generate the code with mib2c -c mib2c.conf upsMIB I select 1) ucd-snmp style code I get upsMIB.c I am trying to fill in var_upsAlarmTable, but am running into lots of little errors. Does anybody havae any example code I might be able to review

using external data source with a structure with mib2c

2012-05-03 Thread James Gosnell
I have separate program that will be serializing a struct and sending it to my mib2c generated agent. Since my structure is already in the MIB, I would think I could generate my C Struct for my separate program. Is there a best practice for this or is there a way you would recommend this to be

Re: mib2c default has no 'ifTable_cache_load()'

2012-04-19 Thread James Gosnell
ify > 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(netsnmp_container * container)` in >

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

mib2c default has no 'ifTable_cache_load()'

2012-04-18 Thread James Gosnell
I ran `mib2c -c mib2c.mfd.conf ifTable` and used the default settings. Should i have a `int ifTable_cache_load(netsnmp_container * container)` in my code? It's not there. I'm following instructions from: http://www.net-snmp.org/wiki/index.php/MFD:ifTable:Data_Access. I'm trying to

Re: Running mib2c

2012-04-03 Thread Dave Shield
On 3 April 2012 15:38, Jaques Arantes wrote: > Isn't there any "nestnmp" or "snmp" package you can install from standard > repositories? > > Have you tried `yum net-snmp`? > > http://www.it-slav.net/blogs/2008/11/11/install-and-configure-snmp-on-rhel-or-

Re: Running mib2c

2012-04-03 Thread Jaques Arantes
> Hello, > > I am running CentOS release 6.1 linux distribution. How do I install and > execute mib2c on my distro? > > Thanks, > > Z > > > > -- > Better than sec? Nothing is better t

Running mib2c

2012-04-03 Thread Zlatan Sadibasic
Hello, I am running CentOS release 6.1 linux distribution. How do I install and execute mib2c on my distro? Thanks, Z -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try

Re: Table mib2c script only generate init_mpbcRMHOSU(void) with MIB OID

2012-02-15 Thread Dave Shield
It's a table - it *must* be called xxxTable Dave Sent from my iPhone -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowin

Table mib2c script only generate init_mpbcRMHOSU(void) with MIB OID

2012-02-15 Thread Francois Bouchard
urrent DESCRIPTION "Model name of the module" ::= { mpbcRMHOSUEntry 5 } generates file with containing only the code : /* * Note: this file originally auto-generated by mib2c using * $ */ #include #include #include #include "mpbcRMHOSU.h" /** Initializes the mpbcRMHO

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

2012-02-10 Thread Dave Shield
iles and links both (or all) the MIB modules into the same binary. >  Presumably I somehow need to run mib2c on the root node, > myMIB, to generate code that registers and delegates calls to the scalar > and table nodes.  And what about the subagent wrapper that talks to the

mib2c on entire MIB -- gluing the bits together

2012-02-10 Thread Chris Smith
Hi, I'm a new Net-SNMP user, learning how to code my first MIB subagent for a pre-written MIB file. I gather, from searching these archives, that mib2c is intended to be run on a single MIB node with a single type of data, so if I had the following MIB: myMIB myMIB.scalar myMIB.table I

using mib2c-update for scalars

2012-01-09 Thread Dheeraj Gautam
Hi, I am trying to use mib2c-update tool for updating scalar objects. Even though .orig and .new generate files are different, but mib2c-update is not providing the diff for these ? Any known issues related to this ? If not, any idea on how to use mib2c-update on scalars. -Dheeraj

the code from mib2c didn't work

2011-12-30 Thread 朱飞
Dear Sir/Madam, In accessory, I send you my code from mib2c. but this function doesn't work, the picture is the error message. It says " no v2 trapOID varbind provided", but in function trapOID has provided.If you have time, I hope you can give me some advice. Thank you very mu

Re: How to convert entire MIB at once using mib2c

2011-11-10 Thread Dave Shield
he MIB contains tables (or a mixture of tables and scalars), then you should look at implementing one table at a time. You can always combine the implementation code for related tables into a single file manually, but the mib2c templates are typically designed to work with just one table at a time.

Re: How to convert entire MIB at once using mib2c

2011-11-10 Thread Simon Chamlian
ject to c/h file using mib2c at once > > What do you mean by "converting the MIB object"? > What sort of MIB object(s) do you have in mind. > > If these are scalar objects, then try > >mib2c -c mib2c.scalar.conf MY-MIB::myTopLevelObject > > If

Re: How to convert entire MIB at once using mib2c

2011-11-10 Thread Dave Shield
On 9 November 2011 18:11, Suresh kumar wrote: > i want convert entire MIB object to c/h file using mib2c  at once What do you mean by "converting the MIB object"? What sort of MIB object(s) do you have in mind. If these are scalar objects, then try mib2c -c mib2c.scalar

Re: How to convert entire MIB at once using mib2c

2011-11-10 Thread Simon Chamlian
Any feedback on this? I am also interested in such a script. Thanks, Simon On Wed, Nov 9, 2011 at 1:11 PM, Suresh kumar wrote: > Hello all > i want convert entire MIB object to c/h file using mib2c at once > can any once do this before please let me know . > if not what i ne

How to convert entire MIB at once using mib2c

2011-11-09 Thread Suresh kumar
Hello all i want convert entire MIB object to c/h file using mib2c at once can any once do this before please let me know . if not what i need change in mib2c script. Thanks in advance. ~suresh

Re: mib2c -c mib2c.mfd.conf

2011-11-04 Thread Simon Chamlian
status > make[1]: *** [libnetsnmpagent.la] Error 1 > make[1]: Leaving directory `/tmp/efface/net-snmp-5.7.1/agent' > > make: *** [subdirs] Error 1 > > > What am I missing? > > Thanks, > Simon > > > > > On Thu, Nov 3, 2011 at 11:34 AM, Dave S

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 cr

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

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 tem

Re: mib2c -c mib2c.mfd.conf

2011-11-02 Thread Simon Chamlian
mmand from a mib bowser running on PC. > > After reading several tutorials, I came accross, "MIB for Dummies". It > suggests to create the C code from the MIB I have. > > But when I run it, I get the following error: > > [root@M54418TWR snmp]# mib2c -c mib2c.mfd.conf > &

Re: mib2c -c mib2c.mfd.conf

2011-11-01 Thread Venki
to create the C code from the MIB I have. But when I run it, I get the following error: [root@M54418TWR snmp]# mib2c -c mib2c.mfd.conf 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://w

Re: mib2c -c mib2c.mfd.conf

2011-11-01 Thread Simon Chamlian
n PC. > > After reading several tutorials, I came accross, "MIB for Dummies". It > suggests to create the C code from the MIB I have. > > But when I run it, I get the following error: > > [root@M54418TWR snmp]# mib2c -c mib2c.mfd.conf > > ERROR: You don't have th

mib2c -c mib2c.mfd.conf

2011-10-31 Thread Simon Chamlian
came accross, "MIB for Dummies". It suggests to create the C code from the MIB I have. But when I run it, I get the following error: [root@M54418TWR snmp]# mib2c -c mib2c.mfd.conf ERROR: You don't have the SNMP perl module installed. Please obtain this by getting the latest so

[mib2c] getting node Range

2011-10-05 Thread GAVA Cédric
Dear net-snmp team I try to figure out how to obtains the range of a given node... I want to do smthg like : @foreach $var scalar@ @if $var.ranges ... @end@ But don't know how to acces the range, And I can' t mange to find how to use @foreach $RANGE_START, $RANGE_END range node@ to fi

Re: Document for modifying the mib2c generated code

2011-09-29 Thread N. Karthikeyan
hikeyan Cc: "net-snmp-users@lists.sourceforge.net" Sent: Thursday, September 15, 2011 12:54 AM Subject: Re: Document for modifying the mib2c generated code On 15 September 2011 00:24, N. Karthikeyan wrote: >      Could you please let me know whether there is any document > availabl

Re: Document for modifying the mib2c generated code

2011-09-15 Thread Dave Shield
On 15 September 2011 00:24, N. Karthikeyan wrote: > Could you please let me know whether there is any document > available on how to change the mib2c generated code? Not really. I started writing a book on this, but it never really came to fruition. The main problem is that "cha

RE: Document for modifying the mib2c generated code

2011-09-14 Thread Dheeraj Gautam
Hi, I am not sure of the document. While I was implemented this, I did the following step and it worked good and still working. 1. TABLE_data_access.c is only file I changed, TABLE__container_load() is only function I changed 2. Code generated will contain a while (1) loop in above

Document for modifying the mib2c generated code

2011-09-14 Thread N. Karthikeyan
Hi Dave, Could you please let me know whether there is any document available on how to change the mib2c generated code? I am trying to implement a table with mib2c.iterate.conf with cache enabled. Thanks in advance for your help and guidance. Thanks, -karthi

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 fil

Re: error in mib2c generated files

2011-09-06 Thread devel tech
Sir! i studied again but unable to fix the error, still getting the same error even added 0 at the end of object. Sir! both snmpget and snmpwalk not working for TEST-ENTERPRISE-MIB ... kindly guide me On Mon, Sep 5, 2011 at 12:17 PM, devel tech wrote: > > > > Thanks sir! > > Mistakenly i save

Re: error in mib2c generated files

2011-09-05 Thread devel tech
Thanks sir! Mistakenly i saved MIB by name TEST-MIB.txt but inside the MIB i wrote TEST-ENTERPRISE-MIB, and I read about scalar instance subidentifier from " http://www.webnms.com/cagent/help/technology_used/c_snmp_overview.html"; and i find out the mistake that i was doing.. I was missing 0 a

Re: mib2c config option

2011-09-02 Thread N. Karthikeyan
Hi Dave/Dheeraj,     Thanks for the info.     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 or directory

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

mib2c config option

2011-09-01 Thread N. Karthikeyan
Hi All,     I am trying to generate a code for the CISCO-LICENSE-MGMT-MIB. This MIB has scalars, tables and notifications defined in it. Could you please let me know the config_file needs to be used with mib2c to generate a code for all of the objects? http://tools.cisco.com/Support/SNMP/do

Re: error in mib2c generated files

2011-08-30 Thread Dave Shield
On 30 August 2011 05:56, devel tech wrote: > i performed following snmptranslate steps and got responses. >snmptranslate -IR TEST-MIB::teststr >Cannot find module (TEST-MIB): At line 0 in (none) That is not surprising - the name of the MIB is TEST-ENTERPRISE-MIBnot TEST-MIB Please se

Re: error in mib2c generated files

2011-08-29 Thread devel tech
the zero-length string." ::= { testsystem 1 } END - then i run command "mib2c -c mib2c.scalar.conf teststr" in terminal and got teststr.c and teststr.h files that i move to agent/mibgroups/teststr directory. i put following

Re: error in mib2c generated files

2011-08-25 Thread Dave Shield
On 25 August 2011 09:53, devel tech wrote: > i compiled [my MIB] using mib2c command  and it generated two files .c and h > of > object Namesys. > > mib2c -c mib2c.scalar.conf Namesys > it was okay, then i run make command and i got following errors > > -

error in mib2c generated files

2011-08-25 Thread devel tech
system 1 } END - i compiled it using mib2c command and it generated two files .c and h of object Namesys. mib2c -c mib2c.scalar.conf Namesys i move all files at PATH net-snmp.5.7/agents/mibgroups/mibII. and run configure command with add module command ./configure --

mib2c error

2011-05-04 Thread Chi . Guan
Hi, I have a mib file DatronIridium-mib.txt and I put the mib file in /usr/local/share/snmp/mibs directory. But when I use MIBS="+DatronIridium-mib" mib2c -c mib2c.scalar.conf datronAntenna, I have got error "Cannot find module (DatronIridium-mib): At line 0 in (none)" Pleas

Can not create template file by mib2c

2011-05-02 Thread Chi . Guan
I finally got snmp perl installed by changing a bunch of Makefiles. But when I use mib2c to create template files from a MIB file, I got the following error: #env MIBS="+RTIRIDIUM-MIB" mib2c -c mib2c.scalar.conf iridium writing to iridium.h writing to iridium.c running indent on

Re: mib2c result

2011-03-22 Thread Dave Shield
all strings have NNN as length > and not the maximum length given in the MIB 'Cos this value isn't easily accessible to mib2c Dave -- Enable your software for Intel(R) Active Management Technology to meet the

mib2c result

2011-03-22 Thread Naama Bar Menachem
Hi, I ran mib2c on the nsDemodEventsTable (see below) and I got the following structure struct nsDemodEventsTable_entry { /* * Index values */ longnsDemodEventsUtcSeconds; /* * Column values */ long

Re: Difficulties with mib2c and MFD

2011-02-18 Thread Dave Shield
On 18 February 2011 16:11, Alec Edgington wrote: >> snmpget -v1 -c public localhost nsIETFWGChair1.0 > > which gave: > > Error in packet > Reason: (noSuchName) There is no such variable name in this MIB. > Failed object: NET-SNMP-EXAMPLES-MIB::nsIETFWGChair1."" That implies that the agent does no

RE: Difficulties with mib2c and MFD

2011-02-18 Thread Alec Edgington
> I have little or no expertise with the MfD framework, > but there is one glaring error in your example: > > > >> snmpget -v1 -c public localhost nsIETFWGChair1 > > A GET request must always include the instance subidentifiers > (i.e. the index to the table). A GET request on the bare MIB object

Re: Difficulties with mib2c and MFD

2011-02-18 Thread Dave Shield
On 18 February 2011 11:02, Alec Edgington wrote: > Hello. I would appreciate some help getting started with building a subagent > using mib2c and MFD. I have little or no expertise with the MfD framework, but there is one glaring error in your example: >> snmpget -v1 -c publ

Difficulties with mib2c and MFD

2011-02-18 Thread Alec Edgington
Hello. I would appreciate some help getting started with building a subagent using mib2c and MFD. I'm trying to build a simple example to handle a table. (I did a scalar first, and that seemed worked fine, so this is the next step...) I have net-snmp version 5.5. I do: >

Re: problem to generate the code using mib2c

2011-01-11 Thread Dave Shield
On 11 January 2011 13:31, sanjay kumar wrote: > I have problem to generate the code using mib2c: > > snmptranslate  1.3.6.1.4.1.388.11.2.2.11.10 > SYMBOL-CC-WS2000-MIB::auditLoggingCfgTable > > sym...@debian-build01:~/Sanjay$ mib2c -c mib2c.iterate.conf >

Re: problem to generate the code using mib2c

2011-01-11 Thread Abraham Varricatt
> > snmptranslate 1.3.6.1.4.1.388.11.2.2.11.10 > SYMBOL-CC-WS2000-MIB::auditLoggingCfgTable > > sym...@debian-build01:~/Sanjay$ mib2c -c mib2c.iterate.conf > SYMBOL-CC-WS2000-MIB::auditLoggingCfgTable > *you didn't give me a valid OID to start with at /usr/local/bin/mi

problem to generate the code using mib2c

2011-01-11 Thread sanjay kumar
I have problem to generate the code using mib2c: snmptranslate 1.3.6.1.4.1.388.11.2.2.11.10 SYMBOL-CC-WS2000-MIB::auditLoggingCfgTable sym...@debian-build01:~/Sanjay$ mib2c -c mib2c.iterate.conf SYMBOL-CC-WS2000-MIB::auditLoggingCfgTable *you didn't give me a valid OID to start with at

Re: how to generate c file using mib2c for node containg both scalars and table

2010-12-13 Thread Dave Shield
On 13 December 2010 11:24, MAS . wrote: > I want to generate c implementation file and header file for the MIB-NODE > file containing  both scalars and table. Please see the FAQ entry How can I have mib2c generate code for both scalars and tables? This states the following:

Re: how to generate c file using mib2c for node containg both scalars and table

2010-12-13 Thread Ashwin Kumar
Very simple, using CLI, run mib2c -c On Mon, Dec 13, 2010 at 4:54 PM, MAS . wrote: > Hi All, > > I want to generate c implementation file and header file for the MIB-NODE > file containing both scalars and table. > I have generated c file and header file for scalar using mi

Re: how to generate c file using mib2c for node containg both scalars and table

2010-12-13 Thread rakesh zingade
generate scalar and a table source file, club all together while compiling On Mon, Dec 13, 2010 at 4:54 PM, MAS . wrote: > Hi All, > > I want to generate c implementation file and header file for the MIB-NODE > file containing both scalars and table. > I have generated c file and header file f

how to generate c file using mib2c for node containg both scalars and table

2010-12-13 Thread MAS .
Hi All, I want to generate c implementation file and header file for the MIB-NODE file containing both scalars and table. I have generated c file and header file for scalar using mib2c.scalar.conf and similarly for table using mib2c.table_data.conf, but I want to generate c file and header file f

which mib2c template to use

2010-11-29 Thread Kobi Biton
Hi I used the mib2c int template to convert a mib with a single read-write object successfully , however now I face a new issue the value that I need to snmpset is `date +%s` (Linux APOC) which I assume will not fit into an integer field , I assume I will need to change the field type to

something confused about "mib2c mib2c -c mib2c.mfd.conf XXXTable"

2010-11-12 Thread ema
first i'll introduce my working environment net-snmp:net-snmp-5.4.2.1 src rpm linux: fedora 11, i386 i have define a table in my mibfile, assume testTable then i use mib2c -c mib2c.mfd.conf testTable to generate some code and i load data in the function int testTable_container

Using mib2c

2010-11-11 Thread Mahesh Chaudhari
Hi All, i am new to net-snmp and assigned a task of writting MIB module for embedded device. so i started with implementing/Adding a single scalar variable to Agent. (on a intel based PC)   my MIB file and skeleton file(output of mib2c -c mob2c.scalar.conf) are attached here. m struck at how to

  1   2   3   4   5   6   >