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 *Information Assurance Student

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
ge.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/default_st

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

2018-04-11 Thread Kalenscher, Dan
...@gmail.com] Sent: Wednesday, April 11, 2018 4:25 PM To: Kalenscher, Dan (US Person) <dkale...@harris.com> 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 <dkale...@harris.com<mailto:dkale..

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 <dkale...@harris.com> 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

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

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

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

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

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

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 azaad2...@gmail.com 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 tablename1

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

Re: mib2c mfd for ifTable

2014-09-19 Thread Pranesh Kulkarni
else ? Pranesh On Thu, Sep 18, 2014 at 11:48 AM, Pranesh Kulkarni pranes...@gmail.com 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 IF-MIB::ifTable = No Such Object available

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

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

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 license we need

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

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 in the skel.pl output. It looks

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_interface.c inside

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 From

RE: mib2c

2013-05-21 Thread David Ganor
...@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, but here is what

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 nuno.magalh...@inov.pt wrote: Here it goes. Thanks for that. In windows embedded code full compilation it doesn't happen. In

Re: mib2c best configuration mode to access global functions

2013-01-06 Thread Dave Shield
On 5 January 2013 18:10, Nuno Magalhães nuno.magalh...@inov.pt 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

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 nuno.magalh...@inov.pt 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

Re: mib2c best configuration mode to access global functions

2013-01-05 Thread Dave Shield
On 5 January 2013 09:05, Nuno Magalhães nuno.magalh...@inov.pt 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

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

Re: mib2c best configuration mode to access global functions

2013-01-05 Thread Dave Shield
On 5 January 2013 12:14, Nuno Magalhães nuno.magalh...@inov.pt 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

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 Magalhães

Re: mib2c best configuration mode to access global functions

2013-01-04 Thread Dave Shield
On 4 January 2013 19:34, Nuno Magalhães nuno.magalh...@inov.pt 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: 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 | +- Processing table myTable

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

2012-05-29 Thread Dave Shield
On 18 May 2012 14:57, Michael Dorin bsddo...@gmail.com 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

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

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 event

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

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

Re: mib2c default has no 'ifTable_cache_load()'

2012-04-19 Thread James Gosnell
iftable_data_access.c file, specifically load container function Zlatan S. On Apr 18, 2012, at 7:04 PM, James Gosnell jamesgosn...@gmail.com 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

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 make the edits

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 jamesgosn...@gmail.com wrote: I ran `mib2c -c mib2c.mfd.conf ifTable` and used the default settings. Should i have

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: Running mib2c

2012-04-03 Thread Jaques Arantes
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: Running mib2c

2012-04-03 Thread Dave Shield
On 3 April 2012 15:38, Jaques Arantes jaques.aran...@gmail.com 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-centos/ Note that mib2c

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

2012-02-15 Thread Francois Bouchard
} generates file with containing only the code : /* * Note: this file originally auto-generated by mib2c using * $ */ #include net-snmp/net-snmp-config.h #include net-snmp/net-snmp-includes.h #include net-snmp/agent/net-snmp-agent-includes.h #include mpbcRMHOSU.h /** Initializes the mpbcRMHOSU

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 would

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

2012-02-10 Thread Dave Shield
) 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 master? It's probably not worth

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 much. I have too

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 skjaiswa...@hotmail.comwrote: 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

Re: How to convert entire MIB at once using mib2c

2011-11-10 Thread Dave Shield
On 9 November 2011 18:11, Suresh kumar skjaiswa...@hotmail.com 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

Re: How to convert entire MIB at once using mib2c

2011-11-10 Thread Simon Chamlian
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.conf MY-MIB::myTopLevelObject If this is a MIB table

Re: How to convert entire MIB at once using mib2c

2011-11-10 Thread Dave Shield
that. If the 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

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
/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 Shield d.t.shi...@liverpool.ac.ukwrote: On 3 November 2011 15:21, Simon Chamlian simon.chaml...@gmail.com wrote: What does mib2c do? It produces

Re: mib2c -c mib2c.mfd.conf

2011-11-03 Thread Dave Shield
On 31 October 2011 18:51, Simon Chamlian simon.chaml...@gmail.com 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

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 3 November 2011 15:21, Simon Chamlian simon.chaml...@gmail.com 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

