Dynamic Row Creation/Deletion using "RowStatus" Col

2005-10-07 Thread devsingh
Hi All/ Thank in advance. I am developing SNMP subagent using netsnmp library. My requirement is the "creation/deletion" of row at runtime. Please find following details for the reference:: - To generate the code I have used - "mib2c.access_functions.conf" scripts. - My Tabl

Re: Patch for delaying of tasks attached to snmp_alarm_register

2005-10-07 Thread Magnus Fromreide
On Fri, Oct 07, 2005 at 07:07:52PM -0400, Robert Story wrote: > On Sat, 1 Oct 2005 10:29:08 +0200 Magnus wrote: > MF> > MF> Under your scheme the adjustment to be applied to each alarm is (TC-Ta) > MF> but the adjustment should be (TB-Tb). > > No, my adjustment would be (TC + (Ts - Ta), where Ts

Re: Question on usm_parse_security_parameters

2005-10-07 Thread Robert Story
On Fri, 7 Oct 2005 23:02:19 +0100 Dave wrote: DS> Perhaps when the chaos of the 5.2.2 and 5.3 releases has DS> died down, we could return to this again. Yeah, right! If I hand a nickel for every issue we've tabled, never to be seen again... ;-) (and what are you doing online at such an hour?) --

Re: duplicate tokens

2005-10-07 Thread Robert Story
On Fri, 7 Oct 2005 23:10:29 +0100 Dave wrote: DS> > Did you intend to set up multiple conf tokens to map to the same value? DS> DS> > netsnmp_ds_register_config(ASN_OCTET_STR, "snmpd", "agentSecName", DS> > netsnmp_ds_register_config(ASN_OCTET_STR, "snmpd", "iquerySecName", DS> DS> DS> Y

Re: Counter64 support (was: CVS: net-snmp/snmplib snmp_api.c,5.89)

2005-10-07 Thread Robert Story
On Fri, 07 Oct 2005 10:33:11 +0200 Thomas wrote: TA> > counter64 support to snmp_add_var (so they can be sent w/snmptrap) TA> TA> Can this be applied to the patches branches (5.[12].x) as well? Wrt. the TA> arguing on bug fix vs. new feature I'd tend to consider it a case of TA> making the proto

Re: rfc: mib dir .index

2005-10-07 Thread Robert Story
On Fri, 07 Oct 2005 11:41:26 +0200 Thomas wrote: TA> one of the things that always strikes me with net-snmp is the fact that TA> it handles an ".index" file in the mib directories. I'd actually expect TA> vendors/packages to complain to us since maintaining an .index file in TA> the main mib dir

Re: Counter64 / ifHCInOctets on Windows

2005-10-07 Thread Robert Story
On Fri, 07 Oct 2005 11:03:18 +0100 Dave wrote: DS> There's really only one pair of files that need to be coded: DS> DS> mibgroup/if-mib/data_access/interface_.[ch] Yes, assuming no code is shared with any other methods. DS> Robert's the expert here, but AFAICS, this should contain DS> th

Re: how to genarate traps from agent

2005-10-07 Thread Robert Story
On Thu, 6 Oct 2005 02:40:52 -0700 (PDT) prasanna wrote: PN> What are the steps to follow to genarate traps from net-snmp agent. grep for notification in the agent/mibgroup/examples directory. -- NOTE: messages sent directly to me, instead of the lists, will be deleted unless they are reque

Re: agentx/subagent/community

2005-10-07 Thread Robert Story
On Tue, 4 Oct 2005 08:39:47 -0400 John wrote: JJR> > It's worse than that - this is not possible without breaking the JJR> > AgentX protocol. JJR> JJR> JJR> I see this passage in the agentx rfc - sec 6.1.1: JJR> JJR> "In the SNMPv1 or SNMPv2c, the community string may be used as an JJR>index

Re: Required Information about sending TRAP.

2005-10-07 Thread Robert Story
On Tue, 4 Oct 2005 14:21:42 +0530 Shakeel_Ahamed wrote: S> I want to send a hard coded text message as TRAP information using S> snmptrap, which can be received using snmptrapd. Please tell me in which S> file i need to hard code that text message and what are the steps i need S> to follow to that.

Re: not able to get trap

2005-10-07 Thread Robert Story
On Fri, 30 Sep 2005 18:24:15 -0700 [EMAIL PROTECTED] wrote: RN> DS> The AgentX protocol doesn't include this information. RN> DS> It's simply not possible RN> RN> I need to log some informatin when SET is requested. address and RN> community information should be sent to master. Where in master

Re: Cannot find an adquest mib2c configuration file for travesing large tables.

2005-10-07 Thread Robert Story
On Fri, 30 Sep 2005 16:06:10 -0400 shuki wrote: SS> Hi Robert, thanks for the answer. SS> Any idea when the pass-thru template is going to be available? As soon as someone gets motivated enough to write it! I'm willing the help, but don't have the time myself, at the moment. -- NOTE: messages se

Re: Cannot find an adequate mib2c configuration file for travers ing large tables.

2005-10-07 Thread Robert Story
On Mon, 03 Oct 2005 09:48:04 +0100 Dave wrote: DS> > This is exactly what the row_merge helper is for. It will call the table DS> > handler once for each index, instead of once per varbind. DS> DS> Errr... no - that's not true. (Sorry, Robert!) D'oh! I was thinking of the original iterator cod

Re: Patch for delaying of tasks attached to snmp_alarm_register

2005-10-07 Thread Robert Story
On Sat, 1 Oct 2005 10:29:08 +0200 Magnus wrote: MF> > My suggestion: when the current time is < last run, loop through the MF> > alarms and calculate the diff between last run and next run for each. MF> > Then set each one to run at (now + diff). Effectively, each alarm will MF> > be run after the

Re: Patch for delaying of tasks attached to snmp_alarm_register

2005-10-07 Thread Dave Shield
DS> I suspect that this is probably the way to go - provide a mechanism DS> for the user to specify exactly what behaviour is wanted, rather DS> than trying to guess this automatically. RS> But there is no such flag at the moment, so we need a default for RS> when it is not specified.. Well, what

RE: Cannot find an adquest mib2c configuration file for travesing large tables. --- Does Net-SNMP fit to real time environment?

2005-10-07 Thread Dave Shield
> here is the code maybe something will ring a bell. H I'm not sure that really qualifies as the "trivial example" that I suggested you try. I'll look at it properly on Monday. But one thing strikes me immediately. The heart of the relevant processing is the call: > if(!extract_if

Re: duplicate tokens

2005-10-07 Thread Dave Shield
> Did you intend to set up multiple conf tokens to map to the same value? > netsnmp_ds_register_config(ASN_OCTET_STR, "snmpd", "agentSecName", > netsnmp_ds_register_config(ASN_OCTET_STR, "snmpd", "iquerySecName", Yes. "agentSecName" is for backward compatibility with previous releases. "

Re: Patch for delaying of tasks attached to snmp_alarm_register

2005-10-07 Thread Robert Story
On Mon, 03 Oct 2005 12:11:01 +0100 Dave wrote: DS> On Fri, 2005-09-30 at 16:24 -0400, Robert Story wrote: DS> > I don't think the code know the difference between a time that wants DS> > to run a 3:37 and one that wants to run in 53 seconds. Without adding DS> > a flag, there is nothing we can do a

Re: rfc: Disman Event MIB

2005-10-07 Thread Robert Story
On Tue, 04 Oct 2005 07:02:20 -0700 Wes wrote: WH> Dave> But surely what we're interested in providing (by default) is the WH> Dave> Event-MIB *functionality*, rather than a particular implementation? WH> WH> I think Robert's point should be if we're turning it on by default it WH> should be somewh

Re: Question on usm_parse_security_parameters

2005-10-07 Thread Dave Shield
DS> The difficulty is that it would blow a massive hole in DS> the principle of backward compatability. *All* DS> existing programs that use the Net-SNMP libraries DS> would need to be changed to match > I don't think that's true. The compiler generally accepts differently > named types so long a

Re: 5.2.x make test dependencies on AES?

2005-10-07 Thread Thomas Anders
Robert Story wrote: On Tue, 04 Oct 2005 18:51:20 +0200 Thomas wrote: TA> Care to post your proposal? I don't mind *who* submits the fix, but TA> someone should finally do it. Ah, sorry, I was thinking of a different problem. What I did (and did check in) was to add the stuff that checks for op

Re: rfc: Disman Event MIB

2005-10-07 Thread Robert Story
On Fri, 07 Oct 2005 15:28:06 +0100 Dave wrote: DS> One other question has come to light: DS>When the current implementation sets up a "monitor" directive, DS> it doesn't appear to run the test immediately - even if the test DS> does actually hold true. Instead, it waits until the monitor DS> fr

Re: Running multiple net-snmp agents on different ports

2005-10-07 Thread Robert Story
On Mon, 03 Oct 2005 13:15:20 +0100 Dave wrote: DS> We've already got an AgentX master configuration file. DS> It's called "snmpd.conf". Zing! Ouch! 2 points for Dave... ;-) -- Robert Story; NET-SNMP Junkie Support: Archive:

Re: 5.2.x make test dependencies on AES?

2005-10-07 Thread Robert Story
On Tue, 04 Oct 2005 18:51:20 +0200 Thomas wrote: TA> Care to post your proposal? I don't mind *who* submits the fix, but TA> someone should finally do it. Ah, sorry, I was thinking of a different problem. What I did (and did check in) was to add the stuff that checks for openssl before checking f

Re: Question on usm_parse_security_parameters

2005-10-07 Thread Robert Story
On Mon, 03 Oct 2005 13:29:53 +0100 Dave wrote: DS> Replacing all int/long declarations with suitable DS> int32_t/int64_t (or unsigned equivalents) would be DS> a tedious but fairly straightforward process. The DS> difficulty is that it would blow a massive hole in DS> the principle of backward c

Re: rfc: generic table API

2005-10-07 Thread Robert Story
On Mon, 03 Oct 2005 16:53:22 +0100 Dave wrote: DS> I get the impression that most of what you've said is DS> concerned with the specifics of this particular helper. DS> Did you have any thoughts about this as an example of DS> a more general API framework? Any operations that DS> felt to be missin

duplicate tokens

2005-10-07 Thread Robert Story
Dave, Did you intend to set up multiple conf tokens to map to the same value? void init_iquery(void){ netsnmp_ds_register_config(ASN_OCTET_STR, "snmpd", "agentSecName", NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_INTERNAL_SECNAME);

RE: Cannot find an adquest mib2c configuration file for travesing large tables. --- Does Net-SNMP fit to real time environment?

2005-10-07 Thread sasson, shuki
Thanks for the answer here is the code maybe something will ring a bell. You may send me the code for your trivial MIB and I can follow on that... Shuki #include #include #include #include "ifTable.h" #include "ifNumber.h" #include "networkHelper.hxx" /** Initializes the ifTable module */ voi

C API Help

2005-10-07 Thread Ali Majdzadeh
Hello Does anyone know what are Net-SNMP's C API functions or macros to determine the type of a variable. (I know about vars->type but that is not my case) For example, what template string should be used with fprintf() when I am dealing with integer32,counter64,...? Regards Ali

RE: Cannot find an adquest mib2c configuration file for travesing large tables. --- Does Net-SNMP fit to real time environment?

2005-10-07 Thread Dave Shield
On Fri, 2005-10-07 at 11:56 -0400, sasson, shuki wrote: > I have tried snmpget to query a get request and snmpwalk for getNext. In which case I can't explain your results. However, as I said - I've just tried this with a simple table of my own, and it *does* work as expected. I suggest you try ag

RE: Cannot find an adquest mib2c configuration file for travesing large tables. --- Does Net-SNMP fit to real time environment?

2005-10-07 Thread sasson, shuki
I have tried snmpget to query a get request and snmpwalk for getNext. Shuki -Original Message- From: Dave Shield [mailto:[EMAIL PROTECTED] Sent: Friday, October 07, 2005 11:44 AM To: sasson, shuki Cc: [email protected] Subject: RE: Cannot find an adquest mib2c configu

RE: Cannot find an adquest mib2c configuration file for travesing large tables. --- Does Net-SNMP fit to real time environment?

2005-10-07 Thread Dave Shield
On Fri, 2005-10-07 at 11:23 -0400, sasson, shuki wrote: > I have tried to apply the netsnmp_register_table() as you suggested in > previous email. > However the table_handler was not called for any Get Request for a table > entity I'll be thankful if you can > verif

RE: Cannot find an adquest mib2c configuration file for travesing large tables. --- Does Net-SNMP fit to real time environment?

2005-10-07 Thread sasson, shuki
Hi David, thanks for the reply. I have tried to apply the netsnmp_register_table() as you suggested in previous email. However the table_handler was not called for any Get Request for a table entity. It was called for a GetNext with a junk request. I used a debugger to verify this. So I was puzzled

Re: SNMPERR_TOO_LONG

2005-10-07 Thread Dave Shield
On Fri, 2005-10-07 at 18:01 +0300, Andrei Pisau wrote: > After I do snmp_send I have the snmp_errno = -5 which means > SNMPERR_TOO_LONG. But the session field sndMsgMaxSize is 0, so the > conditions for snmp_send to throw SNMPERR_TOO_LONG are not fulfilled. What about the maximum length for the tr

RE: Cannot find an adquest mib2c configuration file for travesing large tables. --- Does Net-SNMP fit to real time environment?

2005-10-07 Thread Dave Shield
On Fri, 2005-10-07 at 10:48 -0400, sasson, shuki wrote: > Hi all, I managed to "create" myself a pass through interface to traverse > big tables. Basically it is based on table iterator template. > Even after applying this fix I see 35% degradation in performance > compares to another agent imple

SNMPERR_TOO_LONG

2005-10-07 Thread Andrei Pisau
Please advice: I made a program, that sends traps almost the same as snmptrap does. But now I have a problem with it. I build it with the api from net-snmp 5.2.2.pre1. I use to have it working on some older net-snmp version. After I do snmp_send I have the snmp_errno = -5 which means SNMPERR_TOO

RE: Cannot find an adquest mib2c configuration file for travesing large tables. --- Does Net-SNMP fit to real time environment?

2005-10-07 Thread sasson, shuki
Hi all, I managed to "create" myself a pass through interface to traverse big tables. Basically it is based on table iterator template. I add a pointer to the request structure and request info to the netsnmp_iterator_info. This information is assigned by table_iterator.cxx before the call to get

Re: rfc: Disman Event MIB

2005-10-07 Thread Dave Shield
Wes, et al. I believe that I've basically finished the new Event-MIB implementation. There are doubtless a few minor bugs to iron out - the "internal query" GET mechanism seems to ignore anything other than the first varbind, and there's an issue relating to duplicate trigger entries. But in ge

Re: 5.2.2.pre3 and IRIX 6.5

2005-10-07 Thread Dave Shield
On Fri, 2005-10-07 at 08:05 -0500, Albert Chin wrote: > On Fri, Oct 07, 2005 at 11:20:26AM +0100, Dave Shield wrote: > > What is the definition of inet_addr() in ? > extern in_addr_tinet_addr(const char *); OK - that's basically what I'd expect. However, I've done some poking about the

Re: 5.2.2.pre3 and IRIX 6.5

2005-10-07 Thread Albert Chin
On Fri, Oct 07, 2005 at 11:20:26AM +0100, Dave Shield wrote: > On Thu, 2005-10-06 at 12:05 -0500, Albert Chin wrote: > > On Thu, Oct 06, 2005 at 12:55:26PM +0100, Dave Shield wrote: > > > The inet_addr() and inet_ntoa() checks seem to be responding > > > to specific IRIX problems. Simply removing

Re: 5.2.2.pre3 and IRIX 6.5

2005-10-07 Thread Dave Shield
On Thu, 2005-10-06 at 12:05 -0500, Albert Chin wrote: > On Thu, Oct 06, 2005 at 12:55:26PM +0100, Dave Shield wrote: > > Assuming that IRIX *does* ship with , > > then explicitly defining the corresponding tokens can't > > do any harm (though perhaps these lines should be protected > > by suitabl

Re: Counter64 / ifHCInOctets on Windows

2005-10-07 Thread Dave Shield
On Thu, 2005-10-06 at 23:15 +0200, Thomas Anders wrote: > Antonin Kral wrote: > > Don't you have some > > pointers, what is needed to be implemented? Because I should > > be able to invest some manpower to solve this. > > That's something we *love* to hear

rfc: mib dir .index

2005-10-07 Thread Thomas Anders
-Coders, one of the things that always strikes me with net-snmp is the fact that it handles an ".index" file in the mib directories. I'd actually expect vendors/packages to complain to us since maintaining an .index file in the main mib dir (like /usr/share/snmp/mibs) most often violates the

Counter64 support (was: CVS: net-snmp/snmplib snmp_api.c,5.89)

2005-10-07 Thread Thomas Anders
Robert Story wrote: Update of /cvsroot/net-snmp/net-snmp/snmplib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10761/snmplib Modified Files: snmp_api.c Log Message: counter64 support to snmp_add_var (so they can be sent w/snmptrap) Can this be applied to the patches branches (5.[12]

RE: net-snmp

2005-10-07 Thread Goh, Yen Mei
If possible, could you please teach me how to find the root cause of memory leak on snmpd? Thanks, YM -Original Message- From: Goh, Yen Mei Sent: Friday, October 07, 2005 1:07 PM To: Goh, Yen Mei; 'Dave Shield' Cc: '[email protected]' Subject: RE: net-snmp Bye the wa

RE: net-snmp

2005-10-07 Thread Goh, Yen Mei
Bye the way, I have browsed some web sites and found that the older version of net-snmp might have some memory leak issues. Do you know what are the version that has memory leak issue. Million Thanks to you. Regards, YM -Original Message- From: Goh, Yen Mei Sent: Friday, October 07, 2005

RE: net-snmp

2005-10-07 Thread Goh, Yen Mei
Thank you very much for your explanation. Do you have any idea on what will cause the memory leak on snmpd? We can't find any memory leak issue on our side; but customer did. We were running exactly the same command as customer; however they found the memory leak issue on snmpd but we didn't. Any