Re: massive feature/minimalist patch being checked in right now

2011-03-02 Thread Magnus Fromreide
On Tue, 2011-03-01 at 17:08 +0100, Bart Van Assche wrote: On Wed, Feb 23, 2011 at 1:06 AM, Wes Hardaker harda...@users.sourceforge.net wrote: Today I found out that even if the usm security model has been enabled that the snmpusm binary does not get built. The result is that make test

Re: snmp_increment_statistic{_by}

2011-03-02 Thread Magnus Fromreide
On Tue, 2011-03-01 at 21:10 +0100, Bart Van Assche wrote: On Mon, Feb 28, 2011 at 11:11 PM, Magnus Fromreide ma...@lysator.liu.se wrote: Hello. One could make the functions return 1 on success on 0 on failure, but that is a bigger ABI change. Bah, I misread

snmpwalk - leaf handlers are called twice

2011-03-02 Thread Reto Jaeger
Hi, I have implemented an snmp subagent using the agent-x protocol. When I do a snmpwalk operation I see that all leaf handlers are called twice. The leaf handlers are called once (as expected) when I performing a snmpget operation. My question is: Why the leaf handlers called twice on a

Re: snmp_increment_statistic{_by}

2011-03-02 Thread Bart Van Assche
On Wed, Mar 2, 2011 at 12:07 AM, Magnus Fromreide ma...@lysator.liu.sewrote: On Tue, 2011-03-01 at 21:10 +0100, Bart Van Assche wrote: On Mon, Feb 28, 2011 at 11:11 PM, Magnus Fromreide ma...@lysator.liu.se wrote: Hello. One could make the functions return 1 on success

guidance for snmp agent development

2011-03-02 Thread atulbabanchavan
Respected sir, I am developing snmp agent, i want to post snmp related issues on this site. my mail id : atulbabancha...@bel.co.in please allow me to post. Thank You. Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended

Re: massive feature/minimalist patch being checked in right now

2011-03-02 Thread Bart Van Assche
On Wed, Mar 2, 2011 at 9:41 AM, Magnus Fromreide ma...@lysator.liu.sewrote: On Tue, 2011-03-01 at 17:08 +0100, Bart Van Assche wrote: On Wed, Feb 23, 2011 at 1:06 AM, Wes Hardaker harda...@users.sourceforge.net wrote: Today I found out that even if the usm security model has been

Re: Re: snmpwalk - leaf handlers are called twice

2011-03-02 Thread Dave Shield
On 2 March 2011 17:38, Reto Jaeger reto.jae...@ascom.ch wrote: What sort of registration call(s) are you using? netsnmp_register_scalar(...) In which case, the routine handle_callState() should only be called once for each request. If you're seeing it invoked twice, then my suspicion is that

Re: snmpwalk - leaf handlers are called twice

2011-03-02 Thread Dave Shield
On 1 March 2011 13:04, Reto Jaeger reto.jae...@ascom.ch wrote: I have implemented an snmp subagent using the agent-x protocol. When I do a snmpwalk operation I see that all leaf handlers are called twice. The leaf handlers are called once (as expected) when I performing a snmpget operation.

Re: snmp_increment_statistic{_by}

2011-03-02 Thread Magnus Fromreide
On Wed, 2011-03-02 at 12:03 +0100, Bart Van Assche wrote: On Wed, Mar 2, 2011 at 12:07 AM, Magnus Fromreide ma...@lysator.liu.se wrote: On Tue, 2011-03-01 at 21:10 +0100, Bart Van Assche wrote: On Mon, Feb 28, 2011 at 11:11 PM, Magnus Fromreide ma...@lysator.liu.se

Antwort: Re: snmpwalk - leaf handlers are called twice

2011-03-02 Thread Reto Jaeger
Hello Dave, first of all thank you very much for your detailed answer. When you talk about leaf handlers, do you mean the handlers for scalar objects, or the handlers for column objects within a table Im just using scalar objects. What sort of registration call(s) are you using?

regarding netsnmp get issue

2011-03-02 Thread Ravi Kumar Kodam
Dear Sir/Madam when iam issuing the snmpget command through code it is printing the result. But i want to return the value to some function. See the following code it is just printing but i want to hold the result value. the print_variable function is just printing the output to the stdout. but i

persistency ?

2011-03-02 Thread sujata patra
While shutting down it is trying to save some data. I am running my agent as master-agent as non-root. As the permission is not there it shows the bewlo informations. Creating directory: /var/net-snmp Failed to create the persistent directory for /var/net-snmp/xxx.conf read_config_store open

Re: persistency ?

2011-03-02 Thread Manjit
It tries to save the non-volatile rows and also some smp engine related properties. The snmp engine properties ( e.g snmpEngineID and snmpEngineBoots) is required for synchronization between agent and manager( RFC 3414 - section 2.3). You can stop it by not calling function snmp_store , but i

Re: regarding netsnmp get issue

2011-03-02 Thread Magnus Fromreide
On Thu, 2011-03-03 at 10:14 +0530, Ravi Kumar Kodam wrote: Dear Sir/Madam when iam issuing the snmpget command through code it is printing the result. But i want to return the value to some function. See the following code it is just printing but i want to hold the result value. the

Re: persistency ?

2011-03-02 Thread Magnus Fromreide
On Wed, 2011-03-02 at 21:27 -0800, sujata patra wrote: While shutting down it is trying to save some data. I am running my agent as master-agent as non-root. As the permission is not there it shows the bewlo informations. Creating directory: /var/net-snmp Failed to create the persistent