Re: Memory usage (was select() on external FDs in get APIs)

2007-06-07 Thread Magnus Fromreide
On tor, 2007-06-07 at 06:25 -0400, Robert Story wrote: > On Wed, 06 Jun 2007 23:46:33 +0200 Magnus wrote: > MF> valgrind ./test -f > MF> ^C > MF> malloc/free: 25,348 allocs, 25,345 frees, 1,234,953 bytes allocated. > MF> > MF> as compared to > MF> > MF> MIBS= valgrind ./test -f > MF> ^C > MF> mal

Re: How to integrate NetSNMP into a working Linux environment?

2007-06-07 Thread Magnus Fromreide
On tor, 2007-06-07 at 12:48 -0700, Need Help wrote: > Are you recommending we hire a "NetSNMP consultant" to come in and > explain what can be done to integrate NetSNMP into our environment? > If so, I can mention it to my management, but I would assume they > would first like to know what each com

RE: How to integrate NetSNMP into a working Linux environment?

2007-06-07 Thread Bruce Shaw
>I am not knowledgeable in this area at all. Then maybe we should be talking to someone who is. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error pl

Re: suggestion...

2007-06-07 Thread Dave Shield
On 07/06/07, Aleksandr Lomanov <[EMAIL PROTECTED]> wrote: > how slowly will work test mode of project, if all memory allocation > functions, such > as malloc, realloc, calloc change to function with pointer registration in > the pointer list ? > When program finishes the work, simply print list o

suggestion...

2007-06-07 Thread Aleksandr Lomanov
Hello, all! how slowly will work test mode of project, if all memory allocation functions, such as malloc, realloc, calloc change to function with pointer registration in the pointer list ? #define NETSNMP_PL_TEST_MODE // something like this #ifdef NETSNMP_PL_TEST_MODE #define malloc snmp_pl_mal

when released memory for tmpbuf variable in func snmp_parse_oid() in mib.c ?

2007-06-07 Thread Aleksandr Lomanov
Hello, all ! when released memory for tmpbuf variable in func snmp_parse_oid() in mib.c ? does exist similar to library shutdown part of code ? Aleksandr Lomanov ICQ#: 170411676 - This SF.net email is sponsored by DB2 Expr

Re: How to integrate NetSNMP into a working Linux environment?

2007-06-07 Thread Need Help
I am not knowledgeable in this area at all. I really can not comment on this. Based on the meeting we had, I was under the impression they would prefer not to use "configure" as part of the build sequence. Perhaps using "configure" outside of the build sequence to simply obtain changed fil

Re: Expanding the "data_context" structure to include other Table fields

2007-06-07 Thread Robert Story
On Thu, 7 Jun 2007 13:33:51 -0700 (PDT) Need wrote: NH> Returning MFD_SKIP from the Table2_row_prep() routine results in the following error: NH> NH> Error in packet. NH> Reason: (genError) A general failure occured NH> NH> NH> I generated the first two rows using snmpwalk and then decided

Re: Expanding the "data_context" structure to include other Table fields

2007-06-07 Thread Robert Story
On Thu, 7 Jun 2007 12:05:15 -0700 (PDT) Need wrote: NH> Ugh ... I just noticed something I think I am doing wrong: NH> NH> The Table2 data_context structure came configured with a "ProtectionStatus" field defined in it (since this is in my MIB). Knowing that Table2 is an extension of Table1

Re: Expanding the "data_context" structure to include other Table fields

2007-06-07 Thread Robert Story
On Thu, 7 Jun 2007 11:01:47 -0700 (PDT) Need wrote: NH> A) You stated there are other methods (instead of using "se_add_pair_to_slist" and "se_find_value_in_slist" routines) which can be used to remember index values. I assume "other methods" mean that I am free to implement any other way to re

Re: Expanding the "data_context" structure to include other Table fields

2007-06-07 Thread Robert Story
On Thu, 7 Jun 2007 10:10:47 -0700 (PDT) Need wrote: NH> Anyway, does switching these two lines around truely control the order in which the tables are initialized? If not, then I guess I will need to do what you are recommending in your response email instead. It does, but assume that the way

Re: How to integrate NetSNMP into a working Linux environment?

