Re: Single GET request sending multiple requests

2018-07-10 Thread Vinod Patil
gt; > If you don't want caching, you can regenerate the code without it. > > VP> Basically, we would like the table_load to load only the > VP> requested column every time a GET request comes in instead of > VP> loading all the columns - Is this achievable with the >

Re: Single GET request sending multiple requests

2018-07-10 Thread Robert Story
table_load to load only the VP> requested column every time a GET request comes in instead of VP> loading all the columns - Is this achievable with the VP> mib2c.mfd.conf generated code? Not without having to delve into the depths of the guts of the library. If you modify the *Table

Single GET request sending multiple requests

2018-07-10 Thread Vinod Patil
table_data_access.c and called the API in table_data_get.c:_column_get() function. Also, we set the cache timeout to 0. This works, but we have observed that after some time after the first GET request (10 minutes or so) , we see multiple requests (around 6 or so) going to the device for the same OID

async get request timeout

2016-02-15 Thread Muruganand Karthikeyan
Hi All, I'm using net-snmp api version 5.2.1. I'm following the async app tutorial on the wiki but I'm seeing a strange behavior. Although I'm receiving responses for the sent requests(sub-second response times), I'm also receiving a timeout callback after the timeout period. Any pointers about

Re[8]: How to get IP of received get request

2015-12-23 Thread Igor Sobinov
ate >>> trap/notifications are sent correctly to the pre-configured >>> trapsink/trap2sink/informsink/trapsess >>> addresses. (man snmpd.conf) >>> >>>> Пятница, 18 декабря 2015, 16:43 UTC от pikmaster < pikmas...@wp.pl >: >>>> >&

Re: Re[6]: How to get IP of received get request

2015-12-23 Thread Fulko Hew
а, 18 декабря 2015, 16:43 UTC от pikmaster : >>> >>> You can read it from the log file of snmptrapd, if you want to implement >>> it >>> as a script perhaps? Or you are looking for the API? >>> Sent from my Mobile >>> >>> Original message >

Re[6]: How to get IP of received get request

2015-12-23 Thread Igor Sobinov
aster < pikmas...@wp.pl >: >>> >>> You can read it from the log file of snmptrapd, if you want to implement it >>> as a script perhaps? Or you are looking for the API? >>> Sent from my Mobile >>> >>> Original message &g

Re: Re[4]: How to get IP of received get request

2015-12-23 Thread Fulko Hew
master : >> >> You can read it from the log file of snmptrapd, if you want to implement it >> as a script perhaps? Or you are looking for the API? >> Sent from my Mobile >> >> Original message ---- >> From: Igor Sobinov >> Date: 18/12/2015 0

Re[4]: How to get IP of received get request

2015-12-23 Thread Igor Sobinov
l...@mail.ru > >> Date: 18/12/2015 08:08 (GMT+00:00) >> To: net-snmp-users < net-snmp-users@lists.sourceforge.net > >> Subject: How to get IP of received get request >&

Re: Re[2]: How to get IP of received get request

2015-12-22 Thread Fulko Hew
of snmptrapd, if you want to implement it > as a script perhaps? Or you are looking for the API? > Sent from my Mobile > > Original message > From: Igor Sobinov > Date: 18/12/2015 08:08 (GMT+00:00) > To: net-snmp-users > Subject: How to get IP of received g

Re[2]: How to get IP of received get request

2015-12-21 Thread Igor Sobinov
ou are looking for the API?  Sent from my Mobile > > > Original message >From: Igor Sobinov < sl...@mail.ru > >Date: 18/12/2015 08:08 (GMT+00:00) >To: net-snmp-users < net-snmp-users@lists.sourceforge.net > >Subject: How to get IP of recei

Re: How to get IP of received get request

2015-12-18 Thread pikmaster
received get request Hello! I need to get an IP addreess of received Get retuest to send traps to this address later. Is any way to do it? Bye, Igor -- ___ Net-snmp-users

How to get IP of received get request

2015-12-18 Thread Igor Sobinov
Hello! I need to get an IP addreess of received Get retuest to send traps to this address later. Is any way to do it? Bye, Igor -- ___ Net-snmp-users mailing list Net-snmp-us

SNMP Daemon Not responding to Get Request

2012-08-30 Thread csmg sarma
. When a GET request comes I see the following message. *Connection from UDP: [192.168.21.170]:1565->[192.168.21.24]* > What is it that I have to do. Am I missing something. My daemon program is as follows. int main (int argc, char *argv[]) > { > int agentx_subagent = 0

Force table cache reload in code (the get request)

2012-03-27 Thread Francois Bouchard
>> My questions are: >> What is the proper way to force a cache reload at anytime? >Call the cache_load routine. >That's exactly what it's there for. two questions about forcing a cache reload (the get request) : 1) Does the cache handler still have to be registere

