Memory leak in MFD logic?

2010-11-29 Thread kavita raghunathan
Hello, after spending nearly 1 week on this, I thought I will email to ask. Any known leaks in MFD logic ? I'm using net-snmp-5.5, and after many walks I see leaks of 1M each. I looked at 5.6, and ported over all the fixes that claimed to be memory leak fixes in the table and row logic. But

Data storage variable inconsistant

2010-10-22 Thread kavita raghunathan
Hello, I found out the hard way that net-snmp snmpd process forks, and the parent sometimes quits immediatly and sometimes stays. I traced it down to a variable in default store called NETSNMP_DS_STORE_QUIT_IMMEDIATLY. Any ideas why this variable would sometimes be set and sometimes not set to

Re: How to stop deprecated table from responding

2010-10-06 Thread kavita raghunathan
Hello, I did not receive any response to this email. I appreciate if someone knows the answer or can give me some ideas. Thanks, Kavita --- On Fri, 10/1/10, kavita raghunathan kraghuna2...@yahoo.com wrote: From: kavita raghunathan kraghuna2...@yahoo.com Subject: How to stop deprecated table

Re: How to stop deprecated table from responding

2010-10-06 Thread kavita raghunathan
Thank you! --- On Wed, 10/6/10, Ryota YUSHINA uc7_...@yahoo.co.jp wrote: From: Ryota YUSHINA uc7_...@yahoo.co.jp Subject: Re: How to stop deprecated table from responding To: kavita raghunathan kraghuna2...@yahoo.com Cc: net-snmp-users@lists.sourceforge.net Date: Wednesday, October 6, 2010

How to stop deprecated table from responding

2010-10-01 Thread kavita raghunathan
Hello, AT Table is deprecated in mibII, yet net-snmp responds. How can I get it to not respond without removing any code ? Is this possible ? I'm using agent net-snmp 5.5 over linux. Thanks, Kavita -- Start

Memory leak in 5.5

2010-09-27 Thread kavita raghunathan
Hello, I'm using net-snmp-5.5 over centos Linux and notice that the snmpd process gradually eats up memory over time. Please note that no gets or sets are going on. I have posted before with no response. Please help. Is this a known problem ? The leak occurs with no extra mibs other than the

Re: Memory leak in 5.5

2010-09-27 Thread kavita raghunathan
, but maybe you all know of one. Should I be trying dmalloc ? --- On Mon, 9/27/10, Bart Van Assche bvanass...@acm.org wrote: From: Bart Van Assche bvanass...@acm.org Subject: Re: Memory leak in 5.5 To: kavita raghunathan kraghuna2...@yahoo.com Cc: net-snmp-users@lists.sourceforge.net Date: Monday

Re: Memory leak in 5.5

2010-09-27 Thread kavita raghunathan
, 255); margin-left: 5px; padding-left: 5px; From: Bart Van Assche bvanass...@acm.org Subject: Re: Memory leak in 5.5 To: kavita raghunathan kraghuna2...@yahoo.com Cc: net-snmp-users@lists.sourceforge.net Date: Monday, September 27, 2010, 11:12 AM div id=yiv1629996917font size=2On Mon, Sep 27

RE: mib2c does not like object syntax IpAddress

2010-09-23 Thread kavita raghunathan
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

mib2c does not like object syntax IpAddress

2010-09-22 Thread kavita raghunathan
Hello, even though I import IpAddress, I get an error while generating c files that looks like this: writing to defaults/table-sfOWBFarEndTable.m2d Starting MFD code generation... writing to sfOWBFarEndTable.h | +- Processing table sfOWBFarEndTable writing to

Re: Net-snmp leaks memory after 5 hours

2010-09-08 Thread kavita raghunathan
I am referring to VSZ. Regards, Kavita --- On Wed, 9/8/10, Bart Van Assche bvanass...@acm.org wrote: From: Bart Van Assche bvanass...@acm.org Subject: Re: Net-snmp leaks memory after 5 hours To: kavita raghunathan kraghuna2...@yahoo.com Cc: Net-snmp-users@lists.sourceforge.net Date: Wednesday

Net-snmp leaks memory after 5 hours

2010-09-07 Thread kavita raghunathan
Hello, After 5 hours, I notice that the memory usage of net-snmp has jumped. It does not seem to depend on the application code I have written - any ideas where to look ? Thanks, Kavita -- This SF.net Dev2Dev

Re: Net-snmp leaks memory after 5 hours

2010-09-07 Thread kavita raghunathan
leaks memory after 5 hours To: net-snmp-users@lists.sourceforge.net Date: Tuesday, September 7, 2010, 5:13 PM kavita raghunathan wrote: Hello, After 5 hours, I notice that the memory usage of net-snmp has jumped. It does not seem to depend on the application code I have written - any ideas where

Container load

2010-08-12 Thread kavita raghunathan
Hello, When I turn on container load (specifically NETSNMP_CACHE_AUTO_RELOAD) , snmp get to agent no longer works. Anyone know why? Thanks, Kavita -- This SF.net email is sponsored by Make an app they can't

