Re: C++ and headers

2004-09-13 Thread Coders
On Mon, 13 Sep 2004 19:45:45 +0200 Magnus wrote: MF> > In C++ the extern "C" { } construct shouldn't have a trailing ;. MF> > MF> > The attached patch cleans up all the headers in include. It also makes it MF> > possible to compile using g++-3.4 and higher. MF> MF> One big problem right now is th

Re: Queries related to generated code

2004-09-13 Thread Coders
On Mon, 13 Sep 2004 16:00:51 +0530 Karthikeyan wrote: KN> We are in a situation to free some data only when the get next is executed KN> for the last time( i.e., during the 20th time). For this scenario, how can KN> we free that? You can probably use the free_loop_context_at_end pointer to do that

Porting a mib module from 4.1.2 to 4.2.6. Where did "struct snmp_pdu *pdu" go for WriteMethod and FindVarMethod?

2004-09-13 Thread Mark Atwood
I am migrating from ucd-snmp-4.1.2 to ucd-snmp-4.2.6 I have a whole bunch of mib module implementation files (that I didnt write) that I dropped into the agent/mibgroup directory. But they won't compile. Closer examination shows that that the "struct snmp_pdu *pdu" parameter has been removed fro

RE: sensors on Solaris

2004-09-13 Thread Bruce Shaw
Title: RE: sensors on Solaris BS> My second thought was to put it into LM-SENSORS-MIB.  That MIB, though BS> appears to be geared specifically to the lm-sensors package for linux. RS>That is exactly where you should be going. The MIB is not specific to RS>lm-sensors, other than containing th

Re: problems with "make test"

2004-09-13 Thread Andy Smith
[EMAIL PROTECTED] wrote: Hi, coders. There are some problems running "make test" on other platforms. Specifically, win32. When testing for CPP defines, in order to adjust test parameters, the test scripts could do a better job of matching. At the present, the following line will match : /* #defi

ATM-MIB - ucdsnmp 4.2.6 problem

2004-09-13 Thread Asaf Matan
I working on Montavista based ucd-snmp 4.2.6 on mips 5 processor (embedded system)   I’m tring to extend agent  to support ATM-TC & ATM-MIB (RFC 2515)   I did the following steps:   Add to snmpd.conf the relevant mibs and ensure I get no error when I lunch the system.   I failed to

SNMP test program compiles but gives linking error

2004-09-13 Thread Arun Velayudhan
  I am using Redhat 3.0 ES version and running a test program   g++ -o test test.C –lnetsnmp –lsnmp   Got linking error as /usr/lib/libnetsnmp.so: undefined reference to `EVP_DigestInit' /usr/lib/libnetsnmp.so: undefined reference to `EVP_DigestFinal' /usr/lib/libnetsnmp.so: undefi

Queries related to generated code

2004-09-13 Thread Karthikeyan N
Hi, I have few queries related to generated code using net snmp version 5.1.1. Also, my development enviornment is in linux. 1. I generated the code for the table and I understood that during runtime, if we have 4 rows in a table, the get-next function being called for 4 * 5 times i.e, 20 times

Re: mteTriggerTable::mte_run_trigger() timeouts....

2004-09-13 Thread Allan Mcintosh
Robert Story (Coders) wrote: On Mon, 13 Sep 2004 12:06:04 -0400 Allan wrote: AM> I appear to be having trouble with mteTriggerTable timeouts on solaris. Here is some output where waitpid() is working. I really bumped up the timeout value. You can see the jump in time... It works for a few iter

Re: sensors on Solaris

2004-09-13 Thread Coders
On Mon, 13 Sep 2004 12:47:20 -0600 Bruce wrote: BS> My second thought was to put it into LM-SENSORS-MIB. That MIB, though BS> appears to be geared specifically to the lm-sensors package for linux. That is exactly where you should be going. The MIB is not specific to lm-sensors, other than contain

keeping 5.2 and 5.1.x in sync wrt win32 service registrations

2004-09-13 Thread slif
Hi, Coders. As you know, the win32 trap handler was capable of running as a service in the 5.1.2 release. That capability was not provided the "register" and "unregister" menu selections. The 5.2 release promises to add the ability to register or unregister with a menu selection. As far as the

sensors on Solaris

2004-09-13 Thread Bruce Shaw
I've done it. I've figured out how to get to the temperature, fan speed, yada yada sensors on at least some Solaris boxen. This was part of my original goal in getting into SNMP in general and net-snmp in particular. My boss said "write something so that if a fan fails on one of the Solaris boxe

Re: C++ and headers

2004-09-13 Thread Magnus Fromreide
On Thu, Sep 09, 2004 at 06:43:53PM +0200, Magnus Fromreide wrote: > Hello. > > In C++ the extern "C" { } construct shouldn't have a trailing ;. > > The attached patch cleans up all the headers in include. It also makes it > possible to compile using g++-3.4 and higher. One big problem right now

Re: mteTriggerTable::mte_run_trigger() timeouts....

2004-09-13 Thread Coders
On Mon, 13 Sep 2004 12:06:04 -0400 Allan wrote: AM> I appear to be having trouble with mteTriggerTable timeouts on solaris. I really think the problem is somewhere else. Specifically, in the execution of the scripts. The scripts should be run, and then waitpid called to wait for the script to exec

mteTriggerTable::mte_run_trigger() timeouts....

2004-09-13 Thread Allan Mcintosh
Hey, I appear to be having trouble with mteTriggerTable timeouts on solaris. In mteTriggerTable.c I have set mte_callback_sess->timeout = 60 * 100; which appears to work initially. However, after a couple of exec scripts return non zero and traps are sent timeouts begin again.

problems with "make test"

2004-09-13 Thread slif
Hi, coders. There are some problems running "make test" on other platforms. Specifically, win32. When testing for CPP defines, in order to adjust test parameters, the test scripts could do a better job of matching. At the present, the following line will match : /* #define USE_OPENSSL */ Whi