Sending GENERR back in GET Request

2010-04-12 Thread JORDI LOPEZ
break; default: return SNMP_ERR_GENERR; } return SNMP_ERR_NOERROR; } The subagent is working fine except for a small problem. If I set dmsColorScheme to a value that forces dmsBackGroundColor to return a G

sending a GET request from an agentx subagent

2009-01-06 Thread Violette Moulin
Hi, I'd like do write an application which is both an agentx subagent and a manager. So in a first detached thread I wait for requests, using agent_check_and_process(1). In an other thread I send GET and SET requests (on an other MIB) : snmp_synch_response(..) Is it the right way to do that ? M

Re: How to renew (update) data stored on a OID for a get request?

2008-02-13 Thread Dave Shield
On 13/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: > is there no way to solve my problem with 5.2? The cache helper is part of the 5.2.x distribution, so you could probably use the cache-style framework from the "mib2c.table_data.conf" template, with your earlier "mib2c.create-data.conf" code

Re: How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Simon Huebner
Dave Shield wrote: > On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: >>> What's the installed version of Net-SNMP ? >>> 5.2.x or something later? >> Version 5.2.3-7etch2 (Debian) > > You need 5.3 or later for the "tdata" helper. > The 5.2.x version of mib2c.table_data.conf uses a different

Re: How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Dave Shield
On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: > > What's the installed version of Net-SNMP ? > > 5.2.x or something later? > > Version 5.2.3-7etch2 (Debian) You need 5.3 or later for the "tdata" helper. The 5.2.x version of mib2c.table_data.conf uses a different table helper (and doesn't

Re: How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Simon Huebner
Dave Shield wrote: > On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: >> 'netsnmp_tdata_row' undeclared (first use in this function) ... >> and so one! > > What's the installed version of Net-SNMP ? > 5.2.x or something later? > > Dave Version 5.2.3-7etch2 (Debian) SoFar Simon -

Re: How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Dave Shield
On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: > 'netsnmp_tdata_row' undeclared (first use in this function) ... > and so one! What's the installed version of Net-SNMP ? 5.2.x or something later? Dave - This SF.net

Re: How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Simon Huebner
Dave Shield wrote: > On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: >> row = hrSWInstalledTable_createEntry(table, c); > >> But how i add the data to the entry?. >> Or modify entry with row->data->...? > > Yes. > > Dave First, thanks for fast help! Next problem: 'netsnmp_tda

Re: How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Dave Shield
On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: > row = hrSWInstalledTable_createEntry(table, c); > But how i add the data to the entry?. > Or modify entry with row->data->...? Yes. Dave - This SF.net email is s

Re: How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Simon Huebner
Dave Shield wrote: > On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: >> But now i have a problem with the load routine? >> With routine should i use to fill the table? >> >> netsnmp_create_table_data_row(); >> netsnmp_set_row_column() and so one doesn't work, or? > > No - that's the API fo

Re: Re: Re: How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Dave Shield
On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: > But now i have a problem with the load routine? > With routine should i use to fill the table? > > netsnmp_create_table_data_row(); > netsnmp_set_row_column() and so one doesn't work, or? No - that's the API for the "create-dataset" framewo

Re: Re: Re: How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Simon Huebner
Dave Shield wrote: > On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: >>> How have you coded your MIB module? >>> What helper(s) are you using? >>>That might affect what your code might look like. > >> I fill the hrSWInstalledTable from HOST-RESOURCES-MIB with the output >> from dpkg. >

Re: Re: How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Dave Shield
On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: > > How have you coded your MIB module? > > What helper(s) are you using? > >That might affect what your code might look like. > I fill the hrSWInstalledTable from HOST-RESOURCES-MIB with the output > from dpkg. One of the MIBs (high) on

Re: Re: How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Simon Huebner
Dave Shield wrote: > On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: >> I want to update data stored on a OID every time a get-request for this >> OID comes in! >> A AgentX stores the data but only on startup. > > Not true. > It depends how you implem

Re: How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Dave Shield
On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote: > I want to update data stored on a OID every time a get-request for this > OID comes in! > A AgentX stores the data but only on startup. Not true. It depends how you implement the MIB module. > Is there a way to call the

How to renew (update) data stored on a OID for a get request?

2008-02-12 Thread Simon Huebner
Hello all, I have a problem! I want to update data stored on a OID every time a get-request for this OID comes in! A AgentX stores the data but only on startup. Is there a way to call the init_... function before answer a get-request? SoFar Simon

Re: GET-Request Send + Get Response Recieve Bug in Net-SNMP 5.4.1 (might be urgent)