Re: Container load

2010-08-12 Thread kavita raghunathan
BTW, I tried increasing timeout, so its not that. Kavita --- On Thu, 8/12/10, kavita raghunathan kraghuna2...@yahoo.com wrote: From: kavita raghunathan kraghuna2...@yahoo.com Subject: Container load To: net-snmp-users@lists.sourceforge.net Date: Thursday, August 12, 2010, 3:56 PM Hello

Crash in snmpd: Need general idea

2010-08-08 Thread kavita raghunathan
Hello, using net-snmp 5.5 and snmp agent crashes like so during a MIB walk: netsnmp_assert (((void *)0) != lhs) (((void *)0) != rhs) failed container.c:460 netsnmp_compare_netsnmp_index() What does this crash mean? Does it mean the index does not exist? Thanks, Kavita

wrong table called at agent!

2010-07-28 Thread kavita raghunathan
Hello, I have 3 tables, table1, table2 and table3. They have OIDs ending with 1.x, 2.x and 3.x respectively. When I direct the mib browser (I'm using ireasoning) to fetch table1 data 1.1, 1.2, 1.3 etc, it fetches table1 1.1, 1.2, 1.3 data. When I direct the browser to use table2 (2.1, 2.2,

Re: Example reading the ifTable with C

2010-07-09 Thread Kavita Raghunathan
I went through this struggle myself. Please look under data_access/interface.c, data_access/interface_linux.c, data_access/interface_ioctl.c. You have not mentioned what OS this router is running. If it is using a BSD type IP stack, and has an ioctl interface to the ethernet driver, then the

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

Cannot build net-snmp for target using cross-compile

2010-06-16 Thread Kavita Raghunathan
Hello, How do I specify the right ld for the build to work ? I’m using linux and while linking with a library that contains the calls from SNMP agent, it uses the wrong link path : /usr/bin/ld The configure line: ./configure LD=${CROSS_COMPILE}ld CC=${CROSS_COMPILE}gcc CXX=${CROSS_COMPILE}g++

Re: Cannot build net-snmp for target using cross-compile

2010-06-16 Thread Kavita Raghunathan
PM, Kavita Raghunathan kavita.raghunat...@skyfiber.com wrote: Hello, How do I specify the right ld for the build to work ? I’m using linux and while linking with a library that contains the calls from SNMP agent, it uses the wrong link path : /usr/bin/ld The configure line: ./configure LD

Re: Cache load does not get called

2010-06-04 Thread Kavita Raghunathan
-4803 Kavita Raghunathan kavita.raghunath To a...@skyfiber.com Wes Hardaker harda...@users.sourceforge.net 06/03/2010 04:36

Re: Cache load does not get called

2010-06-04 Thread Kavita Raghunathan
. I used mib2c.table_data.conf. FYI. Kathy McLeod Dept S82 CCB - SNMP IBM Rochester, MN (507) 253-4803 Kavita Raghunathan kavita.raghunath To a...@skyfiber.com

Re: Cache load does not get called

2010-06-03 Thread Kavita Raghunathan
:57:58 -0500, Kavita Raghunathan kavita.raghunat...@skyfiber.com said: KR Does this mean I need to update a conf file ? Please let me know - That means that the transport your trying to opened can't be opened. If you're not specifying a transport: 1) If you're running as root

Re: Cache load does not get called

2010-06-02 Thread Kavita Raghunathan
I debugged and found out that netsnmp_transport_open_server returns a NULL and the call just returns Error opening a specified endpoint and snmpd does not run. Does this mean I need to update a conf file ? Please let me know - Kavita On 6/1/10 11:44 PM, Kavita Raghunathan kavita.raghunat

Re: Cache load does not get called

2010-06-01 Thread Kavita Raghunathan
Thanks. The init statement does not get called. Why wouldn't it? I verified that the files get compiled. On Jun 1, 2010, at 10:50 PM, Wes Hardaker harda...@users.sourceforge.net wrote: On Tue, 1 Jun 2010 16:03:05 -0500, Kavita Raghunathan kavita.raghunat...@skyfiber.com said: KR I

Why cant I run make for net-snmp

2010-05-26 Thread Kavita Raghunathan
./configure --with-mib-modules=skyfiber-olu-mib --with-linkcc=g++ --with-libs=/home/kraghunathan/views/sfdev-2.0/src/thirdparty/net-snmp-5.5/libui.a /home/kraghunathan/views/sfdev-2.0/src/thirdparty/net-snmp-5.5/libutl.a /usr/lib/libpthread.a I did a configure, when I try to issue make, it does

What does x: in generated c files mean?

