Re: mib2c: invalid OID

2005-11-08 Thread Dave Shield
On Mon, 2005-11-07 at 15:56 -0500, Eugen wrote: > I’m trying the mib2c and it works fine for objects already defined in > the MIBs from /usr/share/snmp/mibs directory. > > But if I try to add a new MIB file I get the error > “You didn't give mib2c a valid OID to start wit

Mib2c /Win32

2005-11-08 Thread jdx
Hello,   I've got more difficulties with Net-SNMP 5.x /WinXP 1°/ with Net-SNMP v5.1.3-1 (http://prdownloads.sourceforge.net/net-snmp/net-snmp-5.1.3-1.win32.exe?download )  No  mib2c.*.conf   2°/ with net-snmp-5.2.2.pre1-1.win32.exe ( http://prdownloads.sourceforge.net/net-snmp/net

mib2c configure difference between iterate and iterate_access

2005-11-07 Thread Earnest Pan
Dear all, What is the difference between iterate and iterate_access? Is there any document for programmer to reference how to write code in the generating c skeleton code?What can I add my code in where? Thanks. _

mib2c: invalid OID

2005-11-07 Thread Eugen
Hi,   I’m trying the mib2c and it works fine for objects already defined in the MIBs from /usr/share/snmp/mibs directory. But if I try to add a new MIB file I get the error “You didn't give mib2c a valid OID to start with…” when executing “mib2c my-root” command.   The

Re: mib2c configs for embedded perl

2005-11-03 Thread Peter Martin
Thomas Peter Martin wrote: We've discussed this recently and don't think anyone has done it yet. But we'd highly appreciate any work in this regard! Please go ahead and submit your config when you're done, so that it can be considered for inclusion in the distribution. Ok, thanks for the

Re: mib2c configs for embedded perl

2005-11-03 Thread Thomas Anders
Peter Martin wrote: I am currently creating a number of embedded perl scripts for use with our mibs, and am starting to feel the need for some help automating the coding, especially after having re-arranged some of the objects. Mib2c is the obvious choice for this. I've had a good s

mib2c configs for embedded perl

2005-11-02 Thread Peter Martin
I am currently creating a number of embedded perl scripts for use with our mibs, and am starting to feel the need for some help automating the coding, especially after having re-arranged some of the objects. Mib2c is the obvious choice for this. I've had a good search around, but I hav

Re: practicing mib2c tool

2005-10-27 Thread Dave Shield
On Wed, 2005-10-26 at 17:12 +, xuemei wrote: > I run “mib2c 1.3.6.1.4.1.123456789”, > > 1.It looks like the mib2c does not like the fake enterprise number , > that is why it decides to start from the 1.3.6.1.4.1 each time? You need to tell mib2c to load the MIB files that de

practicing mib2c tool

2005-10-26 Thread xuemei
Hi,   Thanks for the previous response on my question. Now I have more.   While waiting for the IANA number, is there any way to practice the mib2c?   I create a mini MIB file, it is validated OK using a on line mib validator. Yet the only object inside is a OBJECT-IDENTIFIER, I give

RE: mib2c

2005-10-18 Thread Eugen
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Tuesday, October 18, 2005 4:39 AM To: Eugen Cc: 'Robert Story'; net-snmp-users@lists.sourceforge.net Subject: RE: mib2c On Mon, 2005-10-17 at 14:43 -0400, Eugen wrote: > Thanks for your answer. Actually what I did was the following

RE: mib2c

2005-10-18 Thread Dave Shield
ne tools ("net-snmp-utils"). We don't - our "net-snmp" RPM covers both. > When trying to run mib2c I received that error message than, following > the instructions, I've installed the net-snmp-perlmods-5.2.1.2-1 > directly from the binary downloaded on the same

mib2c problem on 5.2.1

2005-10-17 Thread John Hardin
I've been having some problems with mib2c generating the right code in the old ucd-style. I'm using NET-SNMP 5.2.1 on Linux. It's pretty easy to tweak the resulting code to fix the problems, but I thought I'm mention the problems in case I'm doing something obviously

Re: mib2c

2005-10-17 Thread Thomas Anders
Eugen wrote: When trying to run mib2c I received that error message than, following the instructions, I've installed the net-snmp-perlmods-5.2.1.2-1 directly from the binary downloaded on the same net-snmp web page (net-snmp-perlmods-5.2.1.2-1.i686.rpm since I didn't found the rpm sour