2007-10-16 Thread Thomas Anders
[EMAIL PROTECTED] wrote: > I found a Bug in Net-SNMP regarding the handling of recieving and matching > Get-Response to the coresponding Get-Request. I am using SNMPv2C. [...] > I allready had this Bug in 5.1.4 and it is still there. (I had a hard time > building net-snmp 5.4

GET-Request Send + Get Response Recieve Bug in Net-SNM P 5.4.1 (might be urgent)

2007-10-16 Thread boa . thor
Hello there, I am working on a datacollector using the Net-SNMP 5.4.1, programming is done in Perl using the SNMP.pm and SNMP::Multi.pm. I found a Bug in Net-SNMP regarding the handling of recieving and matching Get-Response to the coresponding Get-Request. I am using SNMPv2C. For me, it looks

Re: subagent - how long can it take to respond to a get request?

2006-09-04 Thread Dave Shield
On 01/09/06, Nikanth K <[EMAIL PROTECTED]> wrote: > How does the Master agent react to repeat requests ? It processes them. > Does it identify it. No > If it does, does it ignore the responses for the earlier requests. No. > Does it ignore the later requests/responses etc. No. Dave ---

Re: subagent - how long can it take to respond to a get request?

2006-08-31 Thread Nikanth K
On 8/31/06, Dave Shield <[EMAIL PROTECTED]> wrote: On 31/08/06, Nikanth K <[EMAIL PROTECTED]> wrote:> > So can I take around 30 secs to respond? Will that be acceptable?>> If I do that will SNMP walk work without any glitches? 30 seconds is a little bit long.A typical management application would p

Re: subagent - how long can it take to respond to a get request?

2006-08-31 Thread Nikanth K
That's how the Net-SNMP client tools work, yes.They'll make the request, and if they don't receive an answer within a reasonable time, they'll try again.  Only when a certain number ofretries have timed out will they report failure.Try   "snmpgetnext -d ." to see this happening.But a typical se

Re: subagent - how long can it take to respond to a get request?

2006-08-31 Thread Dave Shield
On 31/08/06, Nikanth K <[EMAIL PROTECTED]> wrote: > It is just a one-off overhead for the entire set of values OK - then use the cache handler. This has a routine to load all of the values (incurring the 30s overhead and probable timeout), but these values are then used for subsequent requests (h

Re: subagent - how long can it take to respond to a get request?

2006-08-31 Thread Nikanth K
On 8/31/06, Dave Shield <[EMAIL PROTECTED]> wrote: On 31/08/06, Nikanth K <[EMAIL PROTECTED]> wrote:> > So can I take around 30 secs to respond? Will that be acceptable?>> If I do that will SNMP walk work without any glitches? 30 seconds is a little bit long.A typical management application would p

Re: subagent - how long can it take to respond to a get request?

2006-08-31 Thread Dave Shield
On 31/08/06, Nikanth K <[EMAIL PROTECTED]> wrote: > > So can I take around 30 secs to respond? Will that be acceptable? >> If I do that will SNMP walk work without any glitches? 30 seconds is a little bit long. A typical management application would probably give up before then. If you can contro

Re: subagent - how long can it take to respond to a get request?

2006-08-31 Thread Nikanth K
On 8/31/06, Nikanth K <[EMAIL PROTECTED]> wrote: On 8/31/06, Dave Shield < [EMAIL PROTECTED]> wrote: On 31/08/06, Jayaprakasha Guddenahalli Naganna <[EMAIL PROTECTED]> wrote:> >>I know that SNMP works over UDP. >  >>I am developing a subagent over agentx > Agentx will be over TCP.Yes -

Re: subagent - how long can it take to respond to a get request?

2006-08-31 Thread Nikanth K
On 8/31/06, Dave Shield <[EMAIL PROTECTED]> wrote: On 31/08/06, Jayaprakasha Guddenahalli Naganna <[EMAIL PROTECTED]> wrote:> >>I know that SNMP works over UDP.>  >>I am developing a subagent over agentx > Agentx will be over TCP.Yes - but that's the communication between the master age

subagent - how long can it take to respond to a get request?

2006-08-31 Thread Nikanth K
I know that SNMP works over UDP.I am developing a subagent over agentx. When I get a GEt request I need to do some calculations based on the values at that time and return it.It takes some time to fetch & calculate those value. So how long can I take or is there any other way in the SNMP prot

Re: subagent - how long can it take to respond to a get request?

2006-08-31 Thread Dave Shield
On 31/08/06, Jayaprakasha Guddenahalli Naganna <[EMAIL PROTECTED]> wrote: > >>I know that SNMP works over UDP. > >>I am developing a subagent over agentx > Agentx will be over TCP. Yes - but that's the communication between the master agent and the subagent. The communication between

RE: subagent - how long can it take to respond to a get request?

2006-08-31 Thread Jayaprakasha Guddenahalli Naganna
et.   Thanks and Regards -JP From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nikanth K Sent: Thursday, August 31, 2006 3:23 PM To: net-snmp-users@lists.sourceforge.net; net-snmp-coders@lists.sourceforge.net Subject: subagent - how long can it take to respond to a get req

Re: subagent - how long can it take to respond to a get request?

2006-08-31 Thread Thomas Anders
Nikanth K wrote: > I know that SNMP works over UDP. > I am developing a subagent over agentx. When I get a GEt request I need to > do some calculations based on the values at that time and return it. > It takes some time to fetch & calculate those value. So how long can I take &

Re: GET Request

2005-12-13 Thread Dave Shield
On Fri, 2005-12-02 at 15:47 -0800, manik chopra wrote: > Following is a sample of my sub-agent stub file: > > unsigned char *var_fnc() > { > my_struct *p; > > header_simple_table() > {} I trust you're actually checking the return value of this routine, to tell whether t

GET Request

2005-12-02 Thread manik chopra
Hi all, Following is a sample of my sub-agent stub file: unsigned char *var_fnc() {     my_struct *p;     header_simple_table() {    }     if ( fnc(p->value)  < 0)     {    return NULL;    }     switch(vp->magic)     {        case VALUE:           cp = p->value;           ret

Re: [MIB Writing] SNMP Manager Get request

2005-07-13 Thread Robert Story
should always be '0'. A manager sending a .1 for a get request is broken. -- NOTE: messages sent directly to me, instead of the lists, will be deleted unless they are requests for paid consulting services. Robert Story; NET-SNMP Junkie Support: <http://www.net-snmp.org/>

[MIB Writing] SNMP Manager Get request

2005-07-05 Thread Alexandre Pashai
hi all! I've written a little MIB for my own purpose. When requesting my variable from various snmp managers, some look for: myVariable.0 myVariable.1 My snmp agent expect to be asked for .0 some ideas ? thanks --- SF.Net email is sponso

[MIB Writing] SNMP Manager Get request

2005-07-05 Thread Alexandre Pashai
hi all! I've written a little MIB for my own purpose. When Compiling it within the snmp manager and then requesting my variable from various snmp managers, some looks for: myVariable.0 ans others myVariable.1 My snmp agent expect to be asked for .0 some ideas ? thanks ---

Re: help to send an error on a get request

2004-07-06 Thread Dave Shield
> > The good news: > >The documentation for this module in the current > > CVS code has been increased significantly, and > > includes an example of how to do exactly this. > > > > The bad news: > >It relies on a new function that is *only* > > available in the CVS branch, and is not part

RE: RE: help to send an error on a get request

2004-07-06 Thread BEBIN Thierry
> > I confirm that we use NetSNMP. > > Thank you > > > > THE PROBLEM > > > > How to send a negative response to a get request. > > OK - I've now had a chance to look at the agent perl > code in a bit more detail.

RE:RE: help to send an error on a get request

2004-06-30 Thread Dave Shield
Quoting BEBIN Thierry <[EMAIL PROTECTED]>: > I confirm that we use NetSNMP. > Thank you > > THE PROBLEM > > How to send a negative response to a get request. OK - I've now had a chance to look at the agent perl code in a bit more d

RE:RE: help to send an error on a get request

2004-06-30 Thread BEBIN Thierry
I confirm that we use NetSNMP. Thank you THE PROBLEM How to send a negative response to a get request. example of our code: $value = $request->getValue(); if ( $error) { // HELP PLEASE US TO SEND BACK AN ERROR } else { $request->setValue(NetSNM

Re: help to send an error on a get request

2004-06-30 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. Keep discussions to the list, where others can both learn and offer advice. T

Re: help to send an error on a get request

2004-06-30 Thread Dave Shield
> We try to make a snmp agent (Perl). You might like to take a look at the 'NetSNMP::agent' module, which does exactly this. > OS: Sun/ Language: Perl/Net::SNMP 5.1.1 Please note that the Net::SNMP perl module has nothing to do with the Net-SNMP project. If you need assistance with that, you

help to send an error on a get request (2nd try, sorry if you have received the first one)

2004-06-29 Thread BEBIN Thierry
Hi,   We try to make a snmp agent (Perl).   How to return an error when our agent receive a get request (or on a set one) ?   Where can we find an example ?   Thank you.     OS: Sun/ Language: Perl/Net::SNMP 5.1.1   example of our code: $value = $request->getValue();   if ( $er