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
>
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
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
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
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 >:
>>>>
>&
а, 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
>
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
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
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
>&
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
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
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
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
. 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
>> 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
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
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
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
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
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
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
-
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
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
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
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
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
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.
>
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
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
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
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
[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
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
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
---
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
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
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
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
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
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 -
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
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
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
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
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
&
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
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
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/>
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
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
---
> > 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
> > 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.
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
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
[ 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
> 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
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
57 matches
Mail list logo