Re: C subagent to C++

2006-03-01 Thread Raffles
=12694atid=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 using g++? What is best approach

Re: mib2c question.

2006-02-24 Thread Raffles
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 tables, and then compile

Re: #error embedded perl broken - SOLVED

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

netsnmp_register_scalar vs netsnmp_register_instance for registering Strings

2006-02-14 Thread Raffles
. Thanks Raffles instance.c 00070 int 00071 netsnmp_register_instance(netsnmp_handler_registration *reginfo) 00072 { 00073 netsnmp_inject_handler(reginfo, netsnmp_get_instance_handler()); 00074 return netsnmp_register_serialize(reginfo); 00075 } scalar.c 00078 int 00079

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

2006-02-13 Thread Raffles
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, can you analize the mib attach and say to me If the notifications

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

2006-02-13 Thread Raffles
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. I've already

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

2006-02-13 Thread Raffles
- 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 Paulo Ricardo wrote: very Nice Raffles. I have one more question: See the example

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: Linking agent against a C++ application

2006-01-27 Thread Raffles
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 --- Makefile2006-01-27 11:28:49.245467235 +

Re: Linking agent against a C++ application

2006-01-27 Thread Raffles
. 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 directories. When linking the Makefile needs to give g++ as the first

Linking agent against a C++ application

2006-01-24 Thread Raffles
(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 -- Visit our website at www.roke.co.uk Roke Manor