2010-05-24 Thread Kavita Raghunathan
I notice this in my generated .c/.h using mib2c. What does it mean? /* * DUMMY markers, ignore * * TODO:099:x: * * TODO:199:x: * * TODO:299:x:

Re: When is object_lookup called?

2010-04-30 Thread Kavita Raghunathan
Can someone tell me how I can use row_prep? I need to update a row every time, not just each time cache_load runs. Thanks! Kavita On 4/29/10 3:47 PM, Kavita Raghunathan kavita.raghunat...@skyfiber.com wrote: Hello, I’m not able to figure out when row_prep is called. I would like to prep my

When is object_lookup called?

2010-04-29 Thread Kavita Raghunathan
Hello, I’m not able to figure out when row_prep is called. I would like to prep my row every time a get is done. Please help me trace this ifTable_row_prep call to when it is called during a get. Thanks, Kavita --

Linking net-snmp with cpp objects

2010-04-16 Thread Kavita Raghunathan
Hello, I would like to link net-snmp with a library that has c++ objects. I notice that “new” and “delete” are not found and I get link errors. I have enclosed my configure line. I appreciate some input on this. ./configure --with-defaults --with-dummy-values --with-libs=libabc.a “libabc.a”

If up/down notification

2010-04-09 Thread Kavita Raghunathan
Hello, I notice that if up/down is only invoked from the ifTable_container_load function. This function is called only during initialization. So, this seems to indicate that the if up down notification will only be sent out the first time the software starts up. What about subsequent interface

Question on etherlike MIB and if-mib relationship

2010-04-07 Thread Kavita Raghunathan
Hello, I’m unable to use the linux code that the net-snmp-5.5 generates to reach the ethernet drivers because though our system uses linux, the ethernet device isnt accessible through ioctls (and no, I cant change our system to make it so, I’ve checked). So, I’m writing some of my own code. I

EtherLike MIB

2010-03-31 Thread Kavita Raghunathan
Hello, I notice out of all the tables in the EtherLike MIB, code exists only for dot3StatsTable. What about the dot3CollTable, dot3ControlTable, dot3PauseTable and dot3HCStatsTable? I’m using net-snmp-5.5 at the advice of this forum. I switched from net-snmp-4.5.1 which does not support

Adding a library to net-snmp

2010-03-25 Thread Kavita Raghunathan
Hello, I have been through all the Makefiles(Makefile.in, Makefile.rules, Makefile.top) and such in the net-snmp-5.5 directory (we’re using Redhat linux as the development environment) and I’m not able to find how to easily add a library to net-snmp. Can you point me to READMEs or examples or

Re: How to add EtherLike-MIB to net-snmp?

2010-03-24 Thread Kavita Raghunathan
Ok. I understand this version does not come with Etherlike-MIB. But I thought I could start with any MIB file (from an RFC, or proprietary) and generate stubs. For now, let me ask you: how do I use EtherLike-MIB.txt to generate .c and .h, even if they are only stubs ? ( and I have to implement

Re: How to add EtherLike-MIB to net-snmp?

2010-03-24 Thread Kavita Raghunathan
Please see my comments. On 3/24/10 8:51 AM, Dave Shield d.t.shi...@liverpool.ac.uk wrote: On 24 March 2010 13:45, Kavita Raghunathan kavita.raghunat...@skyfiber.com wrote: But I thought I could start with any MIB file (from an RFC, or proprietary) and generate stubs. Correct. Big sigh

Re: How to add EtherLike-MIB to net-snmp?

2010-03-24 Thread Kavita Raghunathan
other free-ware user groups. So I appreciate having escaped an Ouch(!) and thank for your courtesy and kindness. Regards, Kavita On 3/24/10 10:38 AM, Dave Shield d.t.shi...@liverpool.ac.uk wrote: On 24 March 2010 13:58, Kavita Raghunathan kavita.raghunat...@skyfiber.com wrote:       For now

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

How to add EtherLike-MIB to net-snmp?

2010-03-23 Thread Kavita Raghunathan
Hello, I’ve tried various things to add EtherLike-MIB to net-snmp and have also been googling real hard but cannot find the answer. I’m using net-snmp-5.4.1 1. I did export MIBS = ALL followed by ./configure as well as make, make install but it pulled in everything except EtherLike MIB into

Re: Snmpget for V3 returns error

2010-03-10 Thread Kavita Raghunathan
/snmpd.conf. Do I need 2 files ? Kavita On 3/10/10 2:30 AM, Dave Shield d.t.shi...@liverpool.ac.uk wrote: On 9 March 2010 23:04, Kavita Raghunathan kavita.raghunat...@skyfiber.com wrote: I¹m trying to use snmpget and I see an error. I¹ve attached the snmpd.conf as well as the output of snmpget. I¹m

Snmpget for V3 returns error

2010-03-09 Thread Kavita Raghunathan
I’m trying to use snmpget and I see an error. I’ve attached the snmpd.conf as well as the output of snmpget. I’m using linux Centos. [kraghunat...@kavitasfdev ~]$ snmpget -v 3 -u myuser -l authNoPriv -a MD5 -A my_password localhost sysUpTime.0 snmpget: Unknown user name (Sub-id not found: (top)