Re: snmpd failed to start when agentx is enabled

2024-10-03 Thread Pushpa Thimmaiah
Hi Bill Fenner, Issue resolved. I have rebooted the device and started snmpd . socket file /var/agentx/master got created and example code is working. Thanks, Pushpa.T On Thu, Oct 3, 2024 at 5:09 PM Pushpa Thimmaiah wrote: > Hi Bill Fenner, > > Thank you. I enabled Unix transport

Re: snmpd failed to start when agentx is enabled

2024-10-03 Thread Pushpa Thimmaiah
Hi Bill Fenner, Thank you. I enabled Unix transport and added 'agentXSocket /var/agentx/master' in /etc/snmp/snmpd.conf, and I was able to execute snmpd. There was no /var/agentx/master created after starting snmpd, and AgentX was unable to connect to snmpd. I am following the AgentX t

Re: snmpd failed to start when agentx is enabled

2024-09-26 Thread Bill Fenner
Hi Pushpa, You are not enabling UNIX domain support, so net-snmp can't open the UNIX domain socket for agentx. You can either use the TCP socket by configuring with something like agentXSocket tcp:127.0.0.1:705 and then configuring clients similarly, e.g., "snmptrap -X tcp:705"

snmpd failed to start when agentx is enabled

2024-09-26 Thread Pushpa Thimmaiah
Hi All, I am getting following error while starting snmpd in net-snmp-5.9. I have enabled agentx and compiled the source. Kindly guide me to resolve the same. I have created directory /var/agentx --- agentx/master: initializing... trace: netsnmp_tdomain_transport_tspec

Need help regarding writing AgentX for support SNMP V3 Which running with Apache 2.4 Service.

