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 tablename1 > mib2c -c somec

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 sp

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

Re: How to convert entire MIB at once using mib2c

2011-11-10 Thread Dave Shield
On 10 November 2011 15:41, Simon Chamlian wrote: > I think what he means (or what I mean) is to have one config file that > converts the whole MIB file (which contains any possible object) into C. If the MIB contains scalar objects, then the command I gave will do exactly that. If the MIB contai

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: 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/mib2c line > 115.* > Out of c

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

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 mib2c.scalar.conf > a

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

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

procedure to create subagent using mib2c

2009-10-06 Thread purushotam rao
Dear Sir Can I have the complete procedure to create netsnmp subagent with agent x protocol With regards purushotham rao -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event

Procedure to create netsnmp subagent using mib2c with agentx protocol

2009-10-06 Thread purushotam rao
Dear Sir, Can I have the complete procedure to create netsnmp subagent with agent x protocol With Regards U.Purushotham Rao ITI Limited Bangalore -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA i

Re: using mib2c compiler

2009-05-27 Thread Dave Shield
2009/5/27 Jaikar Nalthooru : > I am following bellow steps to generate .c and .h files from > the SIP MIB file. > 1. I installed net-snmp on redhat 5 system and copied SIP MIB file to > /usr/local/share/snmp/mibs folder. > (MIB file from > http://www.icir.org/fenner/mibs/extracted/SIP-TC-MIB-sip-1

using mib2c compiler

2009-05-26 Thread Jaikar Nalthooru
Hi All,  I am new to net-snmp mib2c complier. I need to compile the SIP MIB using mib2c complier. I am following bellow steps to generate .c and .h files from the SIP MIB file. 1. I installed net-snmp on redhat 5 system and copied SIP MIB file to /usr/local/share/snmp/mibs folder. (MIB file

Re: Size of MIB variable using mib2c

2008-03-11 Thread Dave Shield
On 11/03/2008, Raghavendra Prasad <[EMAIL PROTECTED]> wrote: > I am talking about writing source code generation configuration > script files like mib2c.scalar.conf- I am writing a script file to > generate source-code-framework, I need to find size of the string from > MIB file. OK - got you.

Re: Size of MIB variable using mib2c

2008-03-11 Thread Raghavendra Prasad
> What do you mean by that? > The size of an arbitrary string value that your MIB module should > report back? Or the size of a new string value that is being SET? > Or what? I am talking about writing source code generation configuration script files like mib2c.scalar.conf- I am writing a s

Re: Size of MIB variable using mib2c

2008-03-11 Thread Raghavendra Prasad
> What do you mean by that? > The size of an arbitrary string value that your MIB module should > report back? Or the size of a new string value that is being SET? > Or what? I am talking about writing source code generation configuration script files like mib2c.scalar.conf- I am writing a s

Re: Size of MIB variable using mib2c

2008-03-11 Thread Raghavendra Prasad
> What do you mean by that? > The size of an arbitrary string value that your MIB module should > report back? Or the size of a new string value that is being SET? > Or what? I am talking about writing source code generation configuration script files like mib2c.scalar.conf- I am writing a s

Re: Size of MIB variable using mib2c

2008-03-11 Thread Dave Shield
On 10/03/2008, Raghavendra Prasad <[EMAIL PROTECTED]> wrote: >I have a requirement to find out the > size of string-type MIB variables - unfortunately I could not figure > out how to find the size of string variable, What do you mean by that? The size of an arbitrary

Size of MIB variable using mib2c

2008-03-10 Thread Raghavendra Prasad
Hi everybody, I am writing mib2c configuration file, we intend to create a code framework for agent from this. I have a requirement to find out the size of string-type MIB variables - unfortunately I could not figure out how to find the size of string variable, I need this for malloc memory al

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

2007-12-12 Thread Sharad Chandra
, [Sharad Chandra wrote:] | Hi , | | OB1 | | |---OB2 | | ---Table1 | |--- Table2 | |-OB3 | | | | |---OB4 | | | | | | |-Table3 | |

How to generate code from top of mib using mib2c

2007-12-11 Thread Sharad Chandra
Hi , I saw http://net-snmp.sourceforge.net/tutorial/tutorial-5/toolkit/mfd/if-mib/ifTable/index.html link Can you suggest me some other mfd to generate code using mib2c from top level of table? my mib is like OB1 |---OB2 | ---Table1

Re: Using mib2c

2007-06-21 Thread Dave Shield
On 21/06/07, Karthikeyan Ramasubramanian <[EMAIL PROTECTED]> wrote: > How can i have the code > generated for both scalars and tables in the same file? Please see the FAQ entry: How can I have mib2c generate code for both scalars and tables? http://www.net-snmp.org/wiki/index.php/FAQ:C

Using mib2c

2007-06-21 Thread Karthikeyan Ramasubramanian
Hi, I have a mib where scalars and tables are present together. When i try to generate a ".c" & ".h" file using mib2c tool for the Net-SNMP style code then it first detects that i have scalars and asking me whether to generate the code for scalars. I gave the opti

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

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

2007-05-08 Thread bowmanchen
Dear all: I encounter some problem. Please give me some advasie. I had search net-snnmp mail archive that can't found relate same issue with my problem. I want to use IEEE802dot-MIB.txt. I have put it in /usr/local/share/snmp/mibs . My problem is Using mib2c to gen

RE: problem using mib2c

2007-02-22 Thread Adam Bell
: net-snmp-users@lists.sourceforge.net Subject: problem using mib2c Hello all, I tried using mib2c for code generation. I get the following error ERROR: You don't have the SNMP perl module installed. Please obtain this by getting the latest source release of the net-snmp toolkit from

problem using mib2c

2007-02-20 Thread anand anand
Hello all, I tried using mib2c for code generation. I get the following error ERROR: You don't have the SNMP perl module installed. Please obtain this by getting the latest source release of the net-snmp toolkit from http://www.net-snmp.org/download/ . Once you download the source and u

Help in using MIB2c

2006-06-15 Thread Amit Gupta
Hi All, I am new to the Net-SNMP, i am using NetSNMP version 5.0.1. I am writing an SNMP agent to support one MIB which has few scalar and tables. The number of rows and the indices value in the table is fix (hardcoded) but the non-index column are dynamic and i need to get the value of this fr

Using mib2c on Linux 2.6.9-1.667

2005-01-11 Thread sasson, shuki
Title: Using mib2c on Linux 2.6.9-1.667 Hi all, I have the following system: [EMAIL PROTECTED] perl]# uname -a Linux eng172214 2.6.9-1.667 #1 Tue Nov 2 14:41:25 EST 2004 i686 i686 i386 GNU/Linux I managed to build the Net SNMP 5.2 agent using: ./configure --enable-shared --with-perl

RE: using mib2c

2004-09-29 Thread "Fernández Piñas, David"
l Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of raul > serrano > Sent: Tuesday, September 28, 2004 7:28 PM > To: [EMAIL PROTECTED] > Subject: using mib2c > > > > Hello, > > I'm newby in this. I'm trying to use mib2c to

using mib2c

2004-09-28 Thread raul serrano
Hello, I'm newby in this. I'm trying to use mib2c to compile an MIB module, but I don't know what the config file is for? or where can i get it from? I'm trying to do this on Win32: mib2c -c mib2c.scalar.conf ... It tells me that the configuration file can't be found, looked in c:/usr/share/snmp