Asynchronous write

2008-05-14 Thread Jan Safranek
Hi, net-snmp by default expects that send() on a socket always send whole provided buffer and is blocking. This leads to deadlocks under heavy load - see bug #1598344. I'm rewriting the snmp_api so the write will be asynchronous and non-blocking. It seems to me that the session API is somehow

net-snmp-5.1.1

2008-05-14 Thread Tewen Hsieh
Hi, I installed net-snmp-5.1.1 successfully. But I always got a no such objectresponse no matter waht get request(ex: get sysDescr) I sent to snmpd. Is this a bug of net-snmp-5.1.1? Or I missed something? Thanks. I havied tried other versions (5.3.2), there is no this error. iTAS Tewen 永鈦鑫

about ./configure options

2008-05-14 Thread Tewen Hsieh
Hi, What is the difference between --disable-shared and --with-ldflags=-Bstatic in configure phase? I tried these two options, but it still asked me to install libcrypto.so.0.9.7. Even I used these two options at the same time, it still asked for libcrypto.so.0.9.7. I am really confused. In

dlmod error

2008-05-14 Thread Tewen Hsieh
Hi, Thanks for reply. I describe my work again. I cross compiled net-snmp-5.1.1 successfully. My cross compile procedure: step 1: ./configure --target=mips-linux --with-cc=mips2_fp_be-gcc --host=mips --with-endianness=big --prefix=/not/usr/ --with-install-prefix=/tmp step 2: make step 3:

Re: dlmod error

2008-05-14 Thread Magnus Fromreide
On ons, 2008-05-14 at 21:28 +0800, Tewen Hsieh wrote: But when I loaded wpWlsCore.so and wpWlsBridge.so, I got following error message: /not/usr/sbin ./snmpd -f -L -DwpWlsCore,dlmod dlmod: register mib dlmod: dlmod_path: /not/usr//lib/snmp/dlmod dlmod: dlmod_create_module dlmod:

Re: about ./configure options

2008-05-14 Thread Magnus Fromreide
On ons, 2008-05-14 at 15:52 +0800, Tewen Hsieh wrote: Hi, What is the difference between --disable-shared and --with-ldflags=-Bstatic in configure phase? --disable-shared tells configure that you don't want to build any shared libraries. -Bstatic tells the linker that you don't wish to

Re: Asynchronous write

2008-05-14 Thread Magnus Fromreide
On ons, 2008-05-14 at 15:03 +0200, Jan Safranek wrote: Hi, net-snmp by default expects that send() on a socket always send whole provided buffer and is blocking. This leads to deadlocks under heavy load - see bug #1598344. I'm rewriting the snmp_api so the write will be asynchronous and

Re: Asynchronous write

2008-05-14 Thread Wes Hardaker
On Wed, 14 May 2008 15:03:37 +0200, Jan Safranek [EMAIL PROTECTED] said: JS net-snmp by default expects that send() on a socket always send whole JS provided buffer and is blocking. This leads to deadlocks under heavy JS load - see bug #1598344. Interesting findings and good work! My

Re: Urgent - Unknown User Name

2008-05-14 Thread Wes Hardaker
On Tue, 13 May 2008 14:24:46 +0530, Pachiappan D [EMAIL PROTECTED] said: PD I have written an API to add a snmpv3 user.( Like net-snmp-config ) PD Before starting the agent,my API appends the two lines in appropriate PD files as below, Did you write the file when the agent was stopped? if it

Re: about net-snmp-5.1.1

2008-05-14 Thread Wes Hardaker
On Mon, 12 May 2008 14:00:07 +0800, Tewen Hsieh [EMAIL PROTECTED] said: TH But when I use snmpwalk -v 1 -c public localhost system, it only TH shows End of MIB. What does it mean? It means you don't have access control to anything in the agent :-) TH What's the difference in 5.1.1? Or I make

Re: default timeout

2008-05-14 Thread Wes Hardaker
On Mon, 12 May 2008 07:35:53 -0700 (PDT), tak oishi [EMAIL PROTECTED] said: to What is the default timeout value for this version? I think it's a second. to How can I modify this value? I downloaded this, but to couldn't find parameter... It's a parameter in the session structure (you

Agentx communication issues with net-snmp 5.4.1

2008-05-14 Thread Latha_Krishnamurthi
Hi, I was using net-snmp 5.1.4 earlier and we have a subagent communicating using agentx with our master agent. Things were working fine. We are now trying to upgrade to net-snmp 5.4.1 and the master agent and the subagent are not communicating. The subagent seems to register the MIBS fine, I