Linking agent against a C++ application

2006-01-24 Thread Raffles
is a way to fix this in the configure script (which presumably auto-generates it)? Any other solutions also welcome. I tried trawling through the archives, and found lots of C++ type questions, but none which answered this one. If I missed it, just point me =) Thanks in advance. Raffles

Re: Linking agent against a C++ application

2006-01-27 Thread Raffles
ched version of the Makefiles. Once that's done, NetSNMP should work with C++ out of the box. All the application developer then needs to do is provide a C wrapper interface around the C++ application, which the agent can then use. I hope this helps. Cheers Raffles --- Makefile

Re: Linking agent against a C++ application

2006-01-27 Thread Raffles
;s bug number 1416481. I'll copy this mail to the bug. Dave Shield wrote: On Fri, 2006-01-27 at 14:39 +, Raffles wrote: > OK I've fixed it. All you need to be able to link the agent in to a C++ > application, is a small change to the Makefiles in the agent and apps >

Re: Linking agent against a C++ application

2006-01-30 Thread Raffles
Dave Shield wrote: > > ... Could we not make it standard in the Makefiles to use > $(CC) for compiling and $(LINKCC) for linking, so that you could do > > ./configure --with-linkcc=g++ With LINKCC defaulting to $(CC), presumably? I hadn't thought of that, but yes, sounds like a great idea

Re: No traps for Link down/up in SUN Netra 240 machines

2006-02-13 Thread Raffles
be that these particular parameters can be set in a config file somewhere. I hope this helps Raffles Paulo Ricardo wrote: Hi Helen. I found in application“s directory the IF-MIB.txt that contains the fields relathionship with LinkDownUp notifications. If is it possible and If you have time,

Re: No traps for Link down/up in SUN Netra 240 machines

2006-02-13 Thread Raffles
oying have struggled to get to grips with SNMP! Thanks for helping =) Raffles H. McManus wrote: On Monday 13 February 2006 16:34, Raffles wrote: Caveat: I'm fairly new to SNMP in general so it may be that these particular parameters can be set in a config file somewhere. Yes they can

Re: No traps for Link down/up in SUN Netra 240 machines

2006-02-13 Thread Raffles
rs to these kinds of questions. Despite the name, SNMP isn't all that simple - you can expect to spend quite some time learning about it before you are really ready to use it - sorry, but I don't think there are any shortcuts. If you find any, do let me know! Thanks. Regards Raffles P

netsnmp_register_scalar vs netsnmp_register_instance for registering Strings

2006-02-14 Thread Raffles
(the strings are not fixed size) 2. Is it required for integers to be handled correctly? Apologies for the length of this post. Thanks Raffles instance.c 00070 int 00071 netsnmp_register_instance(netsnmp_handler_registration *reginfo) 00072 { 00073 netsnmp_inject_handler(reginfo, netsn

Re: #error embedded perl broken - SOLVED

2006-02-16 Thread Raffles
694 If not, then perhaps worth submitting a new change request, or maybe just adding to this one: http://sourceforge.net/tracker/index.php?func=detail&aid=1387981&group_id=12694&atid=112694 which isn't quite the same thing, but related. Regards Raffles H. McManus wrote: O

Re: mib2c question.

2006-02-24 Thread Raffles
s link, which I found helpful: http://net-snmp.sourceforge.net/docs/man/mib2c.conf.html Hope this helps Cheers Raffles Palmentieri Nunzio wrote: Hi all, my question is: I wrote a MIB with several table objects. How can I generate code for it? I think I have to run mib2c on both the tabl

Re: C subagent to C++

2006-03-01 Thread Raffles
c=detail&aid=1416481&group_id=12694&atid=112694 Regards Raffles stan buyanov wrote: Hello, I am using net-snmp v5.3.0.1. I wrote a C subagent, and it works fine. Now I need to convert the subagent to C++. What steps do I need to do? Do I need to compile and link the master agent usin

Re: snmp cross-compiler error

2006-03-01 Thread Raffles
.4.4-glibc-2.3.5/powerpc-8540-linux-gnu/bin/powerpc-8540-linux-gnu-gcc I hope this is helpful (or are you not cross-compiling?) Regards Raffles PS Can I suggest making new posts for new questions such as this, rather than replying to an existing post with an unrelated subject? It makes the