Re: getting shared objects to read configuration in snmpd.conf

2015-02-17 Thread Magnus Fromreide
On Tue, Feb 17, 2015 at 09:50:24AM -0500, Bill Fenner wrote: > Tim, > > Since the configuration file is read and processed line-by-line, you should > be able to use, e.g., netsnmp_ds_register_config(), > register_config_handler(), or other config file primitives in your > module_init() function, a

RE: getting shared objects to read configuration in snmpd.conf

2015-02-17 Thread Tim Culhane
Culhane Cc: Net-SNMP Coders Subject: Re: getting shared objects to read configuration in snmpd.conf Tim, Since the configuration file is read and processed line-by-line, you should be able to use, e.g., netsnmp_ds_register_config(), register_config_handler(), or other config file primitives in

Re: getting shared objects to read configuration in snmpd.conf

2015-02-17 Thread Bill Fenner
il.com] > *Sent:* 17 February 2015 14:50 > *To:* Tim Culhane > *Cc:* Net-SNMP Coders > *Subject:* Re: getting shared objects to read configuration in snmpd.conf > > > > Tim, > > > > Since the configuration file is read and processed line-by-line, you > shou

Re: getting shared objects to read configuration in snmpd.conf

2015-02-17 Thread Bill Fenner
Tim, Since the configuration file is read and processed line-by-line, you should be able to use, e.g., netsnmp_ds_register_config(), register_config_handler(), or other config file primitives in your module_init() function, and they will take affect for lines after the dlmod configuration line.

RE: getting shared objects to read configuration in snmpd.conf

2015-02-17 Thread Tim Culhane
14:30 To: Tim Culhane Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: getting shared objects to read configuration in snmpd.conf Hi Tim That's a restriction of your own making Your application can certainly read a three-line text file for its parameters, and that need not be the

Re: getting shared objects to read configuration in snmpd.conf

2015-02-17 Thread Tim Cox
ruary 2015 14:04 > To: Tim Culhane > Cc: net-snmp-coders@lists.sourceforge.net > Subject: Re: getting shared objects to read configuration in snmpd.conf > > > Tim > > Why can't your application read a config file of its own? > > Or look at its command line argu

RE: getting shared objects to read configuration in snmpd.conf

2015-02-17 Thread Tim Culhane
lhane Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: getting shared objects to read configuration in snmpd.conf Tim Why can't your application read a config file of its own? Or look at its command line arguments? Best Regards Tim Am 17.02.2015 um 13:20 schrieb Tim Culh

Re: getting shared objects to read configuration in snmpd.conf

2015-02-17 Thread Tim Cox
Tim Why can't your application read a config file of its own? Or look at its command line arguments? Best Regards Tim Am 17.02.2015 um 13:20 schrieb Tim Culhane: > Hi, > > Apologies for cross posting: > > I'm writing a c shared object which will connect to a proprietary server via > telne

getting shared objects to read configuration in snmpd.conf

2015-02-17 Thread Tim Culhane
Hi, Apologies for cross posting: I'm writing a c shared object which will connect to a proprietary server via telnet and read back performance and status counters. I don't want to hardcode the connection details such as IP address, port number and password for the proprietary server into my shar