Having some issues moving subagent from running with 5.8 to 5.9

2024-08-12 Thread Lennart Sorensen
I am trying to get a subagent to work after moving from net-snmp 5.8 to 5.9, but it keeps segfaulting for me. I have tracked down that it is failing when trying to sort the table due to the structure not being what it should be. It is using table_container to store the tables that are causing

SNMPV3 traps from subagent code

2024-03-05 Thread Prankur Chauhan
Dear Snmp Community, I have written a subagent (skeleton generated from subagent.m2c), where the while loop is as follows: /* you're main loop here... */ while(keep_running) { //check and send traps if (gTrapsAvailable) { gTrapsAvailable = false; /

Re: multiple subagent with same set of oid.

2022-04-26 Thread Craig Small
On Wed, 27 Apr 2022 at 12:30, Paban Agarwalla wrote: > Would you please share some examples of context? > > snmpd.examples has some good, well, examples but a way of using contexts for overlapping OIDs is below. This is for two agents using the proxy method as its easier to see the results. This

Re: multiple subagent with same set of oid.

2022-04-26 Thread Paban Agarwalla
ith the same set of oids. > > > > can i get all sub agent statastics using the same oid with v2c/v1 snmp > > host? > > The only way to deal with problems like that is to use SNMPv3 contexts, > where each context can map to a different subagent with overlapping OID >

Re: multiple subagent with same set of oid.

2022-04-24 Thread Paban Agarwalla
>> > We are using to Netsnmp to collect statistics from our device. >> > >> > We are registering multiple subagents with the same set of oids. >> > >> > can i get all sub agent statastics using the same oid with v2c/v1 snmp >> > host? &g

Re: multiple subagent with same set of oid.

2022-04-24 Thread Bill Fenner
b agent statastics using the same oid with v2c/v1 snmp > > host? > > The only way to deal with problems like that is to use SNMPv3 contexts, > where each context can map to a different subagent with overlapping OID > registrations. You can make v1/v2c communities to v3 contexts usi

Re: multiple subagent with same set of oid.

2022-04-21 Thread Wes Hardaker via Net-snmp-coders
ms like that is to use SNMPv3 contexts, where each context can map to a different subagent with overlapping OID registrations. You can make v1/v2c communities to v3 contexts using the com2sec configuration tokens if you wish. -- Wes Hardaker Please mail all replies to net-snmp-coders@lis

multiple subagent with same set of oid.

2022-04-11 Thread Paban Agarwalla
Hi, We are using to Netsnmp to collect statistics from our device. We are registering multiple subagents with the same set of oids. can i get all sub agent statastics using the same oid with v2c/v1 snmp host? Regards Paban ___ Net-snmp-coders mailing

Re: Re-registering sysContact and sysLocation with subagent

2022-02-08 Thread Winston Gadsby
It turns out I never did have it working. I'm trying to reregister sysContact and/or sysLocation from my subagent running under a master agent. I think reregistering a system oid via a subagent is impossible. I set up a sample subagent project in c as described here: http://www.net-snm

Re: Re-registering sysContact and sysLocation with subagent

2022-02-08 Thread Winston Gadsby
Thank you - that seems to have worked. Winston From: Magnus Fromreide Sent: Tuesday, February 8, 2022 12:47 PM To: Winston Gadsby Cc: Larry Hayes ; [email protected] Subject: Re: Re-registering sysContact and sysLocation with subagent

Re: Re-registering sysContact and sysLocation with subagent

2022-02-08 Thread Magnus Fromreide
On Tue, Feb 08, 2022 at 02:28:57PM +, Winston Gadsby wrote: > It turns out I never did have it working. I'm trying to reregister > sysContact and/or sysLocation from my subagent running under a master agent. > I think reregistering a system oid via a subagent is impossible

Re: Re-registering sysContact and sysLocation with subagent

2022-02-02 Thread Winston Gadsby
t = libnsa.unregister_mib(ctypes.cast(ctypes.byref(oid), c_oid_p), oid_len) The result is still always -1 (MIB_NOSUCHREGISTRATION). However, it looks like it works, at least for sysContact. If I ignore the error and reregister sysContact with my subagent it works. I can change it in my program and

Re: Re-registering sysContact and sysLocation with subagent

2022-02-01 Thread Magnus Fromreide
bnsa: > > import ctypes > from netsnmpapi import * > import netsnmpvartypes > libnsa = ctypes.cdll.LoadLibrary(ctypes.util.find_library("netsnmpagent")) > ... > {code that registers oids from new mib} > ... > {start subagent} > print(libnsa.unregister_mib(b("SNMP

Re: Re-registering sysContact and sysLocation with subagent

2022-02-01 Thread Winston Gadsby
(ctypes.util.find_library("netsnmpagent")) ... {code that registers oids from new mib} ... {start subagent} print(libnsa.unregister_mib(b("SNMPv2-MIB::sysContact"), len("SNMPv2-MIB::sysContact")) This always returns -1, whether I unregister before starting the agent or after.

Re: Re-registering sysContact and sysLocation with subagent

2022-01-28 Thread Magnus Fromreide
On Fri, Jan 28, 2022 at 09:21:04PM +, Winston Gadsby wrote: > Hi, > I'm running a subagent based on python-netsnmpagent, along with the > distribution snmpd (net-snmp) agent on a Debian embedded system. I'm using > the version of snmpd that comes default with the di

Re: Re-registering sysContact and sysLocation with subagent

2022-01-28 Thread Larry Hayes
t; I'm running a subagent based on python-netsnmpagent, along with the > distribution snmpd (net-snmp) agent on a Debian embedded system. I'm using > the version of snmpd that comes default with the distribution - 5.7.3. I > have a custom MIB for my new variables, similar to SIMPL

Re-registering sysContact and sysLocation with subagent

2022-01-28 Thread Winston Gadsby
Hi, I'm running a subagent based on python-netsnmpagent, along with the distribution snmpd (net-snmp) agent on a Debian embedded system. I'm using the version of snmpd that comes default with the distribution - 5.7.3. I have a custom MIB for my new variables, similar to SIMPLE-MIB.

Snmp is frozen if the snmpset is delayed in subagent

2021-02-01 Thread Bláha Jakub
Hello, I'm coding subagent which registers some OIDS. If some request arrives to this subagent, it is marked as delayed. Then the UDP request is sent to another program and waits until gets UDP response. After getting UDP response is delayed SNMP request processed. Now there is a pro

snmpd crash intermittently, when agent/subagent gets restarted with config changes.

2020-12-09 Thread SURYA T S
inously reproducible but seeing intermittently, when snmp agent/subagent restarts, and snmpwalk happens in the background. Please help me understand the issue further and help me with the patch/ if this issue is already taken care in the upstream. Thanks, Surya

Re: Net-snmp 5.7.3 - Issue to communicate with subAgent and Master Agent

2020-02-06 Thread Magnus Fromreide
gt; should not be impacted. > > > > Then what is the difference between netsnmp_register_long_instance and the > > couple netsnmp_create_handler_registration & netsnmp_register_instance. > > Which one should I used to register objects from my subagent? > > > > Than

Re: Net-snmp 5.7.3 - Issue to communicate with subAgent and Master Agent

2020-02-06 Thread Philippe Denis
r agent followed by the Agentx, I got a connection >> message. >> When stopping the Master Agent, I've seen a message saying that the >> connection between the master agent and the subagent is broken. (message >> AgentX master disconnected us, reconnecting in 15) >

Re: Net-snmp 5.7.3 - Issue to communicate with subAgent and Master Agent

2020-02-05 Thread Larry Hayes
onnected based on the following > behaviour: > >- I've started the Master agent followed by the Agentx, I got a >connection message. >- When stopping the Master Agent, I've seen a message saying that the >connection between the master agent and the

Re: Net-snmp 5.7.3 - Issue to communicate with subAgent and Master Agent

2020-02-04 Thread Philippe Denis
connection message. - When stopping the Master Agent, I've seen a message saying that the connection between the master agent and the subagent is broken. (message AgentX master disconnected us, reconnecting in 15) - Is it sufficient to be sure that the Master Agent and Su

Fwd: Net-snmp 5.7.3 - Issue to communicate with subAgent and Master Agent

2020-02-02 Thread Philippe Denis
Expéditeur: Philippe Denis > Date: 3 février 2020 à 00:41:11 UTC+1 > Destinataire: Magnus Fromreide > Objet: Rép: Net-snmp 5.7.3 - Issue to communicate with subAgent and Master > Agent > > Hello, > > I’ve succeeded to connect the sub-agent and the master agent by

Re: Net-snmp 5.7.3 - Issue to communicate with subAgent and Master Agent

2020-02-02 Thread Philippe Denis
t is the difference between netsnmp_register_long_instance and the > couple netsnmp_create_handler_registration & netsnmp_register_instance. Which > one should I used to register objects from my subagent? > > Thanks for your help. > Philippe DENIS > >> Le 2 févr. 2020 à

Re: Net-snmp 5.7.3 - Issue to communicate with subAgent and Master Agent

2020-02-02 Thread Magnus Fromreide
On Sun, Feb 02, 2020 at 02:13:59PM +0100, Philippe Denis wrote: > Hello all, > > I've a problem to communicate with my subAgent through the Master Agent. > I've used the option -Dnetsnmp_udpbase and the message is correctly > received at master Agent level (of course

Net-snmp 5.7.3 - Issue to communicate with subAgent and Master Agent

2020-02-02 Thread Philippe Denis
Hello all, I've a problem to communicate with my subAgent through the Master Agent. I've used the option -Dnetsnmp_udpbase and the message is correctly received at master Agent level (of course, the one which send from remote PC or localhost). The Master Agent is not responding to t

Re: Net-SNMP crash when AgentX SubAgent times out

2019-12-02 Thread David Moriconi (dmoricon) via Net-snmp-coders
Thank you for the clarification. From: Anders Wallin Date: Monday, December 2, 2019 at 12:18 PM To: "David Moriconi (dmoricon)" Cc: "[email protected]" Subject: Re: Net-SNMP crash when AgentX SubAgent times out Hi David, I'm just a user o

Re: Net-SNMP crash when AgentX SubAgent times out

2019-12-02 Thread Anders Wallin
a Net-snmp-coders" < > [email protected]> > *Reply-To: *"David Moriconi (dmoricon)" > *Date: *Thursday, November 28, 2019 at 8:27 AM > *To: *Anders Wallin > *Cc: *"[email protected]" < > net-snmp-coders@lists.

Re: Net-SNMP crash when AgentX SubAgent times out

2019-12-02 Thread David Moriconi (dmoricon) via Net-snmp-coders
-snmp-coders" Reply-To: "David Moriconi (dmoricon)" Date: Thursday, November 28, 2019 at 8:27 AM To: Anders Wallin Cc: "[email protected]" Subject: Re: Net-SNMP crash when AgentX SubAgent times out Hi Anders, Thank you for your response Do you k

Re: Net-SNMP crash when AgentX SubAgent times out

2019-11-28 Thread David Moriconi (dmoricon) via Net-snmp-coders
Net-SNMP crash when AgentX SubAgent times out Hi David, yes there are a few patches that fixes this issue, I suggest the you use the latest code from [email protected]:net-snmp/net-snmp.git Regards Anders Wallin On Wed, Nov 27, 2019 at 10:17 PM David Moriconi (dmoricon) via Net-snmp-coders ma

Re: Net-SNMP crash when AgentX SubAgent times out

2019-11-27 Thread Anders Wallin
rsion 5.8 on CentOS 6.8 as a master agent with an > AgentX SubAgent. > > > > When my AgentX SubAgent takes too much time to respond and times out, the > Net-SNMP daemon crashes. I have searched for this issue and found > https://github.com/net-snmp/net-snmp/commit/793d596838

Net-SNMP crash when AgentX SubAgent times out

2019-11-27 Thread David Moriconi (dmoricon) via Net-snmp-coders
Hi, I am using Net-SNMP version 5.8 on CentOS 6.8 as a master agent with an AgentX SubAgent. When my AgentX SubAgent takes too much time to respond and times out, the Net-SNMP daemon crashes. I have searched for this issue and found https://github.com/net-snmp/net-snmp/commit

Re: net-snmp 5.8: "unknown snmp version 193" from agentx subagent

2018-06-20 Thread Bill Fenner
Oops, it turns out that the reason that it works is because the agentx session is in the session list that is always iterated over, so, this fix is wrong: we should just silently ignore agentx sessions in this code. -- Chec

Re: net-snmp 5.8: "unknown snmp version 193" from agentx subagent

2018-06-20 Thread Bill Fenner
On Wed, Mar 21, 2018 at 10:58 AM Bill Fenner wrote: > The new code in net-snmp 5.8 that tries to account for v1 or v2 trap > sessions logs an error from an agentx subagent, since the agentx code > registers the session as being AGENTX_VERSION_1. This constant is only > defined i

net-snmp 5.8: "unknown snmp version 193" from agentx subagent

2018-03-21 Thread Bill Fenner
The new code in net-snmp 5.8 that tries to account for v1 or v2 trap sessions logs an error from an agentx subagent, since the agentx code registers the session as being AGENTX_VERSION_1. This constant is only defined in the agentx code, so agent_trap.c doesn't know what it is. I suspect

RE: Debugging of subagent

2016-05-12 Thread Chetcuti, Christian
ge.net' Subject: Debugging of subagent Dear all, I have managed to build my own agent successfully after following the subagent tutorial. I am now trying to debug this subagent using gdb. The problem is that gdb is not stepping into a function coming from the shared libraries of net-snmp when I

Debugging of subagent

2016-05-12 Thread Chetcuti, Christian
Dear all, I have managed to build my own agent successfully after following the subagent tutorial. I am now trying to debug this subagent using gdb. The problem is that gdb is not stepping into a function coming from the shared libraries of net-snmp when I request him to do so. Could you

C++ Table Subagent Memory Leak (6.5.1.1)

2016-04-22 Thread Ian C
Hi folks, I have a peculiar memory leak from a sub-agent created with mib2c's "iterate" configuration.  Each time it processes a request, it grabs 64Kb which never gets released.  The stranger  part is that this only happens on a production system but NOT on my dev environment.  Furthermore v

SubAgent - setting OID instance value multiple times not only during initialization

2015-08-18 Thread Chetcuti, Christian
Dear all, I'm in the process of writing a sub-agent for learning purposes. Basically I'm initializing the sub-agent through the init function, registering an oid and setting it to a particular value according to a variable named memoryUsage which is constantly changing its value. This was don

unwanted handler calls on subagent with multiple tables

2015-07-16 Thread Sreekanth Kamanuru
Hi, I intended to implement a subagent with all tables in a MIB (ENTITY-MIB) using handlers for each separately. Up on requesting a particualr table data, net-snmp is triggering handlers for other tables also in that MIB which are not wanted. How to avoid such unncessary handler triggers ? The

Re: possible snmpd bug using ASN_OPAQUE_U64 and subagent

2013-11-28 Thread Magnus Fromreide
On Thu, 2013-09-26 at 11:34 -0600, [email protected] wrote: > Please help me track down a problem I am having with snmpd and subagent > using ASN_OPAQUE_U64. I am using net-snmp 5.7.2 on x86_64 Linux, Ubuntu > 12.04 LTS. Thanks for reporting these problems. I think I have added a sol

Re: Subagent CPU Spike & Timeout

2013-11-12 Thread Niels Baggesen
you tried attaching a debugger to this subagent, to see what it is doing? /Niels -- Niels Baggesen - @home - Århus - Denmark - [email protected] The purpose of computing is insight, not numbers --- R W Hamming ---

Fwd: Subagent CPU Spike & Timeout

2013-11-12 Thread Frozen Puck
-- Forwarded message -- From: Frozen Puck Date: Fri, Nov 8, 2013 at 2:56 PM Subject: Subagent CPU Spike & Timeout To: [email protected] Hi, I need help with my subagent, I've dissected it every way I can think of but whenever it responds to a quer

Re: Subagent CPU Spike & Timeout

2013-11-08 Thread Frozen Puck
I should add that my other subagents dealing with other MIBs work fine. On Fri, Nov 8, 2013 at 2:56 PM, Frozen Puck wrote: > > Hi, > > I need help with my subagent, I've dissected it every way I can think of > but whenever it responds to a query I get a timeout and th

Subagent CPU Spike & Timeout

2013-11-08 Thread Frozen Puck
Hi, I need help with my subagent, I've dissected it every way I can think of but whenever it responds to a query I get a timeout and the CPU on my system spikes for several minutes. My subagent does NOT crash either. I'm pretty sure that I'm creating entries and linking them alrig

possible snmpd bug using ASN_OPAQUE_U64 and subagent

2013-10-24 Thread rkj
Please help me track down a problem I am having with snmpd and subagent using ASN_OPAQUE_U64. I am using net-snmp 5.7.2 on x86_64 Linux, Ubuntu 12.04 LTS. I know the OPAQUE types are not standard, but my application requires the use of both ASN_OPAQUE_U64 as well as ASN_OPAQUE_I64. I can

Re: Regarding snmp agent, subagent using AgentX

2012-12-30 Thread Dave Shield
On 30 December 2012 14:16, SureshCilutions S wrote: > I have compiled the sub agent using AgentX > Run the agent[snmpd] exe and subagent[exampled] exe separately, both are > running fine. Request the GET operation for the OID > ".1.3.6.1.4.1.8072.2.4.1.1.2.0" and recei

Regarding snmp agent, subagent using AgentX

2012-12-30 Thread SureshCilutions S
quot; line in snmpd,conf and "agentXSocket tcp:localhost:705" in example-demon.conf Run the agent[snmpd] exe and subagent[exampled] exe separately, both are running fine. Request the GET operation for the OID ".1.3.6.1.4.1.8072.2.4.1.1.2.0" and received the response as &

Regarding agentx subagent

2012-12-19 Thread SureshCilutions S
Hi, I am trying to create a subagent with mib files as per the examples in the link http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_Subagent "Instrumenting your own code with agentx subagent support" I am not pretty clear about the line "We merely compile it ours

Re: Valgrind reports Invalid read in subagent

2012-10-08 Thread Bradley Kite
On 6 October 2012 09:12, Bradley Kite wrote: > Hi, > > I am testing/debugging a network application heap corruption bug (the > application is also an AgentX subagent), and valgrind is reporting this > error - which I suspect might be the cause of the problem: > > ==5608

Re: how to view debug information in subagent mibs

2012-08-28 Thread Wes Hardaker
Ire w writes: > I am running snmp agent in a target device on linux 2.6. I need to debug > IF-MIB C codes and print out my debug information. Because it is a daemon > process, printf will not send to console. First off, you should read about Net-SNMP's debugging mechanisms: http://www.net-snm

how to view debug information in subagent mibs

2012-08-23 Thread Ire w
Hi, I am running snmp agent in a target device on linux 2.6. I need to debug IF-MIB C codes and print out my debug information. Because it is a daemon process, printf will not send to console. So, I used :syslog( LOG_DEBUG, " ifTable: testing") ; and check : cat /var/log/messages but I h

Issue in AgentX subagent on Big Endian architecture

2012-07-05 Thread Jyoti Singh
Hi, We are using Net-SNMP version 5.4.2.1 in our product and we found one issue with AgentX communication in the following scenario AgentX Master agent is on Little Endian architecture AgentX Subagent is on Big Endian architecture In this setup we are facing an issue when subagent sends the

Issue in AgentX subagent on Big Endian architecture

2012-06-25 Thread Jyoti Singh
Hi, We are using Net-SNMP version 5.4.2.1 in our product and we found one issue with AgentX communication in the following scenario AgentX Master agent on Little Endian architecture AgentX Subagent on Big Endian architecture In this setup we are facing an issue when subagent sends the AgentX

Re: Problem with compiling mib objects with subagent

2012-05-15 Thread Robert Story
On Tue, 15 May 2012 11:33:13 +0530 Jasti wrote: JD> Whenever I restart or shutdown my system all my configurations like JD> compiling mib objects with subagent are erased...am not getting where the JD> problem occurred pls can anyone help regarding this? This doesn't seem to make se

Problem with compiling mib objects with subagent

2012-05-14 Thread Jasti Durgashree
Whenever I restart or shutdown my system all my configurations like compiling mib objects with subagent are erased...am not getting where the problem occurred pls can anyone help regarding this? -- Live Security Virtual

RE: agentx master agent not responding after an agentx subagent SET timeout

2012-01-01 Thread Renjith R. V.
Bill, I too have tried in the same fashion [in subagent: register a scalar handler and put a sleep in MODE_SET_ACTION] before I have commented like I couldn't see the issue in v5.7.1. May be as you stated, it is there and hard to invoke! At that time, I have tried the below listed two

Re: agentx master agent not responding after an agentx subagent SET timeout

2011-12-31 Thread Bill Fenner
I haven't had any luck invoking the failure mode with my misbehaving subagent. Both the disconnect and the timeout end up going through netsnmp_remove_delegated_requests_for_session(), which then causes check_delayed_request() to call netsnmp_wrap_up_request() which resets netsnmp_processin

Re: agentx master agent not responding after an agentx subagent SET timeout

2011-12-30 Thread Bill Fenner
harder to invoke. I decided to try to get to the core of this, and wrote a subagent with a single scalar integer, whose set action is: case MODE_SET_ACTION: if (*requests->requestvb->val.integer == 0) { /* unclean exit */ ex

RE: agentx master agent not responding after an agentx subagent SET timeout

2011-12-29 Thread Renjith R. V.
ecember 2011 07:15 PM .To: Renjith R. V. .Cc: [email protected] .Subject: Re: agentx master agent not responding after an agentx subagent .SET timeout . .Renjith, . .Could it be easy as adding something like . .if (asp == netsmp_processing_set) { .DEBUGMSGTL(("snmp_agent"

Re: agentx master agent not responding after an agentx subagent SET timeout

2011-12-29 Thread Bill Fenner
between. > > Please refer the debug log attached below. > > > > agent_set: did set mode = 2, status = 0 > > agentx/subagent: checking status of session 0x90b5588 > > agentx_build: packet built okay > > agentx/subagent: handling agentx request (req=0x5,trans=0x2,s

RE: agentx master agent not responding after an agentx subagent SET timeout

2011-12-27 Thread Renjith R. V.
Yes. the sub agent is getting disconnected from the master during this failure scenario. And the sub agent hit with SIGPIPE in between. Please refer the debug log attached below. agent_set: did set mode = 2, status = 0 agentx/subagent: checking status of session 0x90b5588 agentx_build

Re: agentx master agent not responding after an agentx subagent SET timeout

2011-12-27 Thread Bill Fenner
quot; way to get into this state - please add your findings to this bug. Did you ever see the subagent getting disconnected from the master agent? Does that explain the two different behaviors that you saw? Bill On Dec 27, 2011, at 4:48 AM, "Renjith R. V." wrote: > I am using

agentx master agent not responding after an agentx subagent SET timeout

2011-12-27 Thread Renjith R. V.
showed the subsequent requests are queued at master agent side. "snmp_agent: request queued while processing set, asp = 0x840cf40" And this issue continues for all further GET operations that I have tried. Do I need to handle anything more to address this delayed SET_ACTION return from subag

Memory corruption upon agentX master/subagent disconnect

2011-12-14 Thread Chani Shiloni
The issue occurs version 5.3.2.2 but I was able to reconstruct it by the simaple agaent example in the latest version. My issue concern to aAddrTable. After disconnecting the table contains two entries as expected named "internal1" and "internal2". but the first entry still stay active and include

Re: Difference between proxy and agentx subagent

2011-12-07 Thread Robert Story
p_pdu_create) and sent to 192.168.100.1. But with agentx, only the PDU XQ> with registered OID will be re-sent to subagent. Does this mean proxy may XQ> produce more overhead than agentx at this point? Any other points? XQ> proxy -Cn ctx_xq -v 2c -c public 192.168.100.1 .1.3 Using

Difference between proxy and agentx subagent

2011-12-07 Thread xianlong qin
Dear net-snmp coders, Thanks a lot for the contribution you have made to net-snmp. This is our case: one master agent and some other subagents, we plan to use context for the duplicated OIDs in subagent. I found proxy and agentx all can be used, just wonder which one is better. I found FAQ 8

Re: Reloading a perl subagent in embedded perl

2011-11-30 Thread Robert Story
_module.pl"; JS> JS> When I start the snmpd agent, it executes all 'perl do' statements and JS> my subagent is registered. So far so good. JS> JS> But now I send HUP signal to my snmpd -> it reloads the config and JS> re-executes all 'perl do' statement

Reloading a perl subagent in embedded perl

2011-10-31 Thread Jan Safranek
I have a simple perl agent in embedded perl, let's say http://www.net-snmp.org/tutorial/tutorial-5/toolkit/perl/perl_module.pl and following config file: rocommunity public perl do "/path/to/perl_module.pl"; When I start the snmpd agent, it executes all 'perl do' stat

Re: Failed to get registered Table Handler Call in Subagent for Tables

2011-10-08 Thread Dave Shield
On 8 October 2011 22:44, Bob O'Neil wrote: > I am using the standard mib configuration file to generate the > implementation files for the tables as the first pass. > > This generation is via the following command: > >Mib2c –S cache=1 mib2c.table_data.conf TMNS-MIB::faultTable > The problem

Failed to get registered Table Handler Call in Subagent for Tables

2011-10-08 Thread Bob O'Neil
I am using the subagent technique on a custom MIB, and it works great for scalars and notifiiers. I now need to add table support for content in the same MIB. I am using the standard mib configuration file to generate the implementation files for the tables as the first pass. This

Re: GETNEXT does not complete query processing at occurrence of error GenError in Agentx subagent.

2011-02-28 Thread Phill Xenox
Hi! Probably problem in function int check_getnext_results (netsnmp_agent_session *asp) from snmp_agent.c (a line 2798). There is no check of the status of request. If the status of request is erroneous, function check_getnext_results all can return 1 (request GETNEXT correct). It is necessary

RE: My Subagent is not working after some long time

2011-01-11 Thread Prakash
Thanks All, But what are the cases to cause this situation. I haven’t started snmpd/subagent when already they are running. Regards, Prakash Raju -Original Message- From: Bill Fenner [mailto:[email protected]] Sent: Sunday, January 09, 2011 4:49 AM To: PrakashRaju Meka Cc: Wes

Re: My Subagent is not working after some long time

2011-01-10 Thread Dave Shield
On 10 January 2011 06:27, Prakash wrote: > In which version this bus was fixed? > Currently I am using net-snmp-5.4.2.1-8.2.1 A quick scan of the code tree seems to indicate that this fix was applied in April 2009. It should be present in versions 5.2.6, 5.3.3, 5.4.3 and 5.5 (and any later

Re: My Subagent is not working after some long time

2011-01-10 Thread Bill Fenner
On Mon, Jan 10, 2011 at 1:27 AM, Prakash wrote: > In which version this bus was fixed? I don't know. I know the bug is not present in 5.6. Bill -- Gaining the trust of online customers is vital for the success of any

RE: My Subagent is not working after some long time

2011-01-10 Thread Prakash
e: My Subagent is not working after some long time >>>>> On Fri, 07 Jan 2011 08:23:00 -0800, Wes Hardaker said: P> Can you please explain the process/steps to check weather master agent is P> listening the agentx port. WH> Please write to the [email protected]

RE: My Subagent is not working after some long time

2011-01-09 Thread Prakash
@lists.sourceforge.net Subject: Re: My Subagent is not working after some long time Prakash, There was a bug in earlier versions where if you tried to start snmpd while it was already running, it would overwrite the old agentx socket before failing to open the udp transport and exiting. This would mean that

Re: My Subagent is not working after some long time

2011-01-08 Thread Bill Fenner
Prakash, There was a bug in earlier versions where if you tried to start snmpd while it was already running, it would overwrite the old agentx socket before failing to open the udp transport and exiting. This would mean that if the subagent ever got disconnected, it could never reconnect. It&#

Re: My Subagent is not working after some long time

2011-01-07 Thread Magnus Fromreide
On Fri, 2011-01-07 at 08:27 -0800, Wes Hardaker wrote: > > On Fri, 07 Jan 2011 08:23:00 -0800, Wes Hardaker > > said: > > P> Can you please explain the process/steps to check weather master agent is > P> listening the agentx port. > > WH> Please write to the [email protected]

Re: My Subagent is not working after some long time

2011-01-07 Thread Wes Hardaker
> On Fri, 07 Jan 2011 08:23:00 -0800, Wes Hardaker > said: P> Can you please explain the process/steps to check weather master agent is P> listening the agentx port. WH> Please write to the [email protected] mailing list WH> instead of writing to me personally with qu

Re: My Subagent is not working after some long time

2011-01-07 Thread Wes Hardaker
> On Fri, 7 Jan 2011 12:15:49 +0530, "Prakash" > said: P> Can you please explain the process/steps to check weather master agent is P> listening the agentx port. Please write to the [email protected] mailing list instead of writing to me personally with questions rega

RE: My Subagent is not working after some long time

2011-01-06 Thread Prakash
Thank Hardakar, I got the same situation again. Then I send a request to master agent but the response was "No Such Object available on this agent at this OID" But still my subagent process is running.. Can you please explain the process/steps to check weather master agent is lis

Re: My Subagent is not working after some long time

2011-01-06 Thread Wes Hardaker
>>>>> On Thu, 6 Jan 2011 11:55:29 +0530, "Prakash" >>>>> said: P> then I restarted my subagent and it throws "Warning: Failed to connect to P> the agentx master agent ([NIL]):" The next time it happens, you might try: 1) sending a

My Subagent is not working after some long time

2011-01-05 Thread Prakash
Hi All, I am using net-snmp5.4.2. I extended the subagent and it is running, but after some long time it gives "No Such Object available on this agent at this OID" then I restarted my subagent and it throws "Warning: Failed to connect to the agentx master agent ([NIL]

Re: Net-SNMP agentx master/subagent subtly broken in Net-SNMP 5.6

2010-12-21 Thread Bill Fenner
On Mon, Dec 20, 2010 at 7:42 PM, Wes Hardaker wrote: >> On Sat, 18 Dec 2010 16:43:56 -0500, Robert Story >> said: > > BF> (I've already diffed agent/mibgroup/agentx between 5.5 and 5.6, it's > BF> almost all cleanups that can't explain this; there's something more > BF> subtle going on s

Re: Net-SNMP agentx master/subagent subtly broken in Net-SNMP 5.6

2010-12-20 Thread Wes Hardaker
> On Sat, 18 Dec 2010 16:43:56 -0500, Robert Story > said: BF> (I've already diffed agent/mibgroup/agentx between 5.5 and 5.6, it's BF> almost all cleanups that can't explain this; there's something more BF> subtle going on somewhere.) RS> Have you diffed the transport code too? Um...

Re: Net-SNMP agentx master/subagent subtly broken in Net-SNMP 5.6

2010-12-18 Thread Robert Story
On Thu, 16 Dec 2010 16:42:09 -0500 Bill wrote: BF> (I've already diffed agent/mibgroup/agentx between 5.5 and 5.6, it's BF> almost all cleanups that can't explain this; there's something more BF> subtle going on somewhere.) Have you diffed the transport code too? -

Net-SNMP agentx master/subagent subtly broken in Net-SNMP 5.6

2010-12-16 Thread Bill Fenner
Hi, Our system uses Net-SNMP on both ends of the AgentX master/subagent relationship. With Net-SNMP 5.5, everything was very stable. With Net-SNMP 5.6, the subagent occasionally reconnects after a period of not being able to serve its objects. The subagent tracing looks like it stops getting

Re: How to change the sessiontimeout of subagent agentx message

2010-11-22 Thread Wes Hardaker
>>>>> On Mon, 22 Nov 2010 12:18:09 +0530 (IST), Sathish Chandrasekaran >>>>> said: SC>    Thanks for your response.Is this token supported for subagent SC> mode -"agentXTimeout" Iam getting warning as unknown Token  for SC> -"agentXTimeo

Re: How to change the sessiontimeout of subagent agentx message

2010-11-21 Thread Sathish Chandrasekaran
Wes,    Thanks for your response.Is this token supported for subagent mode -"agentXTimeout" Iam getting warning as unknown Token  for -"agentXTimeout" ,when I add this in the config file.BTW, Iam using 5.5 version.     Regards, -Sathish --- On Sat, 20/11/10, Wes Hardaker

Re: How to change the sessiontimeout of subagent agentx message

2010-11-19 Thread Wes Hardaker
>>>>> On Thu, 18 Nov 2010 17:21:41 +0530 (IST), Sathish Chandrasekaran >>>>> said: SC>   Can some one help me with configurations or code change for SC> increasing  sessiontimeout of netsnmp subagent of the agentx SC> request. # man snmpd.conf ...

How to change the sessiontimeout of subagent agentx message

2010-11-18 Thread Sathish Chandrasekaran
Hi,   Can some one help me with configurations or code change for increasing  sessiontimeout of netsnmp subagent of the agentx request. Regards, -Sathish -- Beautiful is writing same markup. Internet Explorer 9

Re: GETNEXT does not complete query processing at occurrence of error GenError in Agentx subagent.

2010-11-17 Thread Phill Xenox
Tue, 16 Nov 2010 16:28:10 + письмо от Dave Shield : > [ First - *please* don't mail me privately, without copying > any responses to the mailing list. I don't have the time > or inclination to offer private, unpaid, SNMP consultancy. > Keep discussions to the list, where others can bot

Re: GETNEXT does not complete query processing at occurrence of error GenError in Agentx subagent.

2010-11-16 Thread Dave Shield
andler does not terminate a poll subagent when it > receives generror. We probably need a bit more information about exactly what is happening here. Can you please try running the agent using the flags -D snmp_agent,agentx and issue a single GETNEXT request, that will trigger the problem

Re: GETNEXT does not complete query processing at occurrence of error GenError in Agentx subagent.

2010-11-11 Thread Dave Shield
On 11 November 2010 15:16, Robert Story wrote: > On Thu, 11 Nov 2010 09:20:22 +0300 Phill wrote: > PX> Has faced a strange situation. There are 4 tables in one MIB-file. All > tables are realised in the subagent through AgentX. Net-SNMP works as the > master. All fields of the

Re: GETNEXT does not complete query processing at occurrence of error GenError in Agentx subagent.

2010-11-11 Thread Robert Story
On Thu, 11 Nov 2010 09:20:22 +0300 Phill wrote: PX> Has faced a strange situation. There are 4 tables in one MIB-file. All tables are realised in the subagent through AgentX. Net-SNMP works as the master. All fields of the table have type Unsigned32. If any table contains an error (for exam

GETNEXT does not complete query processing at occurrence of error GenError in Agentx subagent.

2010-11-11 Thread Phill Xenox
Hi All! Has faced a strange situation. There are 4 tables in one MIB-file. All tables are realised in the subagent through AgentX. Net-SNMP works as the master. All fields of the table have type Unsigned32. If any table contains an error (for example negative value, the subagent returns

Help subagent crash on 5.4.2.1 in snmp_free_pdu

2010-11-09 Thread Sathish Chandrasekaran
Hi,     Iam using netsnmp 5.4.2.1 version as subagent with third party master agent .With this Iam getting SIGSEGV  after set of every oid on snmp_api.c in "_sess_process_packet" function in the below block in snmp_free_pdu.I would like to know when this block will be invoked.Is

Re: core dump while agentx subagent destroy a row with rowstatus

2010-11-03 Thread Robert Story
On Wed, 3 Nov 2010 18:34:58 +0100 Claus wrote: CK> It happens while de-allocate an index of a shared table which was CK> never allocated. CK> The core dump does not ocure every time, its depends on the agentx CK> traffic so far, CK> but the session times out and the subage

  1   2   3   4   5   6   >