RE: mib2c

2005-10-17 Thread Eugen
; - I've installed the net package with "rpm -i net-snmp*" and it installed the modules net-snmp-5.2.1.2-1, net-snmp-debuginfo-5.2.1.2-1, net-snmp-devel-5.2.1.2-1 So it seems that in 5.2.1.2 the net-snmp-utils is part of the other modules. When trying to run mib2c I received that erro

Re: mib2c/perl "make test" errors

2005-10-17 Thread jbarney
Mib2c seems to be working now. At first, I was having problems with some of the snmp libraries because Fedora Core 3 had been installed with its own version of Net-SNMP on my machine. Apparently, there were conflicts between the installed 5.1.2-11 version and the 5.2.1.2 version that I had

[Fwd: Re: mib2c/perl "make test" errors]

2005-10-14 Thread jbarney
Original Message Subject: Re: mib2c/perl "make test" errors From:[EMAIL PROTECTED] Date:Fri, October 14, 2005 10:51 am To: "Thomas Anders&quo

Re: mib2c/perl "make test" errors

2005-10-11 Thread Thomas Anders
[EMAIL PROTECTED] wrote: I have installed net-snmp 5.2.1.2 on a machine running kernel version 2.6.9-1.667smp. 'Make test' fails from the perl directory, although 'perl Makefile.PL' and 'make' do not generate any errors. Can you retry with 5.2.2.pre4 and report back, please? +Thomas -- Th

mib2c/perl "make test" errors

2005-10-11 Thread jbarney
I have installed net-snmp 5.2.1.2 on a machine running kernel version 2.6.9-1.667smp. 'Make test' fails from the perl directory, although 'perl Makefile.PL' and 'make' do not generate any errors. If I ignore the errors and install anyway, I am able to run mib

mib2c undefined identifier: enterprises

2005-10-10 Thread bernhard . fischer
hi gurus! I try to generate c-stubs using mib2c: #> MIBS=ALL /usr/local/bin/mib2c -c mib2c.scalar.conf myValue The output of mib2c looks like this: " Unlinked OID in MY-MIB: myNode ::= { enterprises x } Undefined identifier: enterprises near line 10 of ./MY-MIB " I have importe

Re: Problems with mib2c oid error yet snmptranslate works fine...

2005-09-23 Thread Robert Story
On Tue, 20 Sep 2005 11:40:58 -0400 [EMAIL PROTECTED] wrote: JACTC> Thank you, it works now... very simple indeed... my impression was that JACTC> mib2c converted the entire tree given a mib name. Jesus Altuve Most will, but you still have to give it an object name, not the MIB name. If yo

RE: Problems with mib2c oid error yet snmptranslate works fine...

2005-09-20 Thread Jesus . Altuve
Thank you, it works now... very simple indeed... my impression was that mib2c converted the entire tree given a mib name.Jesus Altuveterra.com-"Ying Wang\(CD\)" <[EMAIL PROTECTED]> wrote: -To: <[EMAIL PROTECTED]>From: "Ying Wang\(CD\)" <[EMAIL PROTECTED]&

RE: Problems with mib2c oid error yet snmptranslate works fine...

2005-09-19 Thread Ying Wang(CD)
Jesus,   ># mib2c -c mib2c.conf -I /usr/local/share/snmp -f rhino CISCO-RHINO-MIB   Use the module name/ table name not name of MIB, please try again.   Ying   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 2005年9月20日 12

RE: Problems with mib2c oid error yet snmptranslate works fine...

2005-09-19 Thread Jesus . Altuve
Thanks, Ying Wang but it doesn't work either...  here's what I tried: # export MIBS=all# mib2c -c mib2c.conf -I /usr/local/share/snmp -f rhino CISCO-RHINO-MIB  You didn't give mib2c a valid OID to start with.  IE, I could not findany informatio

RE: Problems with mib2c oid error yet snmptranslate works fine...

2005-09-19 Thread Ying Wang(CD)
Try this: First make sure your mib is in right scope the mib2c can search, the default path is /usr/local/share/snmp/mibs/. Then, execute "exports MIBS=ALL". -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 2005年9月20

Problems with mib2c oid error yet snmptranslate works fine...

2005-09-19 Thread Jesus . Altuve
Hi List, I'm having trouble converting MIB files to .c and .h files using mib2c. I'm doing as follows:         $ MIBS="+UCD-DISKIO-MIB" mib2c -c mib2c.conf UCD-DISKIO-MIB But I get this error:         You didn't give mib2c a valid OID to start with.  IE, I c

