Re: questions about ./configure and dlmod

2008-06-23 Thread Magnus Fromreide
On Tue, 2008-06-24 at 14:14 +0800, Tewen Hsieh wrote: > Hi, > > Thanks for reply. > > I have checked that my module was loaded. > > I find that my handle_xxx function return SNMP_ERR_GENERR because of > allocating share memory fail. My handle_xxx function must allocate share > memory first to

Re: questions about ./configure and dlmod

2008-06-23 Thread Tewen Hsieh
Hi, Thanks for reply. I have checked that my module was loaded. I find that my handle_xxx function return SNMP_ERR_GENERR because of allocating share memory fail. My handle_xxx function must allocate share memory first to store return value from the API. So I guess that my configure options

Re: sysORTable from subagent

2008-06-23 Thread Magnus Fromreide
[ 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. Thanks. ] On Mon, 2

Re: questions about ./configure and dlmod

2008-06-23 Thread Magnus Fromreide
On Tue, 2008-06-24 at 11:35 +0800, Tewen Hsieh wrote: > Hi, > > I have two questions: > > Question 1: > > If I use following command in ./configure phase, evreythins works > fine. > ./configure --prefix=/not/usr/ --with-install-prefix=/tmp > > But if I use following command in ./configure p

questions about ./configure and dlmod

2008-06-23 Thread Tewen Hsieh
Hi, I have two questions: Question 1: If I use following command in ./configure phase, evreythins works fine. ./configure --prefix=/not/usr/ --with-install-prefix=/tmp But if I use following command in ./configure phase, scalars of myself's dynamic loadable module will response with "GENERIC E

Re: about remove all default modules

2008-06-23 Thread Tewen Hsieh
Hi, Thanks for your reply. I tried it by myself while I asked about it on net-snmp-coders. I asked about this question because I was afraid of side effect of removing mibII/system_mib. I want to heard another one's experience or better solution like /MF's. Anyway, it's a good advice for me. I wi

Re: mteTrigger_run segfault

2008-06-23 Thread Chris Larson
Dave Shield wrote: > 2008/6/12 Chris Larson <[EMAIL PROTECTED]>: > >> On Thu, 2008-06-05 at 20:22 +, Chris Larson wrote: >> >>> I've run into a segmentation fault in net-snmp version 5.4 on our >>> product, when there's a cpuIdle > or < alert set up in snmpd.conf. >>> >> No mteTr

Re: about remove all default modules

2008-06-23 Thread Magnus Fromreide
On Mon, 2008-06-23 at 09:58 +0800, Tewen Hsieh wrote: > Hi Dave, > > Thanks for your reply. > > I have tried "configure --enable-mini-agent", but mibII/system_mib is still > included. > If I want to remove it, I just need to use > "configure --enable-mini-agent --with-out-mib-modules=mibII/syst

Re: sysORTable from subagent

2008-06-23 Thread Magnus Fromreide
On Mon, 2008-06-23 at 14:02 +0200, Goran wrote: > Hi > > Is it possible to register to the sysORTable from within a subagent? Yes. > It works when I register to the sysORTable when compiling the > nstAgentModuleObject.c into the Agent. If I register to sysORTable > from the example subagent (nst

sysORTable from subagent

2008-06-23 Thread Goran
Hi Is it possible to register to the sysORTable from within a subagent? It works when I register to the sysORTable when compiling the nstAgentModuleObject.c into the Agent. If I register to sysORTable from the example subagent (nstAgentSubagentObject.c and example-demon.c) nothing ends up in the

Re: about dlmod module

2008-06-23 Thread Dave Shield
2008/6/23 Tewen Hsieh <[EMAIL PROTECTED]>: > I use "configure --enable-mini-agent" to install net-snmp, but dlmod module > seems not be compiled into agent. > So "configure --enable-mini-agent" will compile net-snmp without dlmod > module? Correct. > How can I resolve this problem? By reading t

Re: VRRP support in net-snmp?

2008-06-23 Thread Dave Shield
2008/6/23 Huafeng Lu <[EMAIL PROTECTED]>: > Can someone confirm that net-snmp currently doesn't have VRRP support? Confirmed. > And how should we get started to add this? Look at the VRRP-MIB. Decide how you are going to retrieve the information listed there. (What APIs to use, etc). Have a lo

about dlmod module

2008-06-23 Thread Tewen Hsieh
Hi, Because I want to install net-snmp on embedded system, I must downsize SNMP agent. I use "configure --enable-mini-agent" to install net-snmp, but dlmod module seems not be compiled into agent. So "configure --enable-mini-agent" will compile net-snmp without dlmod module? How can I resolve th

Re: about remove all default modules

2008-06-23 Thread Dave Shield
2008/6/23 Tewen Hsieh <[EMAIL PROTECTED]>: > If I want to remove it, I just need to use "configure --enable-mini-agent > --with-out-mib-modules=mibII/system_mib"? Why waste time asking me? Just try it. Dave - Check out the

Re: how to set manager's IP address and community in code on embedded system

2008-06-23 Thread Dave Shield
2008/6/23 Tewen Hsieh <[EMAIL PROTECTED]>: > I want to set/get manager's IP address and community in running > time via CLI. > Is there any API can get/set manager's IP address and community in net-snmp? Any snmpd.conf directive can also be supplied on the command line, using '--{tok