init_snmp()

2004-12-07 Thread res0d1zz
I have a very simple appliation which needs to query some data from a SNMP server. In my application, I do the same way as snmpget does and it works fine. However, it consumes a lot of CPU and I found the most CPU is for init_snmp(). Is there any simple way to query SNMP data without call this

Re: mtb and snmpwalk problems (bugs?)

2004-12-07 Thread Coders
On Mon, 6 Dec 2004 09:52:44 +0100 P wrote: PK> > > In this particular case, what you want to do is to set a flag to let PK> > > the interface code know that you have removed a row: PK> > > PK> > > rowreq_ctx->rowreq_flags |= MFD_ROW_DELETED; PK> > PK> > But there is no constant MFD_ROW_DEL

Re: windows exception on multiple varbind set

2004-12-07 Thread Coders
On Mon, 29 Nov 2004 17:35:04 -0500 Gillis, wrote: GPW> In 5.2.1, on Win2K Pro, I assume you mean 5.1.2, since there is not 5.2.1. GPW> I have an agent with code generated from mib2c GPW> with create-dataset. I can run snmpset with 1 PDU fine, as far as I can GPW> tell. But if I run it with mult

Re: Problems with subagent under uClinux(2)

2004-12-07 Thread Coders
On Tue, 30 Nov 2004 14:39:22 +0800 Yi wrote: YH> But I've no idea of what the `66624 bytes sent to local IPC' is, YH> since I didn't work on it any more. Anybody knows? The only thing I can think of is that maybe there is a byte-order problem somewhere... YH> My question is, what should I do

Re: mfd - one more bug

2004-12-07 Thread Coders
On Thu, 2 Dec 2004 14:36:09 +0100 P wrote: PK> I have another bug in code generated by mfd. It's not actually in the mfd code, it's higher up in the table_container code. And it's actually two bugs. See if these patches help you: diff -u -r5.31 table.c --- agent/helpers/table.c 27 Sep 2004

RE: a problem for my new mib module.

2004-12-07 Thread Jeff Johnson
You need to specify an index that matches the INDEX clause for the table in the MIB. Since this is an enterprise MIB, I have no idea what the INDEX clause is, and hence I have no idea what you should be specifying as an index! If you want to share part of the MIB, we may be able to give a bit mo

Re: Duplicate traps on net-snmp 5.0.9

2004-12-07 Thread Andreas Wippermann
On Mon, 6 Dec 2004 11:21:13 +0200 Elitzur wrote: EB> It seems like the daemon duplicates the trap. Using net-snmp functions in different threads (which is not allowed) caused the same problem in our application. After using net-snmp functions in only one thread the problem was solved. Andreas -

Re: snmp_open(session)

2004-12-07 Thread Coders
On Tue, 7 Dec 2004 15:21:04 +0100 (MET) Sven wrote: SJ> i have one question to snmp_open(session). Does snmp_open send some traffic SJ> or not? No. It only initializes the default parameters in the session structure. SJ> I know, that snmp is working with udp and udp is working connectionless. SJ>

snmp_open(session)

2004-12-07 Thread Sven Jonas
Hallo Dave, i have one question to snmp_open(session). Does snmp_open send some traffic or not? I know, that snmp is working with udp and udp is working connectionless. But, when i shut down my agent and start my application, than snmp_open(session) fails. But how could snmp_open fail, when it is

Re: mfd - row creation problem/bug ?

2004-12-07 Thread Coders
On Mon, 6 Dec 2004 09:38:19 +0100 P wrote: PK> When my commit() function is called and MFD_ROW_CREAT is set I do some PK> ,,aplication specyfic'' acctions. I don't touch cache, container or PK> so. My problem is that newly created row is not in snmpwalk result befere PK> cache is reloaded. Is it m

Re: Query on snmpwalk

2004-12-07 Thread Coders
On Tue, 07 Dec 2004 07:08:23 -0500 Andy wrote: AS> c) Network issues. AS> AS> If you can ping the machine then of course that rules out c. Not necessarily... Could be tcpwrappers configuration, or a firewall.. Running 'snmpd -f -d' will print packet dumps on receive/send, and let you know if the

Re: Duplicate traps on net-snmp 5.0.9

2004-12-07 Thread Coders
On Mon, 6 Dec 2004 11:21:13 +0200 Elitzur wrote: EB> It seems like the daemon duplicates the trap. Do you have multiple trap handler lines in snmpd.conf? Each one will cause a copy of the trap to be sent. -- Robert Story; NET-SNMP Junkie Support: Archive:

RE: 5.2 crash in win32

2004-12-07 Thread Gillis, Philip W (Philip)
Hi Alex. I'm on Win2k Pro, 5.00.2195, Service Pack 4, and VC++ 6.0. Crashes consistently on SNMP_FREE, called fromsnmptranslate -Dread_config -IR -Td linkDown. Here's a stack trace, for what it's worth: NTDLL! 77fb6972() NTDLL! 77f8be26() KERNEL32! 7c58f76e() _CrtIsValidHeapPointer(const

Re: Query on snmpwalk

2004-12-07 Thread Andy Smith
In almost all of the cases that this has happened to me it has been: a) An SNMP version that the agent does not support. b) The community string is not configured correctly on either the querying machine or the agent machine. c) Network issues. If you can ping the machine then of course that rule