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

2011-03-23 Thread Dave Shield
On 23 March 2011 21:45, Donald Russell wrote: > OK, I now have two "extensions" in my config file... > extend cmm /usr/local/bin/cmm > extendfix cmm /usr/local/bin/cmm > > snmpwalk ... nsExtendConfigTable > shows what I expect... "cmm" items and "cmmFix" items > > So, now I want to send my specif

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

2011-03-23 Thread Dave Shield
On 23 March 2011 18:37, Donald Russell wrote: > If the nsExtendRunType is run-on-read, then any snmpget of the output values > will run the command and return the results (or just return the cached > results without running the command) Correct. > If the nsExtendRunType is "run-on-set", then ...

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

2011-03-23 Thread Donald Russell
On Tue, Mar 22, 2011 at 02:49, Dave Shield wrote: > > > If you want to pass request-specific information to the script > when it's invoked, you can always issue a SET request that > assigns new values to the nsExtendArgs and/or nsExtendInput > instances, as well as the nsExtendRunType trigger. >

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

2011-03-23 Thread Magnus Fromreide
On 2011-03-23 18:49, Wes Hardaker wrote: >> On Wed, 23 Mar 2011 17:09:02 +0100, Bart Van Assche >> said: > > BVA> What I'm worried about is that different Linux distributors might > BVA> configure Net-SNMP differently (by enabling / disabling different > BVA> features) and hence ending

Re: installing net-snmp on Solaris 10

2011-03-23 Thread Niels Baggesen
Den 23-03-2011 17:19, Eric Smith skrev: > I need to use mib2c on Solaris 10. > > >uname -a > >SunOS ems-svr234 5.10 Generic_141414-02 sun4u sparc SUNW,Sun-Fire-V210 > > I have downloaded net-snmp-5.6.tar.gz, extracted to my solaris10 box and > trying to configure net-snmp with perl modules. I als

Re: installing net-snmp on Solaris 10

2011-03-23 Thread Eric Smith
I made some progress with this. 1. Downloaded the current stable release of Perl from http://www.cpan.org/src/stable.tar.gz. Configured perl. 2. Installed net-snmp and configure it using the perl module from step1 using the configure below: PREFIX="/opt/mynetsnmp" env PERLPROG=/usr/local/net-snmp

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

2011-03-23 Thread Donald Russell
I'm top-posting because I want to start a new thought, but allow reference to what's below... Yes, I think the light just went on... I've misunderstood run-on-read/run-on-set. Let's see if I have it correct now: If the nsExtendRunType is run-on-read, then any snmpget of the output values will ru

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

2011-03-23 Thread Wes Hardaker
> On Wed, 23 Mar 2011 17:09:02 +0100, Bart Van Assche > said: BVA> What I'm worried about is that different Linux distributors might BVA> configure Net-SNMP differently (by enabling / disabling different BVA> features) and hence ending up with incompatible ABI's and that for BVA> exactly

installing net-snmp on Solaris 10

2011-03-23 Thread Eric Smith
I need to use mib2c on Solaris 10. >uname -a >SunOS ems-svr234 5.10 Generic_141414-02 sun4u sparc SUNW,Sun-Fire-V210 I have downloaded net-snmp-5.6.tar.gz, extracted to my solaris10 box and trying to configure net-snmp with perl modules. I also downloaded openssl-1.0.0d-sol10-sparc-local.gz and g

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

2011-03-23 Thread Bart Van Assche
On Wed, Mar 23, 2011 at 2:51 PM, Wes Hardaker < harda...@users.sourceforge.net> wrote: > > On Wed, 23 Mar 2011 12:12:56 +0100, Bart Van Assche < > bvanass...@acm.org> said: > > BVA> My two cents: if the ABI or API depends on whether a feature is > BVA> enabled or disabled, we do no longer have

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

2011-03-23 Thread Wes Hardaker
> On Wed, 23 Mar 2011 08:19:05 +0100, Magnus Fromreide > said: MF> Yes. The patch I am thinking of adding was attached to the mail you MF> replied to, but here it is again. Whoops; sorry I missed it. I'm torn on this one. I think reducing the structure size is likely beneficial to "th

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

2011-03-23 Thread Wes Hardaker
> On Wed, 23 Mar 2011 12:12:56 +0100, Bart Van Assche > said: BVA> My two cents: if the ABI or API depends on whether a feature is BVA> enabled or disabled, we do no longer have an ABI nor an API. This BVA> conflicts with what I have learned about how to define a shared BVA> library or D

Re: register_premib_handler ?

2011-03-23 Thread Dave Shield
On 23 March 2011 12:28, sujata patra wrote: > Let's say the tableis registered as below . > initialize_ { > netsnmp_inject_handler_before(reg, >     netsnmp_get_cache_handler(timeout_default_value, > xxx_load,xxx_free, > xxx

Re: register_premib_handler ?

2011-03-23 Thread sujata patra
From: Dave Shield To: sujata patra Cc: net-snmp-coders Sent: Wed, March 23, 2011 4:57:34 PM Subject: Re: register_premib_handler ? On 23 March 2011 10:20, sujata patra wrote: > "agentxsocket" directive is working fine . > > But The other config parameters

Re: register_premib_handler ?

2011-03-23 Thread Dave Shield
On 23 March 2011 10:20, sujata patra wrote: > "agentxsocket" directive is working fine . > > But The other config parameters are not getting initialized before the call > init_nstAgentSubagentObject(); Correct - the 'init_xxx' routines are all called *before* the config files are processed.

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

2011-03-23 Thread Bart Van Assche
On Tue, Mar 22, 2011 at 9:53 PM, Magnus Fromreide wrote: > 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 (bae

Re: register_premib_handler ?

2011-03-23 Thread sujata patra
"agentxsocket" directive is working fine . But The other config parameters are not getting initialized before the call init_nstAgentSubagentObject(); in the example http://net-snmp.sourceforge.net/tutorial/tutorial-5/toolkit/demon/example-demon.c c I want few config tokens to be read before th

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

2011-03-23 Thread Magnus Fromreide
On Tue, 2011-03-22 at 14:38 -0700, Wes Hardaker wrote: > > 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? Yes. The patch I am thinking of adding was attach