Re: mib2c generates wrong code for textual conventions

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

Re: mib2c generates wrong code for textual conventions

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

mib2c generates wrong code for textual conventions

2010-10-11 Thread Boris Zweimueller
&& *val <= 65) ) { return 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

RE: mib2c does not like object syntax "IpAddress"

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

RE: mib2c does not like object syntax "IpAddress"

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

mib2c does not like object syntax "IpAddress"

2010-09-22 Thread kavita raghunathan
and the object looks 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

A very strange problem(about the code structure when set mib2c -S cache=0)

2010-08-09 Thread Alexander King
A very strange problem(about the code structure when set mib2c -S cache=0) When my uit.h file is something like this: [SKIP] void initialize_table_hostInterFCTable(void); Netsnmp_Node_Handler hostInterFCTable_handler; Netsnmp_First_Data_Point hostInterFCTable_get_first_data_point

Re: Very Newbie: Converting a complex MIB file with mib2c

2010-07-07 Thread Dave Shield
On 2 July 2010 14:51, Joan Landry wrote: > You have to use mib2c for each table and scalor: > Example: > mib2c -c mib2c.scalar.conf SNMP-USER-BASED-SM-MIB:usmUserSpinLock > mib2c -c mib2c.table_data.conf SNMP-USER-BASED-SM-MIB:usmUserTable Minor correction: You should be able to r

Unable to run mib2c : perl error

2010-07-02 Thread Kavita Raghunathan
Hello, Here is my situation: Note that I’m using net-snmp-5.5 1. I had been using mib2c successfully for awhile 2. Rebooted my linux machine and did some cleans 3. Now my mib2c does not work, and complains of Perl module not being found 4. I tried to install Perl (although it should have

Re: Very Newbie: Converting a complex MIB file with mib2c

2010-07-02 Thread Fulko Hew
ve > managed to build a subagent reporting a dummy integer value. But when > trying to use mib2c on the MIB file (I have configured it correctly, > mib2c can find both the MIB and the starting node) I am not sure of > which configuration file to use. > > The MIB contains many ta

RE: Very Newbie: Converting a complex MIB file with mib2c

2010-07-02 Thread Joan Landry
You have to use mib2c for each table and scalor: Example: mib2c -c mib2c.scalar.conf SNMP-USER-BASED-SM-MIB:usmUserSpinLock mib2c -c mib2c.table_data.conf SNMP-USER-BASED-SM-MIB:usmUserTable -Original Message- From: Stavros Tsolakos [mailto:stsola...@gmail.com] Sent: Friday, July 02

Very Newbie: Converting a complex MIB file with mib2c

2010-07-02 Thread Stavros Tsolakos
use mib2c on the MIB file (I have configured it correctly, mib2c can find both the MIB and the starting node) I am not sure of which configuration file to use. The MIB contains many tables, many scalar and many string values. Is there a configuration file to automagically generate template code

Re: cache problems with table data mib2c

2010-06-17 Thread Dave Shield
On 17 June 2010 15:23, Kathy McLeod wrote: > Ah.  I thought there would only be one load per command (like snmptable), > not for every get that is happening. Think about the protocol operations involved in an "snmptable" or "snmpwalk" request, and how this will look from the agent's point of vie

Re: cache problems with table data mib2c

2010-06-17 Thread Dave Shield
On 17 June 2010 15:18, Kathy McLeod wrote: > I said that wrong.  I meant should I add it to all the Reserve1 sections > for the other columns (vs. the the action section, for example). This error (noCreation) needs to be returned for all MIB column objects in that table, so needs to be present in

Re: cache problems with table data mib2c

2010-06-17 Thread Kathy McLeod
sers 06/17/2010 03:03 Subject AMRe: cache problems with table data m

Re: cache problems with table data mib2c

2010-06-17 Thread Kathy McLeod
Hi - I said that wrong. I meant should I add it to all the Reserve1 sections for the other columns (vs. the the action section, for example). That error code is what mib2c generated for the get section, so I went with that. Thanks. Kathy McLeod Dept S82 CCB - SNMP IBM Rochester, MN (507

Re: cache problems with table data mib2c

2010-06-17 Thread Dave Shield
On 16 June 2010 20:14, Kathy McLeod wrote: > Problem 2:  the -1 setting is not working for me for some of the commands. "for some of the commands" is a bit vague. Can you be more specific? A test such as: $ snmpgetnext LLDP-MIB::lldpPortConfigAdminStatus ; \ snmpgetnext LLDP-MIB::lldp

Re: cache problems with table data mib2c

2010-06-17 Thread Dave Shield
On 16 June 2010 20:14, Kathy McLeod wrote: > Problem 1:  When I tried to do a set for a row that doesn't exist, I was > getting a seg. fault (I was seeing set handler 4 debug msg but not the next > one).  I added that check from the get section to the switch for the > PortConfigStatus set section,

Re: cache problems with table data mib2c

2010-06-16 Thread Kathy McLeod
Hi again -(See attached file: lldpPortConfigTable.c)(same file with more debug, and change below) Long story (well, short stupid story), but I wasn't running with the HANDLER change. Now it seems to work fine, except for the following: Problem 1: When I tried to do a set for a row that doe

Re: cache problems with table data mib2c

2010-06-16 Thread Dave Shield
On 16 June 2010 15:23, Kathy McLeod wrote: > In your previous note, you said to "Try tweaking the injection of the cache > handler to use 'TABLE_HANDLER_NAME' > > In this note, you say, "If you insert the cache helper using > 'TABLE_HELPER_NAME' > so is it Handler or Helper? HANDLER >From the h

Re: cache problems with table data mib2c

2010-06-16 Thread Kathy McLeod
cc email.com net-snmp users 06/16/2010 02:55 Subject AMRe: cache pr

Re: cache problems with table data mib2c

2010-06-16 Thread Dave Shield
On 15 June 2010 21:46, Kathy McLeod wrote: > I think your diagnosis is correct.  It is setting up for the row and column > in the old table and then when those rows are not in the new table, I get > errors.  This does not seem correct to me - isn't the point of reloading to > have the latest and g

Re: cache problems with table data mib2c

2010-06-15 Thread Kathy McLeod
06/15/2010 03:27 Subject AMRe: cache problems with table data

Re: cache problems with table data mib2c

2010-06-15 Thread Kathy McLeod
net-snmp users 06/15/2010 03:27 Subject AMRe: cache problems with table data

Re: cache problems with table data mib2c

2010-06-15 Thread Dave Shield
On 14 June 2010 20:25, Kathy McLeod wrote: > (See attached file: lldpPortConfigTable.C) Unfortunately, this file did not actually compile. (it complained about line 210 entry = SNMP_MALLOC_TYPEDEF(lldpPortConfigTable_entry); which should presumable be "struct lldpPortConfigTable_entry"

Re: Unable to mib2c the ALARM-MIB

2010-04-23 Thread Dave Shield
On 20 April 2010 21:00, Mike Ayers wrote: >> From: Kavita Raghunathan [mailto:kavita.raghunat...@skyfiber.com] >> Sent: Tuesday, April 20, 2010 12:40 PM > >> The following line is not liked by mib2c: Any idea why? >> >> IMPORTS >>    MODULE-IDENTITY, OBJECT

RE: Unable to mib2c the ALARM-MIB

2010-04-20 Thread Mike Ayers
> From: Kavita Raghunathan [mailto:kavita.raghunat...@skyfiber.com] > Sent: Tuesday, April 20, 2010 12:40 PM > The following line is not liked by mib2c: Any idea why? > > IMPORTS >MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE, > Integer32, Unsigned32, Gauge32, >

Re: Why mib2c generates different .c/.h depending on style?

2010-03-25 Thread Dave Shield
On 24 March 2010 21:08, Kavita Raghunathan wrote: > When I apply mib2c on the MIB, there is a question asked like shown below. > If I pick Net-SNMP style code, there is almost nothing in the .c file and > its meaningless. What do you answer to the other questions? What do yo

Why mib2c generates different .c/.h depending on style?

2010-03-24 Thread Kavita Raghunathan
Hello, I have now been able to use mib2c on our proprietary old MIB and generate .c/.h files after fixing some tweaking. When I apply mib2c on the MIB, there is a question asked like shown below. If I pick Net-SNMP style code, there is almost nothing in the .c file and its meaningless. When I

Problems with mib2c and net-snmp 5.5

2010-02-22 Thread Ivo Faldini
Hi, I've installed following: 1) Net-SNMP 5.5 binary version for WindowsXP (32 bit) 2) installing Active-Perl 5.10 3) I'm installing perl package( running ppm install NetSNMP.ppd) , After all the above steps when I execute mib2c I'm still gettin

About mib2c...

2010-02-15 Thread ganeshyellapu
Hi, i am woring on window xp and using netsnmp5.5 and visual stdio 2008 the mib2c tool is showing the following: c:\usr\bin\mib2c -c mib2c-mfd.conf ifTable cannot find the a configuration file called mib2c.mfd.conf i looked in /usr/local/share/snmp/ usr/local/share/snmp/mib2c-data ./mib2c

RE: mib2c generation of snmpNotifyFilterTable code

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

Re: mib2c generation of snmpNotifyFilterTable code

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

RE: mib2c generation of snmpNotifyFilterTable code

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

Re: mib2c generation of snmpNotifyFilterTable code

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

RE: mib2c generation of snmpNotifyFilterTable code

2010-01-13 Thread Lewis Adam-VNQM87
Hi Dave, thanks for the quick response. Yes, I did mean snmp-notification-mib. I guess I am trying to get the correct "workflow". I understand that the mib2c will not generate the finished code but now that we have cranked the handle once with snmpNotifyFilterTable files, do we si

Re: mib2c generation of snmpNotifyFilterTable code

2010-01-13 Thread Dave Shield
group\notification\snmpNotifyFilterTable_interface.c >  etc. I presume you mean "snmp-notification-mib" rather than "notification" The FilterTable has been implemented separately from the basic NotifyTable, and the FilterProfileTable > I can see that these files are generated by mib2c b

mib2c generation of snmpNotifyFilterTable code

2010-01-13 Thread Lewis Adam-VNQM87
files are generated by mib2c but what I can't see are the exact commands (presumably in a makefile somewhere) that generate these files. Is the code generation completely generic or has there been some customisation specifically for snmpNotifyFilterTable? I think I have found a problem (se

RE: 回复: what wrong with my mib2c .iterate.conf generate .c file?? ?

2009-12-08 Thread Mike Ayers
> From: Dave Shield [mailto:d.t.shi...@liverpool.ac.uk] > Sent: Tuesday, December 08, 2009 2:09 AM > > My .c code file has something wrong > > There is nothing obviously wrong with your C code. > It looks to be working fine. I see a bit of a problem - no business logic. Our Fei-fei has

Re: which mib2c template should I use?(my mib file has many tables)

2009-11-30 Thread Dave Shield
2009/11/30 飞飞 : > in my mib file,I have many tables,so which mib2c template should I use? Please see the FAQ entry Which mib2c configuration file should I use? > can I get the the whole constructure of the mib tables file(.c,.h) one time? It depends on which template you use. Many

which mib2c template should I use?(my mib file has many tables)

2009-11-30 Thread 飞飞
Hi all: in my mib file,I have many tables,so which mib2c template should I use? can I get the the whole constructure of the mib tables file(.c,.h) one time? TIA Alex-- Let Crystal Reports handle the reporting - Free

Need Help. How to use mib2c?

2009-11-04 Thread Pramoda M. A
Hi All, I have one mib file and I have to generate C code for that. I have followed these steps 1. got the sources and others 2. ./configure 3. make 4. make install After these, created a 'mibs' directory in /use/local/share/snmp/ and copied my mib file to there. (say file test.mib)

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

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

[newbie] How to decide, which mib2c configuration to use ...

2009-10-26 Thread Schnell, Daniel
of complex scenarios: local caching of snmp requests, asynchronous communication to other components via IPC to handle the SNMP request, direct answers from the agents context, relation checks, etc. I have read the examples for mib2c, but somehow I find them too simplistic to decide, which mib2c

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: GCC warnings compiling mib2c output

2009-09-16 Thread Bart Van Assche
that'd be the exception I'd ask for.  Our standard says > "-Wall" with no warnings. My proposal does not contradict your coding standard. Strict aliasing is a performance optimization present in newer gcc's. According to the mib2c output that has been posted on

Re: GCC warnings compiling mib2c output

2009-09-16 Thread Bart Van Assche
On Wed, Sep 16, 2009 at 2:08 PM, Christopher Nelson wrote: >> I suppose you could consider tweaking the call to use 'void' rather >> than 'char' pointers.   In retrospect, that would have been a better >> choice, and might keep your compiler happy.   But note that this >> change would have to be a

Re: GCC warnings compiling mib2c output

2009-09-16 Thread Christopher Nelson
>>> I suppose you could consider tweaking the call to use 'void' rather >>> than 'char' pointers.   In retrospect, that would have been a better >>> choice, and might keep your compiler happy.   But note that this >>> change would have to be applied throughout the whole codebase. >> >> I'm running

Re: GCC warnings compiling mib2c output

2009-09-16 Thread Christopher Nelson
>> Recently, we upgraded compilers and we're seeing a lot of >> warnings about "dereferencing type-punned pointer will break >> strict-aliasing rules" > > Well, the warning is technically correct. > The memdup call *does* re-cast these pointers in a potentially > non-safe manner.   But memdup is wo

Re: GCC warnings compiling mib2c output

2009-09-16 Thread Dave Shield
2009/9/14 Christopher Nelson : >  Recently, we upgraded compilers and we're seeing a lot of > warnings about "dereferencing type-punned pointer will break > strict-aliasing rules" Well, the warning is technically correct. The memdup call *does* re-cast these pointers in a potentially non-safe man

Re: GCC warnings compiling mib2c output

2009-09-15 Thread Christopher Nelson
> CN> if (retval) { > CN> ui = SNMP_MALLOC_STRUCT(undoInfo); > ui-> len = retval_len; > CN> memdup((u_char **) & ui->ptr, > CN> (u_char *) retval, ui->len); > CN> } > > CN> which I believe is mib2c output, not something we added to the &g

Re: GCC warnings compiling mib2c output

2009-09-15 Thread Wes Hardaker
>>>>> On Mon, 14 Sep 2009 15:44:58 -0400, Christopher Nelson >>>>> said: CN> if (retval) { CN> ui = SNMP_MALLOC_STRUCT(undoInfo); ui-> len = retval_len; CN> memdup((u_char **) & ui->ptr, CN> (u_char *) retval, ui->len); CN> } CN> w

GCC warnings compiling mib2c output

2009-09-14 Thread Christopher Nelson
We're using Net-SNMP 5.2.2. Some time ago, we generated MIB code with mib2c. Recently, we upgraded compilers and we're seeing a lot of warnings about "dereferencing type-punned pointer will break strict-aliasing rules" in code like: if (retval) {

Re: How to compile Table generated from mib2c

2009-08-31 Thread Wes Hardaker
> On Tue, 25 Aug 2009 14:19:28 +0530, Darshan Ghumare > said: DG> $ make -f Table_Makefile DG> $./Table DG> ./Table: symbol lookup error: /usr/lib/libnetsnmpagent.so.15: undefined DG> symbol: boot_DynaLoader I'm not sure why the Makefile was generated without requiring the -ldl library.

Re: Problem initializing table from mib2c data_set

2009-08-26 Thread niepa inter
Dave, Just to make my question a little clear. How can I enable a rows (created with dataset mib2c) let say : myoid.COLUMN_ROW1.1 myoid.COLUMN_ROW2.1 to respond to GET request because they are currently responding only to GETNEXT requests. I hope this was a little more clear. Thanks for your

Re: Problem initializing table from mib2c data_set

2009-08-26 Thread niepa inter
From: Dave Shield To: niepa inter Cc: net-snmp-users@lists.sourceforge.net Sent: Tuesday, August 25, 2009 2:36:52 AM Subject: Re: Problem initializing table from mib2c data_set 2009/8/24 niepa inter : > /* enable row creation */ > tab

Re: Problem initializing table from mib2c data_set

2009-08-25 Thread Dave Shield
2009/8/24 niepa inter : >     /* enable row creation */ >     table_set->allow_creation = 1; >     netsnmp_table_set_multi_add_default_row(table_set, > COLUMN_PRTCONSOLEDISPLAYBUFFERINDEX, ASN_INTEGER, 0, >     pkt->index, sizeof(pkt->index), > COLUMN_PRTCON

Re: Problem initializing table from mib2c data_set

2009-08-24 Thread niepa inter
From: Dave Shield To: niepa inter Cc: net-snmp-users@lists.sourceforge.net Sent: Monday, August 24, 2009 2:32:08 AM Subject: Re: Problem initializing table from mib2c data_set 2009/8/24 niepa inter : > I modified the netsnmp_table_set_multi_add_default_row

Re: Problem initializing table from mib2c data_set

2009-08-24 Thread Dave Shield
2009/8/24 niepa inter : > I modified the netsnmp_table_set_multi_add_default_row as shown below but it > does not work. > >  netsnmp_table_set_multi_add_default_row(table_set, > 2, ASN_OCTET_STR, 1, mystring1, > strlen(mystring1), >

Problem initializing table from mib2c data_set

2009-08-23 Thread niepa inter
  Hi folks,   I have problem initializing data into tables create with the mib2c data_set method.   I modified the netsnmp_table_set_multi_add_default_row as shown below but it does not work.    netsnmp_table_set_multi_add_default_row(table_set, 2

Re: Re: Re: the order of COLUMNS_XXX in XXXTable_oid.h which is generated by mib2c is not correct

2009-07-04 Thread Dave Shield
MIB module *must* be unique. It is allowed (but not advisable) to duplicate object names as long as they are in different (non-IETF) MIBs, but you can't have the same name twice within one MIB. If you have an illegal MIB, then it's not surprising that mi

Re:Re: Re: the order of COLUMNS_XXX in XXXTable_oid.h which is generated by mib2c is not correct

2009-07-04 Thread ema
columns' names are the same in different table and their definition in mib also have the same name but in different table node(i mean one node that can be generated by mib2c) thank you for your time 在2009-07-02,"Dave Shield" 写道: >[ First - *please* don't mail me privatel

Re: mib2c compilation issue

2009-07-03 Thread Dave Shield
ects does it actually define? I think that you will find that mib2c *has* generated support for every management object in this particular MIB! Dave -- ___ Net-snmp-users mailing

mib2c compilation issue

2009-07-02 Thread Jaikar Nalthooru
Dear All,  I am trying to compile the H.323 MIB file (http://www.itu.int/ITU-T/formal-language/mib/database/itu-t/h/h341/MULTI-MEDIA-MIB-TC.txt). I followed bellow mentioned steps. 1. I copied this file to /usr/local/share/snmp/mibs & /usr/share/snmp/mibs folder. 2. export MIBS=ALL 3. mib2

Re: Re: the order of COLUMNS_XXX in XXXTable_oid.h which is generated by mib2c is not correct

2009-07-02 Thread Dave Shield
] 2009/7/1 ema : > i use the version :5.4.2.1 > suppose > NETSNMP="/home/ema/cprog/net-snmp/net-snmp-5.4.2.1/" > i run command like this in > $NETSNMP_HOME/agent/mibgroup/certusnet/channelTable > $NETSNMP_HOME/local/mib2c -c $NETSNMP_HOME/local/mib2c.mfd.conf channelTab

Re: the order of COLUMNS_XXX in XXXTable_oid.h which is generated by mib2c is not correct

2009-06-30 Thread Dave Shield
2009/6/30 ema : > will anybody fixed the bug > i have example like this: > i use mib2c according the ifTable example That's a bit vague. What was the *exact* command that you ran? What MIB are you running it on? What version of the software are yo

the order of COLUMNS_XXX in XXXTable_oid.h which is generated by mib2c is not correct

2009-06-30 Thread ema
hi,everyone will anybody fixed the bug i have example like this: i use mib2c according the ifTable example,but i got incorrect order like this #define COLUMN_AUDIOSTREAMQUALINDEX 1 #define COLUMN_CHANNELADDRESS 2 #define COLUMN_MINMOSA 3 #define COLUMN_AVGMOSA 4

Re: mib2c format

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

mib2c format

2009-06-04 Thread kusuma.bm
Hi, i would like to know the mib2c command format that has been used to generate the VACM MIBS that exposes API's like vacm_parse_group, vacm_parse_access and vacm_parse_view, basically i want to generate code for a mib snmpTargetAddrExtTable , and i want it to be generated in the

Re: dows mib2c generate write routines for set commands

2009-06-01 Thread Dave Shield
2009/6/1 Richard Gipps : >   Unfortunately our marketing people want to be able to use > SNMP V1 so I believe we have to use SMIv1. No - this is not correct. Please see the project FAQ entry: Can I use SNMPv1 requests with an SNMPv2 MIB (or vice versa)? http://www.net-snmp.org/wiki/in

RE: dows mib2c generate write routines for set commands

2009-05-31 Thread Richard Gipps
Hi Dave, Unfortunately our marketing people want to be able to use SNMP V1 so I believe we have to use SMIv1. This is not a problem though as I just converted the read-write objects to SMIv2 and ran it through mib2c which generated the code I needed. Thanks again for your help

Re: dows mib2c generate write routines for set commands

2009-05-28 Thread Dave Shield
2009/5/28 Richard Gipps : >  I checked the instance of the file and the object definitely has read-write > access. > I have attached the mib file. Is there any reason why you're using the obsolete SMIv1 format? I've checked, and if you re-write the MIB in SMIv2, then m

RE: dows mib2c generate write routines for set commands

2009-05-28 Thread Richard Gipps
, 28 May 2009 5:24 PM To: Richard Gipps Cc: net-snmp-users@lists.sourceforge.net Subject: Re: dows mib2c generate write routines for set commands 2009/5/28 Richard Gipps : >I have added am object to my MIB with read-write access, but when > I run mib2c with the following parameters it do

Re: dows mib2c generate write routines for set commands

2009-05-28 Thread Dave Shield
2009/5/28 Richard Gipps : >I have added am object to my MIB with read-write access, but when > I run mib2c with the following parameters it does not generate any > code for setting variables. > > mib2c  -c mib2c.scalar.conf trioDatacom mib2c should generate a SET processin

dows mib2c generate write routines for set commands

2009-05-27 Thread Richard Gipps
Hi, I have been successfully using mib2c to generate code deals with an SNMP get command, but now I want to implement some code for SNMP set commands. I have added am object to my MIB with read-write access, but when I run mib2c with the following parameters it does not generate

Re: using mib2c compiler

2009-05-27 Thread Dave Shield
ted/SIP-TC-MIB-sip-12.txt) There are no management objects in this MIB file. It simply contains textual conventions, for use in other MIBs. Because there are no MIB objects, mib2c will indeed generate an empty template. Dave -

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: mib2c API style of TargetAddrTable.

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

mib2c API style of TargetAddrTable.

2009-04-14 Thread kusuma.bm
Hi, i would like which API style has been used to generate snmpTargetAddrTable code (netsnmp-5.4.2.1) using mib2c compiler so that i can use the same API style to generate code for snmpCommunityTable . Regards kusum

diffrence in different options of mib2c

2009-03-26 Thread query sh
Hi All, I am going to use mib2c for net-snmp skeleton code generation. Could any one let me know that what are differences in the following mib2c options. mib2c.array-user.conf mib2c.create-dataset.conf mib2c.int_watch.conf mib2c.iterate.conf mib2c.iterate_access.conf And for the table

Re: Regarding mib2c tool

2009-03-25 Thread Dave Shield
2009/3/24 Tanisha Kashyap : > I need to generate a c code for a scalar object which is an integer. > The mib2c tool seems to generate the get functions for the scalar objects > and the set functionality is only provided for the tables. No - that's not correct. The mib2c.scalar.conf

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

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

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

2009-03-24 Thread Tanisha Kashyap
Hi, I am trying to generate the code using: mib2c -c mib2c.scalar.conf abc and I get an error "you didn't give me a valid OID to start with..." Abc is the name of one of the objects in the mib. The mib is placed in the mibs dir: /usr/sma/snmp/mibs Tanisha "No task is so

Regarding mib2c tool

2009-03-24 Thread Tanisha Kashyap
Hi, I need to generate a c code for a scalar object which is an integer. The object can be set from the nms. The mib2c tool seems to generate the get functions for the scalar objects and the set functionality is only provided for the tables. Is there any conf file that can be used to generate

Re: Which mib2c Config. file to use ???

2009-03-14 Thread valantina arumugam
Thank You Dave.. --- On Fri, 13/3/09, Dave Shield wrote: From: Dave Shield Subject: Re: Which mib2c Config. file to use ??? To: vals...@yahoo.co.in Cc: net-snmp-users@lists.sourceforge.net Date: Friday, 13 March, 2009, 5:41 PM 2009/3/13  : >   I am writing code for table whose values

Re: Which mib2c Config. file to use ???

2009-03-13 Thread Dave Shield
est . After long browsing into man > pages & mail-archive , I have choosed  mib2c.iterate.conf to generate the > code for this kind of table. > >   Can anyone please confirm the mib2c config. file which i have choosed is > right or not. There is no single Right Choice for

Which mib2c Config. file to use ???

2009-03-13 Thread vals_85
sing into man pages & mail-archive , I have choosed  mib2c.iterate.conf to generate the code for this kind of table.     Can anyone please confirm the mib2c config. file which i have choosed is right or not. Thanks Valantina Cricket on your mind? Visit the ultimate cricket websit

Re: Broken mib2c ifTable make?

2008-12-22 Thread Nikos Balkanas
code (the MFD configuration file is the latest step towards this goal - see the MFD tutorial here). or General mib2c overview->mib2c.mfd.conf tutorial Both of them link to the legacy: http://www.net-snmp.org/tutorial/tutorial-5/toolkit/mfd/ that I used. Has anybody tried doing it? Does it w

RE: Broken mib2c ifTable make?

2008-12-22 Thread Mike Ayers
> From: Nikos Balkanas [mailto:nbalka...@gmail.com] > Sent: Monday, December 22, 2008 1:57 PM > First of all thanks for replying. With the low traffic in the > group I was > thinking it a lost cause. You need much more patience than that... > These are the exact directions from the tu

Re: Broken mib2c ifTable make?

2008-12-22 Thread Nikos Balkanas
Thanks for replying. There is no config.log. This is from a binary Solaris package from the distribution of Solaris 10.5. I downloaded the mib from the tutorial web site and I run mib2c on it. For the first error, the offending lines are: ** ./ifTable_data_access.c

Re: Broken mib2c ifTable make?

2008-12-22 Thread Nikos Balkanas
use the particular Makefile, not the default "Makefile". BR, Nikos - Original Message - From: "Mike Ayers" To: "Nikos Balkanas" ; Sent: Monday, December 22, 2008 10:18 PM Subject: RE: Broken mib2c ifTable make? > From: Nikos Balkanas [mailto:nb

RE: Broken mib2c ifTable make?

2008-12-22 Thread Mike Ayers
> From: Nikos Balkanas [mailto:nbalka...@gmail.com] > Sent: Monday, December 22, 2008 11:58 AM > make -f ifTable_Makefile I don't think you can do that. I believe you must perform `make` in the top level directory and make everything. HTH, Mike ---

Re: Broken mib2c ifTable make?

2008-12-22 Thread Brian A. Seklecki
: net-snmp-users@lists.sourceforge.net Sent: Monday, December 22, 2008 9:02 AM Subject: Broken mib2c ifTable make? Hi,-- ___ Net-snmp-users mailing list Net-

Re: Broken mib2c ifTable make?

2008-12-22 Thread Nikos Balkanas
Any ideas? Anyone? BR, Nikos - Original Message - From: Nikos Balkanas To: net-snmp-users@lists.sourceforge.net Sent: Monday, December 22, 2008 9:02 AM Subject: Broken mib2c ifTable make? Hi, I am very new to snmp coding. I am going through the mib2c ifTable tutorial

Broken mib2c ifTable make?

2008-12-21 Thread Nikos Balkanas
Hi, I am very new to snmp coding. I am going through the mib2c ifTable tutorial. My OS is Solaris 10.5 w/snmpd 5.4.1. Everything goes fine until the make command: make -f ifTable_Makefile gcc -I. `net-snmp-config --base-cflags` -Wall -Wstrict-prototypes -c -o ifTable_data_access.o

Problem in generating template code with "mib2c -c mib2c.iterate.conf .."

2008-10-24 Thread umashankar tm
Hi All,   I am getting the following message when I run mib2c -c mib2c.iterate.conf ifXTable. It does generate .[ch] file but without the handler get/set operation.        --- [EMAIL PROTECTED]:~# mib2c -c mib2c.iterate.conf ifXTable writing to

Re: mib2c without perl

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

Re: mib2c without perl

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

mib2c without perl

2008-09-02 Thread dan anderson
Two questions: Is it possible to run mib2c without perl modules installed? I get an error and haven't found a workaround. Either way, is it possible to use the resulting .c and .h files without the perl modules? I expect so, since they're obviously C or C++ files, but I figure it'

<    1   2   3   4   5   6   >