Re: Can mib2c support more than one table in a MIB?

2005-09-10 Thread Robert Story
On Wed, 31 Aug 2005 06:23:52 -0500 Paul wrote: HP> My experience with Mib2c is that you can use it one more then one table, HP> but you'll end up with several very similar c files. The "secret" is to HP> run mib2c multiple times. For instance, if your mib defines 3 tables

RE: Can mib2c support more than one table in a MIB?

2005-08-31 Thread Hurt, Paul
Hi, My experience with Mib2c is that you can use it one more then one table, but you'll end up with several very similar c files. The "secret" is to run mib2c multiple times. For instance, if your mib defines 3 tables (MyTable1, MyTable2, and MyTable3) then you can do env MIBS=

Can mib2c support more than one table in a MIB?

2005-08-31 Thread 조용한
==> [EMAIL PROTECTED] test3]# env MIBS="+ISM-SAMPLE-MIB" mib2c -c mib2c.mfd.conf ipsRule This module can only be used with tables, not branches or entire MIBs. Please specify and OID that is a table. (OID: ipsRule) /usr/local/share/snmp//mib2c.mfd.conf:25 containe

Re: Problems with 5.2.2.1 mib2c with mib2c.mfd.conf

2005-08-18 Thread Robert Story
On Wed, 17 Aug 2005 09:51:56 -0500 Oolan wrote: OZ> writing to default-table-gcomDs1ChannelConfigTable.m2d OZ> Warning: something's wrong at OZ> /data/gcom/gcom/porting/common/snmp/netsnmp/net-snmp/local/mib2c line 780, OZ> line 9. OZ> /data/gcom/gcom/porting/common/snmp/ne

Re: Problem in mib2c when index of a table is of type IMPLIED

2005-08-18 Thread Robert Story
On Thu, 18 Aug 2005 17:41:55 +0530 Jyoti wrote: JY> I am facing a problem in generating code via mib2c when the index JY> element is of type IMPLIED. I am using Net-SNMP 5.0.8 version. I just JY> want to know is there any fix given to counter this problem? If not then JY> how can I de

Re: Problems with 5.2.2.1 mib2c with mib2c.mfd.conf

2005-08-18 Thread Robert Story
On Wed, 17 Aug 2005 16:27:56 -0500 Oolan wrote: OZ> I now know more about the OZ> internals of mib2c and MFD than I ever wanted to know. That makes two of us! -- NOTE: messages sent directly to me, instead of the lists, will be deleted unless they are requests for paid cons

Re: Problems with 5.2.2.1 mib2c with mib2c.mfd.conf

