Re: Delegate GET request

2007-10-15 Thread shwth_k kk
Hi we are storing in a global variable array that is indexed by the transaction Id.So, the array is not getting overwritten. Also were setting requests->delegated = 0; before calling snmp_set_var_typed_value function. Any pointers would greatly help On 10/15/07, Wes Hardaker <[EMAIL PROTECTED]>

Re: QUERY:multi agnet in same system ?

2007-10-15 Thread Wes Hardaker
> "RS" == Robert Story <[EMAIL PROTECTED]> writes: RS> http://www.net-snmp.org/wiki/index.php/Multiple_Agents RS> Not sure if something needs to be added about unique engineIDs... Wes? If they're using separate persistant storage, it won't be a problem (each agent will get its own engineid).

Re: fixing library binding issue in 5.4.1

2007-10-15 Thread Wes Hardaker
> "TA" == Thomas Anders <[EMAIL PROTECTED]> writes: TA> Great we all agree on that. Wes, would you mind committing the patch TA> with the library boolean to trunk? Yep, I will. But do realize we've just voted to not fix a bug in previous releases. It's not a new feature. It fixes the usabil

Re: fixing library binding issue in 5.4.1

2007-10-15 Thread Thomas Anders
Magnus Fromreide wrote: > On mån, 2007-10-15 at 13:07 -0400, Robert Story wrote: >> On Mon, 15 Oct 2007 19:03:12 +0200 Thomas wrote: >> TA> Robert Story wrote: >> TA> > I tend to agree. And if we are going to make this a public global in >> the >> TA> > library, then I strongly suggest we rename i

Updating mibs/rfclist programmatically

2007-10-15 Thread Bill Fenner
For years, I've crawled over Internet-Drafts and RFCs to find things that look like MIB modules, to construct my set of pages at http://www.icir.org/fenner/mibs/ . It occurred to me, after seeing that some of the MIBs that Net-SNMP distributes are out of date, that this info could be relatively ea

Re: fixing library binding issue in 5.4.1

2007-10-15 Thread Magnus Fromreide
On mån, 2007-10-15 at 13:07 -0400, Robert Story wrote: > On Mon, 15 Oct 2007 19:03:12 +0200 Thomas wrote: > TA> Robert Story wrote: > TA> > I tend to agree. And if we are going to make this a public global in the > TA> > library, then I strongly suggest we rename it, prefixing with > 'netsnmp_trap

Re: Potential resource leak in CONTAINER_INSERT

2007-10-15 Thread Magnus Fromreide
On mån, 2007-10-15 at 10:38 -0400, Robert Story wrote: > On Mon, 15 Oct 2007 08:40:45 +0200 Magnus wrote: > MF> But then the problem is that CONTAINER_INSERT must remember the > MF> containers where insertions are done as the result of insert_filter > MF> might change as a result of the insertion

RE: When there is "no instance" object in a table, snmpgetnext skip the rest of the objects in the table and search for the next table