Re: mib2c -c mib2c.mfd.conf

2011-11-02 Thread Venki
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://www.net-snmp.org/download

Re: mib2c -c mib2c.mfd.conf

2011-11-02 Thread Simon Chamlian
, 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 source release of the net-snmp

Re: mib2c -c mib2c.mfd.conf

2011-11-01 Thread Simon Chamlian
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 the SNMP perl module installed. Please obtain this by getting the latest

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

[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

Re: Document for modifying the mib2c generated code

2011-09-29 Thread N. Karthikeyan
@lists.sourceforge.net 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 karthik_96...@yahoo.com wrote: Could you please let me know whether there is any document available

Re: Document for modifying the mib2c generated code

2011-09-15 Thread Dave Shield
On 15 September 2011 00:24, N. Karthikeyan karthik_96...@yahoo.com 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

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

Re: mib2c config option

2011-09-12 Thread Dave Shield
On 2 September 2011 19:13, N. Karthikeyan karthik_96...@yahoo.com 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

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 devel.te...@gmail.com wrote: Thanks sir!

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 at

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

Re: mib2c config option

2011-09-02 Thread Dave Shield
On 2 September 2011 08:56, Dheeraj Gautam dgau...@juniper.net 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

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

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 devel.te...@gmail.com 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

Re: error in mib2c generated files

2011-08-29 Thread devel tech
is 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 code in my teststr.c file

Re: error in mib2c generated files

2011-08-25 Thread Dave Shield
On 25 August 2011 09:53, devel tech devel.te...@gmail.com 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 test

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) Please see my mib file

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 iridium.c indent

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: mib2c result

2011-03-22 Thread Dave Shield
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 growing manageability and security

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: mib2c -c

Re: Difficulties with mib2c and MFD

2011-02-18 Thread Dave Shield
On 18 February 2011 11:02, Alec Edgington alec.edging...@thales-esecurity.com 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

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 name

Re: Difficulties with mib2c and MFD

2011-02-18 Thread Dave Shield
On 18 February 2011 16:11, Alec Edgington alec.edging...@thales-esecurity.com 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

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

Re: problem to generate the code using mib2c

2011-01-11 Thread Dave Shield
On 11 January 2011 13:31, sanjay kumar fromsan...@gmail.com 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 SYMBOL-CC-WS2000-MIB

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

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 . mass3m...@gmail.com 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

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 YOUR-MIB's-NODE-NAME On Mon, Dec 13, 2010 at 4:54 PM, MAS . mass3m...@gmail.com 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

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 . mass3m...@gmail.com 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

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

mib2c generates wrong code for textual conventions

2010-10-11 Thread Boris Zweimueller
SNMP_ERR_WRONGVALUE; } which yields an error for each of the two correct values 54 oder 65. The '||' should be a ''. If somebody could give me a hint where this has to be corrected in the mib2c compiler I could submit a patch thanks Boris

Re: mib2c generates wrong code for textual conventions

2010-10-11 Thread Dave Shield
On 11 October 2010 13:51, Boris Zweimueller boris.zweimuel...@gmail.com 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;     }

Re: mib2c generates wrong code for textual conventions

2010-10-11 Thread Boris Zweimueller
perfect, thank you! Boris 2010/10/11 Dave Shield d.t.shi...@liverpool.ac.uk On 11 October 2010 13:51, Boris Zweimueller boris.zweimuel...@gmail.com wrote: the generated c code for this object ist: /** Check the ranges of the passed value for legality */ if ( !(*val = 54 *val

RE: mib2c does not like object syntax IpAddress

2010-09-23 Thread kavita raghunathan
...@emc.com anup.shan...@emc.com wrote: From: anup.shan...@emc.com 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, September 23, 2010, 12:42 AM

mib2c does not like object syntax IpAddress

2010-09-22 Thread kavita raghunathan
like this: iPoutofband OBJECT-TYPE     SYNTAX      IpAddress     MAX-ACCESS  read-only     STATUS      current     DESCRIPTION         Far End IP out of band   ::= { iPoutofbandtable 6 } If I change the type of the object to INTEGER, it works. So, I have proved that mib2c does not like IpAddress

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

  1   2   3   4   5   >