Re: Has anyone compiled net-snmp with dmalloc support recently?

2008-02-06 Thread Manfred Wassmann
On Wed, 6 Feb 2008, Dave Shield wrote: > I can confirm the same problem exists with both dmalloc 5.5.1 and dmalloc > 5.4.3 > (running against both the current development code, and the 5.3.x line) > > I haven't had a chance to investigate further, but I suspect this may not > necessarily be a rec

Has anyone compiled net-snmp with dmalloc support recently?

2008-02-05 Thread Manfred Wassmann
Hi, trying to compile the net-snmp package with dmalloc support I get the following compiation error: In file included from snmp_client.c:89: /usr/include/dmalloc.h:484: error: expected identifier or '(' before '__extension__' The dmalloc libraries installed are version 5.5.1 and I sus

Re: elsewhere: built snmpd, but where did it go?

2008-02-02 Thread Manfred Wassmann
On Sat, 2 Feb 2008, Bennett Haselton wrote: > I'm running into a puzzle on another machine: building snmpd from source > finishes with no errors, but doesn't appear to update the only snmpd binary > > on the machine. > > I built it by downloading net-snmp-5.4.1.tar, then runninig: > tar xvf net-sn

Re: Problem with defining custom data type (TEXTUAL-CONVENTION)

2008-02-02 Thread Manfred Wassmann
On Fri, 1 Feb 2008, Dave Shield wrote: > On 31/01/2008, Manfred Wassmann <[EMAIL PROTECTED]> wrote: [...] > No - you can't do that. > The value returned *MUST* be the same as the value that was > being set. That's part of the SNMP specs. > You can return an

Re: collect HUP signal

2008-01-31 Thread Manfred Wassmann
On Thu, 31 Jan 2008, Meilán García Antonio wrote: So my question are: 1.- how can I register a function in my module for execute the routines for freeing all memory before restart snmpd (just when snmpd receives also the HUP signal)? snmp_register_callback(SNMP_CALLBACK_APPLICATION,

Re: Problem with defining custom data type (TEXTUAL-CONVENTION)

2008-01-31 Thread Manfred Wassmann
On Wed, 30 Jan 2008, Dave Shield wrote: > On 28/01/2008, Manfred Wassmann <[EMAIL PROTECTED]> wrote: >> The current design is that there is one OID where I can query the current >> version of a device and a second OID where I can set a Version to be >>

Re: need help setting a basic extented snmp agent with perl

2008-01-28 Thread Manfred Wassmann
On Mon, 28 Jan 2008, Jordi Moles Blanco wrote: > I would like to do some thing as easy as this: > > > in my snmpd.conf > > > pass .1.2.3.4.5.6.7.8.9.10 /root/myperl.pl > > > > then in this myperl.pl > > something as simple as. > > > echo "77"; > [...] > > The snmpget command always says it d

Re: Problem with defining custom data type (TEXTUAL-CONVENTION)

2008-01-28 Thread Manfred Wassmann
On Tue, 22 Jan 2008, Dave Shield wrote: > On 21/01/2008, Manfred Wassmann <[EMAIL PROTECTED]> wrote: >> I actually have at least two instances of myVersion >> but they have to have different access clauses, so I guess I can't put >> them into one t

Re: Problem with defining custom data type (TEXTUAL-CONVENTION)

2008-01-21 Thread Manfred Wassmann
On Mon, 21 Jan 2008, Dave Shield wrote: > If you will only have one instance of this "myVersion" value, > then define two scalar objects - myVersionDigits and > myVersion. If you might have multiple instances of these > values, then you'd define a table with these as the columns. > > But part of

Problem with defining custom data type (TEXTUAL-CONVENTION)

2008-01-19 Thread Manfred Wassmann
Hi, I'm trying to use a custom data type for storing version information composed of three numbers and a release state like follows: ---8<-- MyVersionDigits ::= TEXTUAL-CONVENTION DISPLAY-HINT "1d.2d.2d" STATUS cur

RE: Is there a simple/standard way to access other modules oids fromwithin a mib module?

2008-01-16 Thread Manfred Wassmann
On Mon, 14 Jan 2008, Mike Ayers wrote: >> I am writing a MIB module for some specific piece of hardware. Some of >> my code needs to return values that are already available from >> standard MIB modules. > > Then you should not need to return those values - the consuming > application can get the

Re: problem running snmptrapd

2008-01-13 Thread Manfred Wassmann
On Sun, 13 Jan 2008, Ajit J Clarence wrote: > I am running snmptrapd program and not able to receive any traps send by the > server. Am I missing some configuration in snmpd.conf, I receive these > warnings shown below > > Warning: no access control information configured. > > This receiver will

Re: mib2c - allocate and free memory question

2008-01-13 Thread Manfred Wassmann
On Sat, 12 Jan 2008, Andrey Kamchatnikov wrote: > I have created a file with this tool (C code template) and it calls malloc > function (see below): > > (* myDetail_val_ptr ) = malloc(mydata.Detail_len* > sizeof(mydata.Detail[0])); > > But I could find in net-snmp library where this memory is free

Is there a simple/standard way to access other modules oids from within a mib module?

2008-01-12 Thread Manfred Wassmann
Hello, I am writing a MIB module for some specific piece of hardware. Some of my code needs to return values that are already available from standard MIB modules. E.g. there is are OIDs that will return data of a specific interface and a trap sending the IP address of that interface as its data. N