2005-08-18 Thread Oolan Zimmer
Doh! I left out a textual convention from my IMPORTS section. Funny that nothing else choked on it. Adding a debug line to mib2c turned it up. I now know more about the internals of mib2c and MFD than I ever wanted to know. Thanks for your help! Oolan Zimmer Gcom, Inc. [EMAIL PROTECTED

Problem in mib2c when index of a table is of type IMPLIED

2005-08-18 Thread Jyoti Yaduwanshi
Hi, I am facing a problem in generating code via mib2c when the index element is of type IMPLIED. I am using Net-SNMP 5.0.8 version. I just want to know is there any fix given to counter this problem? If not then how can I detect whether the index is on type IMPLIED and then do appropriate steps

Problems with 5.2.2.1 mib2c with mib2c.mfd.conf

2005-08-17 Thread Oolan Zimmer
I'm trying to use net-snmp 5.2.2.1 to implement an agent for a MIB module I recently wrote. mib2c works fine with my module and either the iterate and array-dataset config files. However, I'm having problems getting the mfd config file to work with one of my tables. Here's

Re: question regarding mib2c

2005-08-08 Thread Robert Story
On Thu, 28 Jul 2005 10:24:09 +0300 Tal (Tal) wrote: OT> I'm using net-snmp 5.1.3 OT> I'm trying to to create template with minimal code using mib2c - like the OT> code of snmpTargetAddr.c. OT> OT> i.e. - struct variable2 snmpTargetAddrEntry_variables[] = { ... } OT>

question regarding mib2c

2005-07-28 Thread Oz, Tal (Tal)
Title: question regarding mib2c I'm using net-snmp 5.1.3 I'm trying to to create template with minimal code using mib2c -  like the code of snmpTargetAddr.c. i.e. -  struct variable2 snmpTargetAddrEntry_variables[] = { ... } but all the options I used with mib2c didn't c

Re: mib2c on Mac OS 10.4

2005-06-21 Thread Robert Story
On Tue, 14 Jun 2005 15:24:22 -0700 Brian wrote: BH> Has anyone here been successful in getting 'mib2c' working on Mac OS BH> 10.4? There appears to be a problem with building perl for 10.4, and it appears to be something in the OS X environment. Supposedly a fix from Apple

mib2c on Mac OS 10.4

2005-06-16 Thread Brian Howenstein
Hi, Has anyone here been successful in getting 'mib2c' working on Mac OS 10.4? If so, what steps did you take to get it working? Thanks for any help, Brian --- SF.Net email is sponsored by: Discover Easy Linux Migration Strat

Re: mib2c and MPLS-LSR-MIB

2005-04-13 Thread Robert Story
On Mon, 11 Apr 2005 21:10:16 +0430 Farazad wrote: FF> I want to generate *.c and *.h with mib2c and execute this command: FF> "mib2c mplsLsrMIB" . and the is generated two file. Which output style did you choose? (Hint, look at the comments at the top of the file.) FF> ca

mib2c and MPLS-LSR-MIB

2005-04-11 Thread Farazad Farhadzadeh
Hi all I want to generate *.c and *.h with mib2c and execute this command: "mib2c mplsLsrMIB" . and the is generated two file. but when i compile these files give me errors ... can you tell me how i generate these files from MPLS-LSR-MIB. i use Suse-9 and ucd-snmp.. rega

mib2c problem

2005-03-21 Thread 최성록
  Hi. I installed net-snmp-5.1.2 and now implementing agent module. I got a problem concerned 'mib2c'. When I run mib2c in command line, I got messages as belos   "ERROR: You don't have the SNMP perl module installed.  Please obtainthis by getting the late

Re: problems with mib2c

2005-02-21 Thread manik chopra
gt; wrote: > On Tue, 15 Feb 2005 22:56:00 -0800 (PST) manik > wrote: > MC> Also, initially I was using net-snmp-5.2.1. But > MC> whenever I ran mib2c following error occured: > MC> > MC> ERROR: You don't have the SNMP perl module > installed. > MC> [.

Re: problems with mib2c

2005-02-17 Thread Robert Story
On Tue, 15 Feb 2005 22:56:00 -0800 (PST) manik wrote: MC> Also, initially I was using net-snmp-5.2.1. But MC> whenever I ran mib2c following error occured: MC> MC> ERROR: You don't have the SNMP perl module installed. MC> [...] On Wed, 16 Feb 2005 16:47:50 -0800 (PST) manik

Re: problems with mib2c

2005-02-16 Thread manik chopra
o, initially I was using net-snmp-5.2.1. But > MC> whenever I ran mib2c following error occured: > MC> > MC> ERROR: You don't have the SNMP perl module > installed. > MC> > MC> I installed the perl module but still i get the > above > MC> error when

Re: problems with mib2c

2005-02-16 Thread Robert Story
On Tue, 15 Feb 2005 22:56:00 -0800 (PST) manik wrote: MC> Also, initially I was using net-snmp-5.2.1. But MC> whenever I ran mib2c following error occured: MC> MC> ERROR: You don't have the SNMP perl module installed. MC> MC> I installed the perl module but still i get t

Re: problems with mib2c

2005-02-15 Thread manik chopra
ult search path for the MIBS. Now when I do > MC> > MC> >>mib2c mib2c.int_watch.conf > nstAgentModuleObject > MC> > MC> following error occurs: > MC> --- > MC> you didn't give me a valid OID to start with at > MC> /usr/local/bin/mib2c line

Re: problems with mib2c

2005-02-15 Thread manik chopra
Hello Robert, Yes 'snmptranslate -IR nstAgentModuleObject' does work. But still i get the same error with mib2c. Also, initially I was using net-snmp-5.2.1. But whenever I ran mib2c following error occured: -- ERROR: You don't have the SNMP perl module installed. Please

Re: problems with mib2c

2005-02-15 Thread Robert Story
On Tue, 15 Feb 2005 05:57:35 -0800 (PST) manik wrote: MC> I have got a directory in which MC> "NET-SNMP-TUTORIAL-MIB" is saved. Also it is in the MC> default search path for the MIBS. Now when I do MC> MC> >>mib2c mib2c.int_watch.conf nstAgentModuleObject MC&g

problems with mib2c

2005-02-15 Thread manik chopra
Hi all, I have problems using mib2c functionality of NET-SNMP. I have got a directory in which "NET-SNMP-TUTORIAL-MIB" is saved. Also it is in the default search path for the MIBS. Now when I do >>mib2c mib2c.int_watch.conf nstAgentModuleObject following error occurs: ---

Re: Problems with MIB2c Tool

2005-02-14 Thread Robert Story
On Fri, 4 Feb 2005 14:39:06 +0100 [EMAIL PROTECTED] wrote: KSDC> I have followed following steps: KSDC> export MIBS=ADSL-LINE-MIB That will only load one MIB. You probably need more than that. Try 'export MIBS=+ADSL-LINE-MIB', so the default mibs are loaded as well. KS

Re: Mib2c problem

2005-02-14 Thread Robert Story
On Tue, 8 Feb 2005 11:59:15 +0200 Kodel wrote: KO> I have problem using mib2c utility for the NET-SNMP-EXAMPLES-MIB KO> KO> When I trying mib2c -c ... someOidFromExamples, I got the error : KO> "You didn't give me a valid OID .". KO> KO> The mib2c do

Mib2c problem

2005-02-08 Thread Kodel Oleg
I have problem using mib2c utility for the NET-SNMP-EXAMPLES-MIB When I trying mib2c -c ... someOidFromExamples, I got the error : "You didn't give me a valid OID .....". The mib2c doesn't known ALL OIDs from netSnmp (including netSnmp itself). When I try other MIBS OID'

Problems with MIB2c Tool

2005-02-04 Thread Kumara-Swamy.Dontamsetti
. ( 5.2.1 source [show only this release] 2005-01-25 10:14 net-snmp-5.2.1.tar.gz 3971320 Any Source .gz ) I have tried to use MIB2c Tool without installing the package. I have started using MIB2c tool under net-snmp-5.2.1/local folder

mib2c module installtion on debian

2005-01-28 Thread Amit Singh CHANDEL
Hello I am trying to install mib2c on debian machine, my requirement is i have to use ucd-snmp-4.1.2 which i coied from sourceforge.net, the ucd-snmp installed successfully as well as mib2c installed in /usr/local/bin . when i tried mib2c ip i got the error message "perl SNMP shou

Re: WRB - Errors in MFD helper script for mib2c compiler.

2005-01-26 Thread Robert Story
On Tue, 18 Jan 2005 20:36:18 -0800 [EMAIL PROTECTED] wrote: WC> I noticed an interesting error. String constants that have WC> some length are broken across multiple lines, with double WC> quotes surrounding the substring of each line. Please, correct WC> me if I am wrong but, as I recall, string

WRB - Errors in MFD helper script for mib2c compiler.

2005-01-18 Thread wrb
While working on the code generated by the MFD helper script, I noticed an interesting error. String constants that have some length are broken across multiple lines, with double quotes surrounding the substring of each line. Please, correct me if I am wrong but, as I recall, strings are broken a

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

2005-01-04 Thread Alex Burger
Subodh Bansal wrote: Why 'mib2c' does not work with SuSE Linux? It should work fine. Are you getting an error when you run it? A (text) screen shot of the command you ran and the output would help. Alex Thanks in advance Subodh -

mib2c

2005-01-04 Thread Subodh Bansal
Why 'mib2c' does not work with SuSE Linux?   Thanks in advance Subodh

Re: Urgent: mib2c question

2004-12-29 Thread Dave Shield
> Is the mib2c tool capable of creating the skeleton code for a > NOTIFICATION-TYPE object? Try mib2c -c mib2c.notify.conf myTrap Dave --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on h

Re: mib2c can't handle 2 tables?

2004-12-22 Thread Users
On Mon, 20 Dec 2004 19:42:20 +0900 (JST) HORIUCHI wrote: HT> I'm trying to implement a SNMP agent using mib2c generated code. HT> But mib2c doesn't seem to be able to handle more than 2 tables. HT> (I'm using net-SNMP 5.2) HT> HT> Anyone can help me?

RE: Urgent: mib2c question

2004-12-20 Thread William R. Buckley
Mike: Your question is not urgent, and is easily answered by running the mib2c compiler and answering the prompts as they are presented. Of course, you could also read the relevant documentation to learn that mib2c in Net-SNMP version 5 does generate skeleton code for notifications. Actually

RE: mib2c can't handle 2 tables?

2004-12-20 Thread William R. Buckley
Takahiko: I had noticed this problem with using the MIBs for Dummies helper with mib2c. I think what happens is that a name is corrupted in the helper, so that mib2c thinks it is now looking for a helper that has as part of its name the name of the table. Notice that this motif does not appear

mib2c can't handle 2 tables?

2004-12-20 Thread HORIUCHI Takahiko
Hi, I'm trying to implement a SNMP agent using mib2c generated code. But mib2c doesn't seem to be able to handle more than 2 tables. (I'm using net-SNMP 5.2) Anyone can help me? mib2c output -- [EMAIL PROTECTED]

Urgent: mib2c question

2004-12-20 Thread Mike Mohamet
Hi all, Is the mib2c tool capable of creating the skeleton code for a NOTIFICATION-TYPE object? Or I have to write it myself from the beginning? Thanks, Mike --- SF email is sponsored by - The IT Product Guide Read honest & candid review

mib2c installation problem

2004-12-09 Thread Saifullah Mohd
--- Begin Message ---   Hi,     I installed net-snmp 5.1. And now trying to use mib2c script. For that perl module has to be installed. I followed the steps given in perl/SNMP/README file. But i installed it in my own directory by changing the installation prefix. I got the following error

Re: WRB - mib2c anomaly.

2004-11-23 Thread Dave Shield
> I had noticed a lack of DS around -- thought maybe he was on vacation... Not exactly - I did have a brief break to visit family ("being a dutiful grandson and doting uncle"), but that was only for a few days. The reason you haven't heard much from me recently is that I've deliberately taken a s

Re: WRB - mib2c anomaly.

2004-11-20 Thread Users
On Fri, 19 Nov 2004 11:43:05 -0800 [EMAIL PROTECTED] wrote: WC> The means to include the ieee802dot11 module is WC> WC> ./configure --with-mib-modules="dot11/ieee802dot11" WC> WC> Original message WC> >From: Robert Story (Users) <[EMAIL PROTECTED]> WC> > WC> >Generally configure will

Re: WRB - mib2c anomaly.

2004-11-19 Thread wrb
Robert: The version of Net-SNMP is 5.1.2, and I am using the UCD api (v4) as produced by the mib2c script supplied with that version of Net-SNMP. The means to include the ieee802dot11 module is ./configure --with-mib-modules="dot11/ieee802dot11" Now, I surmised the process for placi

Re: WRB - mib2c anomaly.

2004-11-19 Thread Users
On Fri, 19 Nov 2004 01:54:13 -0800 [EMAIL PROTECTED] wrote: WC> during linking, I obtained an error regarding an undefined reference WC> to a routine, named *shutdown_ieee802dot11()* and it was not defined in WC> the source code generated for the MIB. What version of the agent are you using? How

Re: WRB - mib2c anomaly.

2004-11-19 Thread Carlos Cantu
iday, November 19, 2004 8:57 AM Subject: Re: WRB - mib2c anomaly. > On Fri, 19 Nov 2004 10:24:09 + Dave wrote: > DS> Yes - this is the difference between the old (v4) and new (v5) MIB APIs. > > All right now young man. What are you doing out of your room? Have you finished >

Re: WRB - mib2c anomaly.

2004-11-19 Thread Gary Clark
hee,hee. - Original Message - From: "Robert Story (Users)" <[EMAIL PROTECTED]> To: "Dave Shield" <[EMAIL PROTECTED]> Cc: "NetSNMPUsers" <[EMAIL PROTECTED]> Sent: Friday, November 19, 2004 8:57 AM Subject: Re: WRB - mib2c anomaly. >

Re: WRB - mib2c anomaly.

2004-11-19 Thread Users
On Fri, 19 Nov 2004 10:24:09 + Dave wrote: DS> Yes - this is the difference between the old (v4) and new (v5) MIB APIs. All right now young man. What are you doing out of your room? Have you finished your homewor - err, book, yet? No? Ok then, march right back into your room. And no feeding th

Re: WRB - mib2c anomaly.

2004-11-19 Thread Dave Shield
> I am always generating for UCD format (or the v4 api, as you > call it - I will try to adopt this naming convention). In which case, I *STRONGLY* advise you to use the 'mib2c' script from one of the 4.2.x distributions. The 'old-api' config is really only t

Re: WRB - mib2c anomaly.

2004-11-19 Thread Dave Shield
> As for my (clight) crack about regression testing, this is really > my way of asking the core developers to seek my assistance for > such activities prior to a full release. We do - every time. Wes has sent out three messages in the last month asking people to try out the release candidates, a

Re: WRB - mib2c anomaly.

2004-11-19 Thread wrb
you call it - I will try to adopt this naming convention). So, why should I see differences in this case? Is it owing to the specifics of the configuration file used to guide operation of mib2c? That would seem likely. Perhaps I will use the v5.0.8 configuration with the 5.1.2 mib2c, and

Re: WRB - mib2c anomaly.

2004-11-19 Thread wrb
Dave: Actually, I am using the prompt feature, so I am not really sure of which configuration file is used. Asyou know, mib2c now asks several higher-level questions, and clearly the configuration file used is selected based upon the answers given by the user for each of those questions. In the

Re: WRB - mib2c anomaly.

2004-11-19 Thread Dave Shield
You say that the correction did not > make it into v5.1.2 owing to a code freeze, so if you would be > so kind, remind me of the version in which the corrected mib2c > is found. It's in all of the CVS code lines (see http://www.net-snmp.org/cvs) and also in the 5.2.rc4 code. >

Re: WRB - mib2c anomaly.

2004-11-19 Thread Dave Shield
> I am working with RH9, Net-SNMP 5.1.2, and the 802.11 MIB. I notice > that the output of mib2c is different, depending on use of the UCD > versus NET formats. Yes - this is the difference between the old (v4) and new (v5) MIB APIs. > Specifically, UCD generates nam

Re: WRB - mib2c anomaly.

2004-11-19 Thread wrb
the correction did not make it into v5.1.2 owing to a code freeze, so if you would be so kind, remind me of the version in which the corrected mib2c is found. In the mean time, I will review the archives for the posting you mention. BTW - what about the differences in the number of generated

WRB - mib2c anomaly.

2004-11-19 Thread wrb
For my last such posting of the evening (though it has turned to morning, at 2AM), I want to point out that the mib2c delivered with Net-SNMP 5.0.8 (this is the version included with the Kenati OS - and notice how the name Kenati has a pejorative sound, as in CANNOT - in this sense, I think the

Re: WRB - mib2c anomaly.

2004-11-19 Thread Dave Shield
> Well, now I have found more problems with mib2c in Net-SNMP 5.1.2 > . The output from MIB compilation yields source code that > does not include the *case* component of a switch statement. How > could such an error go unnoticed? Because we're human, and make mistakes. Y

WRB - mib2c anomaly.

2004-11-19 Thread wrb
Well, I found another problem. As a good programmer should, I cleaned up the problems found with the mib2c generated code for the 802dot11 MIB, and compiled to the point of generating the daemon, snmpd. At that point, during linking, I obtained an error regarding an undefined reference to a

WRB - mib2c anomaly.

2004-11-19 Thread wrb
Of course, the problem with mib2c in Net-SNMP 5.1.2 occurs only in the *var-* routines, not in the *write-* routines. William R. Buckley President SoftNerd, A California Corporation Director Emeritus, International Core Wars Society [EMAIL PROTECTED] 415-240-6107

WRB - mib2c anomaly.

2004-11-19 Thread wrb
Well, now I have found more problems with mib2c in Net-SNMP 5.1.2, and this is a big one, at least from the point of view of code quality. The output from MIB compilation yields source code that does not include the *case* component of a switch statement. How could such an error go unnoticed

WRB - mib2c anomaly.

2004-11-18 Thread wrb
I am working with RH9, Net-SNMP 5.1.2, and the 802.11 MIB. I notice that the output of mib2c is different, depending on use of the UCD versus NET formats. Specifically, UCD generates names and OID's that are not generated for NET. The particular case I find concerns the OID named in the M

Re: WRB: A seeming failure of mib2c in Net-SNMP-5.1.2

2004-11-18 Thread Dave Shield
> My complaint is that the AGENT.txt > file has several blank lines where that directive ought to be shown. > That is, the *figure* in the documentation is missing - it is blank. This problem has been addressed in the CVS tree, so should be fixed with the 5.2 relea

Re: WRB: A seeming failure of mib2c in Net-SNMP-5.1.2

2004-11-17 Thread wrb
several blank lines where that directive ought to be shown. That is, the *figure* in the documentation is missing - it is blank. WRB Original message >Date: Wed, 17 Nov 2004 11:54:45 -0500 >From: Robert Story (Users) <[EMAIL PROTECTED]> >Subject: Re: WRB: A seeming failure

Re: WRB: A seeming failure of mib2c in Net-SNMP-5.1.2

2004-11-17 Thread Users
e of a WC> directive, yet the place where the directive ought appear in the file is WC> blank. WC> [...] WC> My prompt for this review was more than the missing text in the file WC> AGENT.txt, for I had also noted no directive in the header file WC> produced by mib2c for the attached 8

Re: WRB - A final comment on seeming errors in mib2c.

2004-11-17 Thread Dave Shield
> OK, OK, I think I now see the problem correctly. It is > not with mib2c but with AGENT.txt, as the text file is > out of date. Correct. That particular document was written describe the old v4 MIB API, which has now been deprecated in favour of the newer v5 "handler-based&qu

WRB - A final comment on seeming errors in mib2c.

2004-11-16 Thread wrb
OK, OK, I think I now see the problem correctly. It is not with mib2c but with AGENT.txt, as the text file is out of date. If I can get commentary on a rewrite, I offer to provide same. Are the core developers game? William R. Buckley President SoftNerd, A California Corporation Director

WRB: More on seeming mib2c failure.

2004-11-16 Thread wrb
It occurs to me that readers of my recent postings (one is pending moderator approval, since the MIB is about 113Kbytes in size) will desire to know the module format for my implementation of the 802.11 MIB. I am using the old UCD format at the present time, and so the output of mib2c is in the

WRB: A seeming failure of mib2c in Net-SNMP-5.1.2

2004-11-16 Thread wrb
took time to review the suggested file *mibII/route_write.h* for an example of the directive, which is config_require(mibII/ip) My prompt for this review was more than the missing text in the file AGENT.txt, for I had also noted no directive in the header file produced by mib2c for the attached

Re: a question about files generated by mib2c..

2004-10-28 Thread Dave Shield
> Today,i generate rmon mib from RMON-MIB.txt under "/usr/local/share/snmp/mibs" > by mib2c .After complie and run on my pc ,i find i can get nodes like > etherstatsDatasource. > So i think my SMI file may be error. What are you think? I think you're trying to run b

答复: a question about files generated by mib2c..

2004-10-28 Thread CindyQin
hi : i use mib browser designed by adventnet corp. .i can get other nodes like sysDescr,so the tool should be right. Today,i generate rmon mib from RMON-MIB.txt under "/usr/local/share/snmp/mibs" by mib2c .After complie and run on my pc ,i find i can get

Re: a question about files generated by mib2c..

2004-10-28 Thread Dave Shield
s[] = { > {SSNAME, ASN_OCTET_STR, RONLY, var_abc, 2, {1,1}}, > } You're quite correct - the code generated by mib2c is wrong. > struct variable7 via_variables[] = { > {SSNAME, ASN_OCTET_STR, RONLY, var_abc, 3, {2356, 1,1}}, > } That looks correct. (You should be ab

a question about files generated by mib2c..

2004-10-27 Thread CindyQin
Title: a question about files generated by mib2c.. Dear all:   I use mib2c tool to generate one C code with ucd-snmp old api ,the smi file as follow: {ABC-SMI DEFINITIONS ::= BEGIN IMPORTS enterprises    FROM RFC1155-SMI;  abc OBJECT IDENTIFIER

RE: using mib2c

2004-09-29 Thread "Fernández Piñas, David"
Go to Start > Search... > Files or Folders and look for mib2c.scalar.conf on your local hard disk. It should be at the net-snmp sources local directory, the same directory where mib2c perl script is stored. The configuration file mib2c.scalar.conf says mib2c to generate code for scal

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

Error executing mib2c

2004-08-31 Thread Prakash
Hello All,   I have a problem executing mib2c export MIBDIRS=/opt/iexpress/net-snmp/share/snmp/mibs export MIBS=ALL mib2c -c mib2c.old-api.conf UCD-SNMP-MIB::ucdavis  -f outputfile I get the following error   No log handling enabled - turning on stderr loggingUCD-SNMP-MIB: Module not

<    1   2   3   4   5   6   >