2021-10-25 Thread Suresh
\snmp.exe,-) by adding my service community string in sercurity string like "xyz". Since windows OS SNMP Aget service never provide support for SNMP V3 so we need to support SNMP V3 in our application. So we need to write our own Agentx Which running with our application stack (like onl

Re: Net-SNMP AgentX - Problem with new MIB and snmpset

2021-05-20 Thread Simone Moni
Hi, I have not received yet any reply. Please, may you keep in consideration my request? I am registered on SourgeForce site, is there any action I have to take? Thank you BR Simone Il giorno gio 22 apr 2021 alle ore 13:14 Simone Moni ha scritto: > Hi all, > I'm a newbie with AgentX

Net-SNMP AgentX - Problem with new MIB and snmpset

2021-05-20 Thread Simone Moni
Hi all, I'm a newbie with AgentX. I need to extend snmpd with a new custom MIB module. I have NET-SNMP version 5.5 on Redhat, I would implement perl API, using NetSNMP::agent. Hereby, the steps I've done: - /etc/snmp/snmpd.conf #sec.name sourcecommunity com2sec not

Re: HELP - Net-SNMP AgentX - Problem with new MIB and snmpset

2021-05-14 Thread Wes Hardaker via Net-snmp-coders
Simone Moni writes: >         if ($request_info->getMode() == MODE_GET) { >             # ... generally, you would calculate value from oid >             if ($oid == new > NetSNMP::OID(".1.3.6.1.4.1.193.37.10.11.64.10.1.2.0")) { >             $request->setValue(ASN_OCTET_STR, $default_SP); >    

HELP - Net-SNMP AgentX - Problem with new MIB and snmpset

2021-05-07 Thread Simone Moni
Hi, Can anyone help me? I'm a newbie with AgentX. I need to extend snmpd with a new custom MIB module. I have NET-SNMP version 5.5 on Redhat, I would implement perl API, using NetSNMP::agent. Hereby, the steps I've done: - /etc/snmp/snmpd.conf #sec.name source

Agentx Timeout no response

2019-12-08 Thread Philippe Denis
Hello all, I've a problem to communicate with my agentx. I've set the MIBS environment variable by typing 'export MIBS=ALL' First, I write a small mib containing 2 objects (counter1 and counters2). Thanks to the mib2c tool, i've generated the C code and update the data

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: "net-snmp-coders@lists.sourceforge.net" 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" < > net-snmp-coders@lists.sourceforge.net> > *Reply-To: *"David Moriconi (dmoricon)" > *Date: *Thursday, November 28, 2019 at 8:27 AM > *To: *Anders Wallin > *Cc: *"net-snmp-coders@lists.sourceforge.net" < > 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: "net-snmp-coders@lists.sourceforge.net" 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 g...@github.com: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: double-free crash in agentx/master.c (bug #2943)

2019-07-08 Thread Sam Tannous
(void *) ax_session); > else > cb_data = NULL; > > > */* some checks */* > > > > > > > > > * cache = netsnmp_handler_check_cache(cb_data);if (!cache) { > DEBUGMSGTL(("agentx/master", "session may

Re: double-free crash in agentx/master.c (bug #2943)

2019-06-26 Thread Sam Tannous
) ax_session); else cb_data = NULL; */* some checks */* * cache = netsnmp_handler_check_cache(cb_data);if (!cache) { DEBUGMSGTL(("agentx/master", "session may be disconnected %8p\n", session));/* response is too late, perhaps sess

double-free crash in agentx/master.c (bug #2943)

2019-06-25 Thread Sam Tannous
upSet PDU. In the case I'm looking at, I can see the master has already disconnected the subagent: bgpd[5180]: snmp[info]: AgentX master disconnected us, reconnecting in 15 ip[8042]: *** Error in `/usr/sbin/snmpd': double free or corruption (fasttop): 0x01d15420 *** zebra[21

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

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

snmp agentx default OID access

2017-09-14 Thread Ash
I have written a custom SNMPV2C agent (agentx protocol) extending netsnmp, As of now I am allowing view access to all in snmpd.conf as follows view all included .1 it exposes mgmt (RFC1213 ) which looks fine, it also exposes snmpV2 mib's ( snmpMIB, snmpFrameworkMIB, VacmMIB etc). I cou

AgentX not working under embedded Linux

2017-06-12 Thread Vozda, Ondrej
*Description: I am trying to extend you SNMP daemon with my own AgentX subagent to handle our custom OIDs. To try this, I actually used you mib2c generator and our MIB file to create and run an example AgentX daemon and tried to execute this on my desktop (running Ubuntu 16.04). That worked fine. When

Re: AgentX - nonblocking

2016-03-19 Thread Robert Story
On Tue, 15 Mar 2016 18:10:35 +0100 Dirk-Willem wrote: DWVG> On 04 Mar 2016, at 15:00, Robert Story DWVG> wrote: DWVG> > On Sun, 27 Dec 2015 14:41:23 +0100 Dirk-Willem wrote: DWVG> > DWVG> What is the proper way to put a select() or poll() or DWVG> > DWVG> similar onto the agent (file descriptor)

Re: AgentX - nonblocking

2016-03-15 Thread Dirk-Willem van Gulik
On 04 Mar 2016, at 15:00, Robert Story wrote: > On Sun, 27 Dec 2015 14:41:23 +0100 Dirk-Willem wrote: > DWVG> I’ve got an AgentX module that watches for specific multicast > DWVG> traffic, pulls a few bits out; and updates some counters > DWVG> accordingly. Consequentely I

Re: AgentX - nonblocking

2016-03-04 Thread Robert Story
On Sun, 27 Dec 2015 14:41:23 +0100 Dirk-Willem wrote: DWVG> I’ve got an AgentX module that watches for specific multicast DWVG> traffic, pulls a few bits out; and updates some counters DWVG> accordingly. Consequentely I run the AgentX in non-blocking DWVG> mode; as to (also) be able a

AgentX - nonblocking

2015-12-27 Thread Dirk-Willem van Gulik
I’ve got an AgentX module that watches for specific multicast traffic, pulls a few bits out; and updates some counters accordingly. Consequentely I run the AgentX in non-blocking mode; as to (also) be able attend to the socket in parallel to handing SNMP requests. Code below works splendidly

Need help: AgentX callbacks not called

2015-09-08 Thread Ulrich Windl
Hi! I need some help finding the missing link for my AgentX subagent: I made an agentX that registers successfully with the master agent, and it registers the MIB object. However for some reason, the master agent seems to know nothing about the MIB, and the provided callback function are not

Re: agentX communication issue on net-snmp5.7.2

2015-08-27 Thread Sagar Kapadi (sakapadi)
Hi Magnus, Thanks for your reply. I found the issue with locking and unlocking mechanism which my application is using. And by correcting it issue is no more available. Thanks once again! Regards, Sagar. On 10/08/15 1:58 pm, "Magnus Fromreide" wrote: >On Tue, Jul 21, 2015 at 09:10:45AM +,

Re: agentX communication issue on net-snmp5.7.2

2015-08-10 Thread Magnus Fromreide
On Tue, Jul 21, 2015 at 09:10:45AM +, Sagar Kapadi (sakapadi) wrote: > Hi, > > This is Sagar Kapadi. > I am using net-snmp5.7.2 stack on power PC architecture. Here we are trying > to stress the traps. So we are sending a trap at every 50seconds of interval. > > I am hitting an issue where I

agentX communication issue on net-snmp5.7.2

2015-08-10 Thread Sagar Kapadi (sakapadi)
Hi, This is Sagar Kapadi. I am using net-snmp5.7.2 stack on power PC architecture. Here we are trying to stress the traps. So we are sending a trap at every 50seconds of interval. I am hitting an issue where I have multiple trap-destinations configured. Initially netstat details are like below

Re: agentX++ interoperability with NET-SNMP version 5.7.3.rc1

2014-11-29 Thread Claus Klein
Hi Bill,thank you for your response.I fixed the bug at my subagent. Everything seems right now for me, but the net-snmp master agent still creates a gen error.I send you the agentx messages, perhaps you can see the error?Best regardsClausclaus-mbp:build clausklein$ egrep -wn '(Command|er

Re: agentX++ interoperability with NET-SNMP version 5.7.3.rc1

2014-11-22 Thread Bill Fenner
On Sat, Nov 22, 2014 at 5:34 AM, Claus Klein wrote: > Hi, > > I have tested net-snmp as master agent with current agentpp subagent. > The most important problem I found is: > > > The row destroy at subagent does not work together with net-snmp master > agent! > > &g

agentX++ interoperability with NET-SNMP version 5.7.3.rc1

2014-11-22 Thread Claus Klein
Hi, I have tested net-snmp as master agent with current agentpp subagent. The most important problem I found is: The row destroy at subagent does not work together with net-snmp master agent! The agentX++ subagent send the (Index Deallocate) command before it send the response to the (Commit

Re: a query regarding AgentX and snmpd

2014-06-10 Thread sarath azad
Hello,   Could you please tell the scenario when agentx_reopen_session() and register_mib_reattach() functions be called from run_alarms() in AgentX process? Here we have a main agent “snmpd” process and snmp_agentx process.   Does these functions be called when we looses connection between

a query regarding AgentX and snmpd

2014-06-06 Thread sarath azad
  Hello,   Could you please tell the scenario when agentx_reopen_session() and register_mib_reattach() functions be called from run_alarms() in AgentX process? Here we have a main agent “snmpd” process and snmp_agentx process.   Does these functions be called when we looses connection between

Re: low? octet string limit on AgentX transactions

2013-11-29 Thread Bill Fenner
On Mon, Oct 28, 2013 at 7:01 AM, Fulko Hew wrote: > I was bit recently by a design limitation on the length of OCTET STRINGS > as received and processed by AgentX. > > ... > Comments? > I think the dual to this problem has also been reported at https://sourceforge.net/p/net-s

low? octet string limit on AgentX transactions

2013-10-28 Thread Fulko Hew
I was bit recently by a design limitation on the length of OCTET STRINGS as received and processed by AgentX. My subagent was sending a Notify, that under certain conditions contained 'long' strings; and I was seeing that snmpd (once it received one of these notifies) didn't forw

Re: agentx/master: unexpected callback op 4 message

2013-01-26 Thread Claus Klein
AM, Claus Klein > wrote: Hi, when I stop, and start the agentx master agent again while the agentx client is still running, I got this messages: NET-SNMP version 5.4.4 agentx/master: unexpected callback op 4 agentx/master: handle pdu (req=0x166,trans=0x0,sess=0x0) agentx/master: open 0x451

Re: agentx/master: unexpected callback op 4 message

2013-01-25 Thread Bill Fenner
On Tue, Jan 22, 2013 at 11:16 AM, Claus Klein wrote: > Hi, > > when I stop, and start the agentx master agent again while the agentx client > is still running, I got this messages: > > NET-SNMP version 5.4.4 > agentx/master: unexpected callback op 4 > agentx/master: han

agentx/master: unexpected callback op 4 message

2013-01-22 Thread Claus Klein
Hi, when I stop, and start the agentx master agent again while the agentx client is still running, I got this messages: NET-SNMP version 5.4.4 agentx/master: unexpected callback op 4 agentx/master: handle pdu (req=0x166,trans=0x0,sess=0x0) agentx/master: open 0x451500 agentx/master: opened

Re: AgentX sub-agent with last-ditch caching in the master

2013-01-18 Thread Wes Hardaker
Doug Manley writes: > I would like to have the master (snmpd) persist their information in a > cached fashion *if it cannot communicate with the agent any longer*. I do > not want to return cached information otherwise; if the agent is up, then I > want to receive the current value (not a cached

AgentX sub-agent with last-ditch caching in the master

2013-01-17 Thread Doug Manley
Hello, I have implemented a number of daemons that act as AgentX sub-agents, allowing me to easily gather information about my running daemons. However, I would also like to use AgentX with some of by utilities that run from time to time. Since they aren't always running, their OIDs will

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
Hi, I have compiled the sub agent using AgentX [example-demon.c, nstAgentSubagentObject.c] in Windows mode. [Got the source code from http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_Subagent#Instrumenting_your_own_code_with_agentx_subagent_support]. Enabled the "master agentx&

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: cache reload issue in agentX

2012-11-02 Thread 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 at the best of times - let alone at the moment. Keep discussions to the list, where others can bot

Re: cache reload issue in agentX

2012-11-01 Thread Dave Shield
On 1 November 2012 13:34, Jatin Bodarya wrote: >For example, is it actually necessary to dynamically > allocate memory within the 'getfield' routine? > This is then parsed as a decimal number, and > then released immediately. > > ->> yes as the original CSV file is very dynamically change its

RE: cache reload issue in agentX

2012-11-01 Thread Jatin Bodarya
First question: Why are you creating two caches? I would expect this to double the loading time (Though given that poolTable_load1 doesn't seem to be defined anywhere, I can't see how this code would even compile!) ->>ooosssthat was a silly try forgot to comment 2nd ca

Re: cache reload issue in agentX

2012-11-01 Thread Dave Shield
On 1 November 2012 10:50, Jatin Bodarya wrote: > (With attachment there is a full code) First question: Why are you creating two caches? I would expect this to double the loading time (Though given that poolTable_load1 doesn't seem to be defined anywhere, I can't see how this cod

Re: cache reload issue in agentX

2012-11-01 Thread Dave Shield
On 1 November 2012 09:13, Jatin Bodarya wrote: > Hi Dave, I'm actually taking something of a sabbatical from Net-SNMP support at the moment. It would be sensible to address your queries to the general community, rather than to me personally, as I'm relatively unlikely to respond > I have implem

cache reload issue in agentX

2012-11-01 Thread Jatin Bodarya
Hie Dave, I have implemented C code using mib2c.create-dataset.conf ( with cache enabled) Here I suppose to read very large amount of data from file. And so I m Facing problem while reloading the cache... And because of the slow speed snmpwalk returns no response from the host. Is it possibl

RE: Problems with patch 1633670 - AgentX timeout and disconnect scenarios

2012-09-07 Thread ken_farnen
I've opened bug 3565004 for this issue (whilst it's related to the previous AgentX disconnect issue, it's more of a new bug, or, indeed, a bug in the patch for the previous bug). Lots of useful stuff uploaded into the bug report, including a stripped down demo subagent

Problems with patch 1633670 - AgentX timeout and disconnect scenarios

2012-08-28 Thread ken_farnen
er than I. The Scenario: We've got an application that registers as an AgentX subagent in order to answer queries for a private MIB related to the applications state. Platform is Montavista linux on x86 (specifically, glibc 2.3.3, kernel 2.6.10-x86 and 2.6.21-x86-64). We've been exper

Re: AgentX table requests very slow.

2012-07-11 Thread Wes Hardaker
"Scales, Neil" writes: > How can I speed it up? You'd have to tell us how you implemented your MIB and with which type of API style you picked. In short, some of the easiest APIs to use are unfortunately slow (they were designed to get someone up and running, not to be efficient). But you have

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

AgentX table requests very slow.

2012-06-28 Thread Scales, Neil
I'm implementing an AgentX helper that implements a table using net-snmp V5.7.1 on Linux. The test code is working fine, but it's really slow. Each row has 9 columns, and at the moment with 4 rows, it takes about 3 seconds to get the whole table. When I get to 100s of rows, it&#x

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: Connect to main agent from AgentX Sub-agent

2012-04-13 Thread Robert Story
On Thu, 5 Apr 2012 22:02:26 +0530 Ramakrishnan wrote: RS> I am implementing a MIB module as a Agentx sub-agent. Inside my sub-agent RS> code, I need to set another OID. Note that you cannot set another OID while processing any requests from the master agent. Well, you can send the set,

Re: Connect to main agent from AgentX Sub-agent

2012-04-10 Thread Dave Shield
On 5 April 2012 17:32, Ramakrishnan Sreenivasamallan wrote: > I am implementing a MIB module as a Agentx sub-agent. Inside my sub-agent > code, I need to set another OID. After searching in forum it seems to me > that I need to use snmp_open() and netsnmp_query_set() functions

Connect to main agent from AgentX Sub-agent

2012-04-05 Thread Ramakrishnan Sreenivasamallan
Hello, I am implementing a MIB module as a Agentx sub-agent. Inside my sub-agent code, I need to set another OID. After searching in forum it seems to me that I need to use snmp_open() and netsnmp_query_set() functions to open a connection to main agent. It would be great if somebody can post an

Sub-Agent (agentX) getting blocked at write call to pipe in netsnmp_callback_send

2012-03-17 Thread sarath azad
Hello,   Could you please help me regarding this problem.   When I am sending continuous flow if snmp traffic (packets/queries) the subagent is getting blocked at the the call:     agent_check_and_process(Operation::AGENTX_BLOCK_TILL_SNMP_PACKET_ARRIVE);   Inside which its getting blo

can't override sysObjectID in an AgentX sub-agent

2012-03-06 Thread Fulko Hew
My thought was that I could create an AgentX sub-agent that registers itself on the sysObjectID OID, and would provide my custom value. I've tried it, but my sub-agent never gets called. I've tried it at the default priority of 127, a higher priority of 1 and a lower priority of 254 dur

AgentX getting blocked at write call in netsnmp_callback_send

2012-03-06 Thread sarath azad
Hello,   Could you please help me regarding this problem.   When I am sending continuous flow if snmp traffic (packets/queries) the process SNMPd is getting unresponsive after some time and we are restarting it. But after some 30-35 restarts the AgentX is getting blocked in at the call

Re: Net-SNMP AgentX

2012-02-29 Thread Dave Shield
On 24 February 2012 08:21, liujun331 wrote: > I am  having problems with running net-snmp related to net-snmp > configuration. I get these messages from running net-snmp: > # /bin/snmpd -f -Le -d & > Warning: no access control information configured. >   It's unlikely this agent can serve any use

Re: Net-SNMP AgentX

2012-02-27 Thread Robert Story
On Fri, 24 Feb 2012 16:21:04 +0800 liujun331 wrote: L> I am having problems with running net-snmp related to net-snmp L> configuration. I get these messages from running net-snmp: L> L> # /bin/snmpd -f -Le -d & L> 53 L> # Cannot find module (SNMPv2-MIB): At line 0 in (none) L> Cannot find module

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

2012-01-01 Thread Renjith R. V.
erval [15 sec] The agentx connection had broken in between in both the cases. I am wondering why the session break happening in the 2nd case. Anyway I could notice that the agentx/master process goes through netsnmp_wrap_up_request() during these scenario and reset netsnmp_processing_set g

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_processing_set.

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

2011-12-30 Thread Bill Fenner
it( 0 ); } else { /* blocking sleep */ sleep( *requests->requestvb->val.integer ); } to make it easy to test the two failure cases in agentx/master.c ("handle protocol disconnect" and "subagent request timeout"). (I'm not comp

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

2011-12-29 Thread Renjith R. V.
irm whether the issue is really fixed in v 5.7.1. Also I have seen some of the similar issues that you have reported under "Error handling path in agentx master and subagents" in net-snmp 5.7.1 So I think probably some guys actually taking part in the core work behind NetSNMP applica

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
Hi Renjith, I came across this behavior in a different context and filed a bug: http://sourceforge.net/tracker/?func=detail&aid=3456337&group_id=12694&atid=112694 ("Certain agentx failures can result in apparent agent hang"). I was unaware of the "set times out&

agentx master agent not responding after an agentx subagent SET timeout

2011-12-27 Thread Renjith R. V.
I am using snmpd as the agentx master and a sub agent is running as the agentx client. I have a scenario in which one parameter SET operation[handler running in sub agent] will take more time to complete. It is observed from snmpd debug log that the operation, SET_ACTION timeout at master side at

Error handling path in agentx master and subagents

2011-12-15 Thread Bill Fenner
I've stumbled across some really peculiar error handling problems in the agentx implementation in net-snmp 5.7.1, and was wondering if anyone was familiar enough with this code to figure out what's going on. 1. VarBinds of an unrecognized type get *stripped* from SET requests ai

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
On Wed, 7 Dec 2011 10:30:53 +0800 xianlong wrote: XQ> 1. Is there any performance difference between proxy and agentx? I have XQ> read some of the code for proxy, if the following line is configured in XQ> snmpd.conf, all the request PDU with context ctx_xq will be recreated XQ> (snm

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: Problem with running sub-agent: AgentX

2011-11-23 Thread Dave Shield
On 23 November 2011 11:00, prashant n wrote: > 1)  If  i want to handle other objects with types such as table, float, > string etc.. then what changes  i need to do in source file example-demon.c ? >From the FAQ entry Which mib2c configuration file should I use? For implementing a group

Problem with running sub-agent: AgentX

2011-11-23 Thread prashant n
Hi Dave, *Thanks for your reply.* * * Again i tried both the cases i,e 1) I am able to create sub-agent: AgentX automatically using the net-snmp-config script and i tested. 2) Instrumenting my own code with agentx sub agent support as given in tutorial I killed the snmpd command

RE: Problem with running sub-agent: AgentX

2011-11-23 Thread Eirik Nordbrøden
t > Subject: Re: Problem with running sub-agent: AgentX > > On 23 November 2011 06:33, prashant n wrote: > > Following lines shows the output of the command: > >  sudo /usr/local/sbin/snmpd -f -L -d -p Turning on AgentX > > master support. > > NET-SNMP ver

Re: Problem with running sub-agent: AgentX

2011-11-23 Thread Dave Shield
On 23 November 2011 06:33, prashant n wrote: > Following lines shows the output of the command: >  sudo /usr/local/sbin/snmpd -f -L -d -p > Turning on AgentX master support. > NET-SNMP version 5.6.1.1 OK - so there's no sign of any warning messages. So opening the Age

Problem with running sub-agent: AgentX

2011-11-22 Thread prashant n
Hi Dave, *Thanks for your valuable feedback.* Ya now i got advantage of using sub-agent, you have been very helpful for me. Following lines shows the output of the command: sudo /usr/local/sbin/snmpd -f -L -d -p Turning on AgentX master support. NET-SNMP version

Re: Problem with running sub-agent: AgentX

2011-11-22 Thread Dave Shield
On 22 November 2011 14:43, prashant n wrote: > my snmpd.conf looks like this > > rwcommunity  private > master agentx > >  and i run the master agent using command: > sudo /usr/local/sbin/snmpd -f -L -d -p What is the output of this command? Wh

Re: Problem with running sub-agent: AgentX

2011-11-22 Thread Dave Shield
On 22 November 2011 14:43, prashant n wrote: >     Before i move to  the problem with running sub-agent, i wanted to know > what is the main advantage of using sub-agent in comparison with compiling > MIB modules with the SNMP agent snmpd The main advantage is with regard to deployment. If you h

Problem with running sub-agent: AgentX

2011-11-22 Thread prashant n
* *Coming to actual problem :Problem with running sub-agent: AgentX* I followed tutorial , i am able to create sub-agent: AgentX automatically using the net-snmp-config script and i tested. I started instrumenting my own code with agentx sub agent support as described in tutorial and gone through

Re: A few questions about AgentX on NET-SNMP

2011-11-14 Thread 梅亮
ote: > >On each of the subagent, we need to register > > the same set of OIDs with the master agent. > > Yes - as you have realised, this is precisely the scenario that contexts > were designed to handle. > > > > > 1. About AgentX in net-snmp, Is registering t

Re: A few questions about AgentX on NET-SNMP

2011-11-14 Thread Dave Shield
On 14 November 2011 01:28, 梅亮 wrote: >On each of the subagent, we need to register > the same set of OIDs with the master agent. Yes - as you have realised, this is precisely the scenario that contexts were designed to handle. > 1.      About AgentX in net

A few questions about AgentX on NET-SNMP

2011-11-13 Thread 梅亮
ch of the subagent, ifName.1 object instance(OID+Index) both existed. Management station can specify the context string in the snmp get/set command to decide which subagent’s ifName.1 they want to get/set. So this brings us the following three questions: 1. About AgentX in net-snmp, Is regist

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: Net-SNMP doesn't appear to use agentX getBulk PDUs

2011-02-21 Thread Dave Shield
On 21 February 2011 14:10, Fulko Hew wrote: > It doesn't appear that Net-SNMP uses AgentX getBulk PDUs. I believe that's correct, yes. Dave -- The ultimate all-in-one performance toolkit: Intel(R) Paral

Net-SNMP doesn't appear to use agentX getBulk PDUs

2011-02-21 Thread Fulko Hew
Just to confirm... It doesn't appear that Net-SNMP uses AgentX getBulk PDUs. Looking through the code, (and sniffing the wire) it looks like the master agent maps an incoming SNMP getBulk onto a 'number of AgentX getNext commands'... Implying that my AgentX sub-agent code doesn&#x

Re: problem with AgentX getNext and multiple regions?

2011-02-18 Thread Fulko Hew
On Fri, Feb 18, 2011 at 3:58 PM, Dave Shield wrote: > On 18 February 2011 20:28, Fulko Hew wrote: > > I have two regions registered, and I perform a getnext to the master... > > > > The master sends an AgentX getNext PDU on the first region looking for a > > positi

Re: problem with AgentX getNext and multiple regions?

2011-02-18 Thread Dave Shield
On 18 February 2011 20:28, Fulko Hew wrote: > I have two regions registered, and I perform a getnext to the master... > > The master sends an AgentX getNext PDU on the first region looking for a > positive response.  Unfortunately, the 'next' variable isn't within t

problem with AgentX getNext and multiple regions?

2011-02-18 Thread Fulko Hew
I'm confused by what Net-SNMP (5.6.rc2) is doing when interacting with my AgentX sub-agent. I have two regions registered, and I perform a getnext to the master... The master sends an AgentX getNext PDU on the first region looking for a positive response. Unfortunately, the 'next

Trap/AgentX not working for Windows when TRAP monitoring is enabled

2011-02-15 Thread Singh, Vinay
I am trying to test my subagent on Windows7 platform. As soon as I put the following line in my snmpd.conf file and restart the master agent, AgentX communication stops working. Same configurations file works fine on Solaris10 and Ubuntu 10.10. notificationEvent HaveRMSources DISMAN-EVENT

getNext on AgentX sub-agent OID boundary confusion

2011-02-15 Thread Fulko Hew
I am implementing a (native Perl) AgentX library and I'm testing it with a sample sub-agent... Can someone explain my confusion in the following AgentX scenario: 1/ My sub-agent registers a row in its table. The row has 4 columns. The table OID is defined as 1.3.6.1.4.1.881.500.

Re: transport copy [Re: trunk: Tests T053 (SNMPv3 snmptrapd USM user management with snmpusm) and T110 (AgentX GET support)]

2011-01-07 Thread Magnus Fromreide
On Fri, 2011-01-07 at 14:13 -0800, Wes Hardaker wrote: > On Thu, 6 Jan 2011 18:46:11 +0100 Bart wrote: > BVA> Are the original transport data structure and its copy modified > BVA> independently of each other - if these are ever modified ? If not, a > BVA> possible alternative is to use reference c

Re: transport copy [Re: trunk: Tests T053 (SNMPv3 snmptrapd USM user management with snmpusm) and T110 (AgentX GET support)]

2011-01-07 Thread Wes Hardaker
On Thu, 6 Jan 2011 18:46:11 +0100 Bart wrote: BVA> Are the original transport data structure and its copy modified BVA> independently of each other - if these are ever modified ? If not, a BVA> possible alternative is to use reference counting instead of copying. RS> I believe Wes added the copy

  1   2   3   4   5   6   >