2007-10-15 Thread Emi Yanagi
I submitted 1814048 for this bug. Emi -Original Message- From: Robert Story [mailto:[EMAIL PROTECTED] Sent: Monday, October 15, 2007 12:07 PM To: Emi Yanagi Cc: [email protected] Subject: Re: When there is "no instance" object in a table, snmpgetnext skip the rest of

Re: Potential resource leak in CONTAINER_INSERT

2007-10-15 Thread Thomas Anders
Robert Story wrote: > There is actually another proposed solution to this issue sitting in the patch > tracker. That solution would work - it does a find over all the containers > before proceeding with the insert. I'm not keen on that solution either. For the reference, I think this is patch 1712

Re: fixing library binding issue in 5.4.1

2007-10-15 Thread Robert Story
On Mon, 15 Oct 2007 19:03:12 +0200 Thomas wrote: TA> Robert Story wrote: TA> > I tend to agree. And if we are going to make this a public global in the TA> > library, then I strongly suggest we rename it, prefixing with 'netsnmp_trapd' TA> > or something in that vein... TA> TA> +1 for the rename,

Re: When there is "no instance" object in a table, snmpgetnext skip the rest of the objects in the table and search for the next table

2007-10-15 Thread Robert Story
On Mon, 15 Oct 2007 08:42:15 -0700 Emi wrote: EY> Unfortunately, this is still a problem in 5.3.1. A little bit debug EY> convinced me this was deeper than what I could afford to spend time on. Have you submitted a bug report? --

Re: bug? - error getting netmask for interface

2007-10-15 Thread Robert Story
On Thu, 23 Aug 2007 14:09:56 -0400 [EMAIL PROTECTED] wrote: SC> Unforutnately, I am not a C programmer so I was hoping the guys who SC> wrote this cool piece of software can help me this... SC> SC> > The SIOCGIFNETMASK ioctl for eth1:1 fails. I have no idea whether this SC> > is expected behaviour

Re: fixing library binding issue in 5.4.1

2007-10-15 Thread Thomas Anders
Robert Story wrote: > I tend to agree. And if we are going to make this a public global in the > library, then I strongly suggest we rename it, prefixing with 'netsnmp_trapd' > or something in that vein... +1 for the rename, but I still think this change should be trunk only. IMHO there's not enou

Re: QUERY:multi agnet in same system ?

2007-10-15 Thread Robert Story
On Wed, 22 Aug 2007 09:07:14 +0530 [EMAIL PROTECTED] wrote: JMC> Thanks for given a nice approach.I have one more query,if suppose I am JMC> generating the Trap using the trap session.It take s the original IP JMC> address of the system.so to bring the virtual IP address .please help me JMC> out h

Re: snmpd demaen restart issue..

2007-10-15 Thread Robert Story
On Wed, 10 Oct 2007 05:52:35 -0400 Senthil wrote: SN> Here with i have attached my file,we are using the SNMP agent ,external to the system. SN> We created the thread , which calls the master agent. Looking at the code, I think you mean 'AgentX sub-agent'. SN> We observed that, when ever we res

Re: fixing library binding issue in 5.4.1

2007-10-15 Thread Robert Story
On Tue, 09 Oct 2007 09:02:23 +0200 Magnus wrote: MF> On mån, 2007-10-08 at 12:01 -0700, Wes Hardaker wrote: MF> > The 5.4.1 code: MF> > MF> > - Has an int in snmptrapd.c called "dropauth". [...] MF> > Cause the solution also changes the interface for libnetsnmptrap too? I MF> > think? And may nee

Re: populating ifTable with Virutal IP interfaces (eth0:1)

2007-10-15 Thread Robert Story
On Tue, 18 Sep 2007 09:15:00 +0530 [EMAIL PROTECTED] wrote: SSC>I have configured virtual IP address to simulate multiple agents SSC> and noticed that IpAddrTable is populated with virtual IpAddress and SSC> ifTable has only the actual interfaces entries ( eth0 & lo). All virtual SSC> IP entrie

RE: When there is "no instance" object in a table, snmpgetnext skip the rest of the objects in the table and search for the next table

2007-10-15 Thread Emi Yanagi
Hi Robert, Unfortunately, this is still a problem in 5.3.1. A little bit debug convinced me this was deeper than what I could afford to spend time on. I neither used 5.3.2 nor 5.4.1, so don't know if it is reproducible in newer versions than 5.3.1. I am glad it finally got your attention ;-) Ple

Re: bulk set

2007-10-15 Thread Robert Story
On Wed, 12 Sep 2007 19:09:31 +0530 deepak wrote: DB> When a set request is received, my sub-agent completes this operation using DB> transactional semantics. If a set request had come for more than 1 attribute DB> for the same table, then this set would be done as part on one transaction. DB> [...]

Re: When there is "no instance" object in a table, snmpgetnext skip the rest of the objects in the table and search for the next table

2007-10-15 Thread Robert Story
On Thu, 6 Sep 2007 08:30:54 -0700 Emi wrote: EY> I am using 5.3.1, the implementation agent/mibgroup/notification-log-mib EY> is provided in 5.3.1. Since transport is NULL, EY> COLUMN_NLMLOGENGINETADDRESS and COLUMN_NLMLOGENGINETDOMAIN are NULL. EY> However, COLUMN_NLMLOGNOTIFICATIONID is not NULL,

Re: shell traphandler from stdin

2007-10-15 Thread Wes Hardaker
> "AV" == Alef Veld <[EMAIL PROTECTED]> writes: AV> Hi, AV> i'm testing out traphandlers, and i setup this little shell thing. AV> #!/bin/bash AV> echo $* AV> this is what is called in snmptrapd.conf AV> However, it doesn't 'popup' on my terminal and it doesn't log AV> anything to file whe

Re: Potential resource leak in CONTAINER_INSERT

2007-10-15 Thread Robert Story
On Mon, 15 Oct 2007 08:40:45 +0200 Magnus wrote: MF> I think there is a potential resurce leak in CONTAINER_INSERT that MF> require a change to the external interface to fix. MF> MF> Assume a continer with multiple indices. MF> MF> Assume that all index insert functions returns non-zero, then MF>

Re: Need to increase timeout.

2007-10-15 Thread Wes Hardaker
> "SN" == Senthil Nathan <[EMAIL PROTECTED]> writes: SN> Is any resolution for to increase the time out value in master agent SN> in api level. The problem is very critical, pls anybody will help SN> on this,is highly helpful for us. Set the "agentxTimeout" config token in your snmpd.conf fi

Re: Delegate GET request

2007-10-15 Thread Wes Hardaker
> "skk" == shwth k kk writes: skk> Reason: (genError) A general failure occured Are you remembering to set the delegated flag back to 0? IE: requests->delegated = 0; after you handle the request? Note that storing the delegated cache in a global variable isn't safe. IE, if two requ

Re: basic SNMP question?

2007-10-15 Thread Dave Shield
On 15/10/2007, Siva Prakash Reddy G <[EMAIL PROTECTED]> wrote: > What is SNMP packet size. There is no fixed size for an SNMP request PDU. The size of an SNMP packet will depend on the object(s) being requested, and the administrative settings of the request. Dave ---

basic SNMP question?

2007-10-15 Thread Siva Prakash Reddy G
Hi! What is SNMP packet size. if any body have basic question on SNMP, please share with me. At least tell me where i can get basic questions on SNMP. Thanks in advance. With Regards, (`'·.¸ (`'·.¸ *¤* ¸.·'´) ¸.·'´) «´¨`·.Sivag .·´¨`» (¸.·'´(`¸.·' *¤* '·.¸`)`'

Delegate GET request

2007-10-15 Thread shwth_k kk
Hi, My application requires to fetch the oid value from a different process, so I need to use the delegate option in subAgent. I'm storing the cache in a global memory and accessing it once I get the oid value from the process. Always I'm getting the following error Error in packet Reason: (genErr