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

2011-03-22 Thread Wes Hardaker
> On Tue, 22 Mar 2011 21:53:05 +0100, Magnus Fromreide > said: MF> * How should features that affect the ABI/API be handled? Can I get an example of what you want to do? MF> * Looking at REMOVE_STATISTICS it seems it is ok to include the feature MF> header from a .h file, is that corre

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

2011-03-22 Thread Magnus Fromreide
On 2011-02-23 01:06, Wes Hardaker wrote: A massive patch that implements the following feature: http://www.net-snmp.org/wiki/index.php/Feature_Marking_and_Selection is being committed at the moment. Michael Baer (baerm) and I have been working on it for about 3 months or longer in an offli

Re: how to use "extend" and run-on-set?

2011-03-22 Thread Dave Shield
On 22 March 2011 16:40, Donald Russell wrote: > I run the snmpget/set/walk commands as a non-privileged user. > I also tried running snmpwalk as root and still get [the same] error That won't be relevant. Problems with the agent will purely depend on what the agent can do The client side won't re

Re: how to use "extend" and run-on-set?

2011-03-22 Thread Donald Russell
On Tue, Mar 22, 2011 at 02:35, Dave Shield wrote: > On 21 March 2011 19:33, Donald Russell wrote: > >> What does your pass script look like? > > > > First, my snmpd.local.conf file has: > > pass .1.3.6.1.4.1.15966.1 /usr/local/bin/passtest > > > > The passtest script is: > >[snip] > > > > > Y

Re: how to use "extend" and run-on-set?

2011-03-22 Thread Dave Shield
On 22 March 2011 15:38, Donald Russell wrote: > Now, I want to >snmpset -v 2c -c rwcommunity host > NET-SNMP-EXTEND-MIB::nsExtendCommand.\"cmm\" s "some new value" > > and expect that "some new value" be passed to my /usr/local/bin/cmm program, That would be handled by snmpset

Re: how to use "extend" and run-on-set?

2011-03-22 Thread Donald Russell
On Tue, Mar 22, 2011 at 02:49, Dave Shield wrote: > On 21 March 2011 19:33, Donald Russell wrote: > >> [exec/extend and pass] are two very different approaches to extending > the agent. > >> Don't try and equate the two. > > > > > I wonder why the authors didn't think it would be worthwhile for

Re: register_premib_handler ?

2011-03-22 Thread Dave Shield
On 22 March 2011 10:06, sujata patra wrote: > In addition for agentx server socket we can give the sock address using > agentxsocket in xxx.conf file > > Is there any directive for the client socket ? If no then I have to set it > programatically in the client side. > netsnmp_ds_set_string(N

Re: register_premib_handler ?

2011-03-22 Thread sujata patra
right . Will it possible to read it at start up ? Let's say in this example , I like to read agentx_subagent. http://net-snmp.sourceforge.net/tutorial/tutorial-5/toolkit/demon/example-demon.c c In addition for agentx server socket we can give the sock address using agentxsocket in xxx.conf file

Re: how to use "extend" and run-on-set?

2011-03-22 Thread Dave Shield
On 21 March 2011 19:33, Donald Russell wrote: >> [exec/extend and pass] are two very different approaches to extending the >> agent. >> Don't try and equate the two. > > > I see them as evolutionary > Seems we first had "exec" which allowed snmpget, but the order of things > would change if n

Re: how to use "extend" and run-on-set?

2011-03-22 Thread Dave Shield
On 21 March 2011 19:33, Donald Russell wrote: >> What does your pass script look like? > > First, my snmpd.local.conf file has: > pass .1.3.6.1.4.1.15966.1 /usr/local/bin/passtest > > The passtest script is: [snip] > Yet in my /tmp.passtest.log file I see > -g .1.3.6.1.4.1.15966.1.1 >  

Re: register_premib_handler ?

2011-03-22 Thread Dave Shield
On 22 March 2011 06:56, sujata patra wrote: > I am going through the read_config api's But i could not find the proper > one. I want to read few private tokens for my net-snmp agent from the > subagent.conf file . > It will be better If i can do that before the mib initialization . > > I tried thr