2007-06-07 Thread Robert Story
On Thu, 7 Jun 2007 12:32:00 -0700 (PDT) Need wrote: NH> During this discussion, the "build-production" people at my company informed me we can not perform the "configure" command as part of our "build process". Unless you have a static fixed environment, they are pretty much nuts. Replicating co

Re: Expanding the "data_context" structure to include other Table fields

2007-06-07 Thread Need Help
Returning MFD_SKIP from the Table2_row_prep() routine results in the following error: Error in packet. Reason: (genError) A general failure occured I generated the first two rows using snmpwalk and then decided to return MFD_SKIP for the third row request, thinking that the row data would

Re: How to integrate NetSNMP into a working Linux environment?

2007-06-07 Thread Dave Shield
On 07/06/07, Need Help <[EMAIL PROTECTED]> wrote: > Is it crazy to think we can perform everything that "./configure", "make" > and "make install" does oursleves without using those commands? Yes! You could perhaps set up the 'Makefile' and net-snmp-config.h files manually, but you'd need to run

Re: How to integrate NetSNMP into a working Linux environment?

2007-06-07 Thread Need Help
Are you recommending we hire a "NetSNMP consultant" to come in and explain what can be done to integrate NetSNMP into our environment? If so, I can mention it to my management, but I would assume they would first like to know what each command does internally to the files and NetSNMP environmen

Re: How to integrate NetSNMP into a working Linux environment?

2007-06-07 Thread Steve Friedl
On Thu, Jun 07, 2007 at 12:32:00PM -0700, Need Help wrote: > Ok, my company would like me to start discussing how to incorporate NetSNMP > into the company's build environment. I explained the following stuff: Your company should probably retain a consultant experienced in these matters, becaus

How to integrate NetSNMP into a working Linux environment?

2007-06-07 Thread Need Help
Ok, my company would like me to start discussing how to incorporate NetSNMP into the company's build environment. I explained the following stuff: - Indicated "./configure", "make" and "make install" were required for NetSNMP - Indicated "snmp.conf" and "snmpd.conf" files exist to define stuff

Re: Expanding the "data_context" structure to include other Table fields

2007-06-07 Thread Need Help
Ugh ... I just noticed something I think I am doing wrong: The Table2 data_context structure came configured with a "ProtectionStatus" field defined in it (since this is in my MIB). Knowing that Table2 is an extension of Table1 (and based on our past discussions on how to implement this ty

Re: Expanding the "data_context" structure to include other Table fields

2007-06-07 Thread Need Help
A) You stated there are other methods (instead of using "se_add_pair_to_slist" and "se_find_value_in_slist" routines) which can be used to remember index values. I assume "other methods" mean that I am free to implement any other way to remember index values if I want :>) ... or perhaps other m

Re: Expanding the "data_context" structure to include other Table fields

2007-06-07 Thread Need Help
Ok, I sent this email to you before I got your other reply. :>P Anyway, I did find a way to reverse the order of the init routines being called, but it just may be lucky I guess please confirm The file "agent/mibgroup/OC-STB-HOST-MIB.h" exists (which I needed to create manually base

Re: Expanding the "data_context" structure to include other Table fields

2007-06-07 Thread Robert Story
On Thu, 7 Jun 2007 09:50:24 -0700 (PDT) Need wrote: NH> Referring to my oroblem outlined in (1) below .. NH> NH> It seems the problem might be due to the fact that Table2(ocStbHostAnalogVideoTable) seems to be initialized before Table1(ocStbHostAVInterfaceTable), thus the cache from Table1 d

Re: Expanding the "data_context" structure to include other Table fields

2007-06-07 Thread Robert Story
On Thu, 7 Jun 2007 07:30:03 -0700 (PDT) Need wrote: NH> 1) I updated my code a bit but for some reason the Table2_row_prep() routine is never called when I perform a "snmpwalk" of Table2. Any ideas why "Table2_row_prep()" is not being called at all (see the steps a-e below)? Nope. Try running t

Re: Expanding the "data_context" structure to include other Table fields

2007-06-07 Thread Robert Story
On Thu, 7 Jun 2007 08:59:37 -0700 (PDT) Need wrote: NH> if (MFD_SUCCESS != rc) NH> netsnmp_request_set_error_all(requests, rc); NH> else NH> ocStbHostAnalogVideoTable_row_prep(rowreq_ctx); NH> NH> return SNMP_VALIDATE_ERR(rc); NH> } /* _mf

Re: Expanding the "data_context" structure to include other Table fields

2007-06-07 Thread Need Help
Referring to my oroblem outlined in (1) below .. It seems the problem might be due to the fact that Table2(ocStbHostAnalogVideoTable) seems to be initialized before Table1(ocStbHostAVInterfaceTable), thus the cache from Table1 does not exist yet and can not be used for Table2. Is there a w

Re: Expanding the "data_context" structure to include other Table fields

2007-06-07 Thread Need Help
Referring to my (3) question (shown below in attached email). I see the Table2 "_mfd_ocStbHostAnalogVideoTable_object_lookup()" routine calls the Table2 "ocStbHostAnalogVideoTable_row_prep()" routine. I attached this code below for reference: static int _mfd_ocStbHostAnalogVideoTable_obj

Re: Expanding the "data_context" structure to include other Table fields

2007-06-07 Thread Need Help
1) I updated my code a bit but for some reason the Table2_row_prep() routine is never called when I perform a "snmpwalk" of Table2. Any ideas why "Table2_row_prep()" is not being called at all (see the steps a-e below)? Here are the two tables I am dealing with for testing: Table1(ocStbHostAV

Re: bug in unregister_sec_mod()

2007-06-07 Thread Dave Shield
On 07/06/07, Aleksandr Lomanov <[EMAIL PROTECTED]> wrote: > int > unregister_sec_mod(int secmod) > { > struct snmp_secmod_list *sptr, *lptr; > > for (sptr = registered_services, lptr = NULL; sptr; > lptr = sptr, sptr = sptr->next) { > if (sptr->securityModel == secmod) { >

Re: bug in unregister_sec_mod()

2007-06-07 Thread Thomas Anders
Aleksandr Lomanov wrote: > file snmp_secmod.c, function > > int > unregister_sec_mod(int secmod) > { > struct snmp_secmod_list *sptr, *lptr; > > for (sptr = registered_services, lptr = NULL; sptr; > lptr = sptr, sptr = sptr->next) { > if (sptr->securityModel == secmod) {

bug in unregister_sec_mod()

2007-06-07 Thread Aleksandr Lomanov
Hello, all ! file snmp_secmod.c, function int unregister_sec_mod(int secmod) { struct snmp_secmod_list *sptr, *lptr; for (sptr = registered_services, lptr = NULL; sptr; lptr = sptr, sptr = sptr->next) { if (sptr->securityModel == secmod) { //- if secmod match

Re: Memory usage (was select() on external FDs in get APIs)

2007-06-07 Thread Robert Story
On Wed, 06 Jun 2007 23:46:33 +0200 Magnus wrote: MF> valgrind ./test -f MF> ^C MF> malloc/free: 25,348 allocs, 25,345 frees, 1,234,953 bytes allocated. MF> MF> as compared to MF> MF> MIBS= valgrind ./test -f MF> ^C MF> malloc/free: 1,375 allocs, 1,372 frees, 311,625 bytes allocated. MF> MF> I th

Re: problem in set request for multiple indexes column!

2007-06-07 Thread Robert Story
On Wed, 6 Jun 2007 15:49:10 +0530 Awadhesh wrote: A> [...] If i try to set A> the particular column instances with some value, it sets properly as per A> response (please note that , no error come) but If I read the same A> instances(same column) it is giving the old value which i have initialized

Re: Expanding the "data_context" structure to include other Table fields

2007-06-07 Thread Robert Story
On Tue, 5 Jun 2007 08:29:17 -0700 (PDT) Need wrote: NH> I have Table1 (main table) and Table2 ("1394 table" which is an extension of Table1). Lets say I have updated the Table2_container_init() routine to indicate that Table2 should use the same cache that Table1 uses. Now, when the first SN

Re: select() on external FDs in get APIs

2007-06-07 Thread Shivani Garg
Hi, Thanks for your response on this. I could solve this problem.. Shivani On 6/7/07, Dave Shield <[EMAIL PROTECTED]> wrote: On 03/06/07, Shivani Garg <[EMAIL PROTECTED]> wrote: > I am not able to debug why my OID is not getting registered with snmpd. Have you tried working through the chec