> I am in the middle of writing an agentx subagent. I have the handler all
> set up and registered using netsnmp_register_handler, it get my
> requests. The problem is I don't know what to do from there.
OK - first question: what sort of objects is this handler dealing with?
One scalar? A gr
> I am writing an agent program to analyze packets. To implement it, I wrote
> a source code, which includes thread and packet capture function. By the
> way, I don't know how to modify Makefile in agent directory.
If you've written your own agent, then I'd suggest it'll probebly be
easier to w
As I just added to a bug on Sourceforge, a change made in the not too
distant past broke pass, exec and possibly other things.
In agent/mibgroup/util_funcs.c:~228, cachebytes needs to be ssize_t.
Left as size_t breaks the if(cachebytes < 0) when the read() above it
returns -1, and is a type-
Robert> I'd say there should be a configure option to choose the new/old
Robert> style implementation.
Dave> configure --with-mib-modules=ucd-snmp/extensible
Robert> I assume that this would enable the old-style?
Yup
Robert> And the new style has a new name? Or is in a new directory?
> This patch eliminates an incorrect logic test in ucd-snmp/disk.c
H
Sorry Mike, but I'm not convinced.
Just looking at the code, the check now seems to bear absolutely
no relation to the code it is allegedly protecting.
Can you remind me what the compile error was previously?
I'm guessi
Hi,
Where can I find examples about Table implementation with external Indexes ?
and Which MIB2c files (array-user, iterate ... etc) should I use ?
Thanks,
Regards
_
Blocca le pop-up pubblicitarie con MSN Toolbar! http://toolbar.msn.it
Hello,
In mib.h missing prototypes of function netsnmp_oid2chars and
netsnmp_oid2str.
Is there a function which parse back oid to string ? I mean like
snmp_parse_oid, but reverse ? :-)
--
Oleg Ivanov
Zelax Telecom
--- mib.h.orig Wed Jun 9 15:43:33 2004
+++ mib.h Wed Jun 9 15:47:08 2004
William A.Carrel wrote:
As I just added to a bug on Sourceforge, a change made in the not too
distant past broke pass, exec and possibly other things.
In agent/mibgroup/util_funcs.c:~228, cachebytes needs to be ssize_t.
Left as size_t breaks the if(cachebytes < 0) when the read() above it
re
Dave Shield wrote:
This patch eliminates an incorrect logic test in ucd-snmp/disk.c
H
Sorry Mike, but I'm not convinced.
Just looking at the code, the check now seems to bear absolutely
no relation to the code it is allegedly protecting.
Can you remind me what the compile error was previou
Quoting Dave Shield <[EMAIL PROTECTED]>:
>
> > I am in the middle of writing an agentx subagent. I have the handler all
> > set up and registered using netsnmp_register_handler, it get my
> > requests. The problem is I don't know what to do from there.
>
> OK - first question: what sort of ob
Dave> OK - first question: what sort of objects is this handler dealing with?
Greg> My handler is dealing with a whole subtree.
Greg> Is there a helper to register for a complete subtree?
Fair enough - then 'netsnmp_register_handler' is the correct call.
The other helpers are really aimed at mo
> Is there a function which parse back oid to string ? I mean like
> snmp_parse_oid, but reverse ? :-)
You mean something like 'snprint_objid()' ?
Dave
---
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite! GUADEC: The wo
Is there a function which parse back oid to string ? I mean like
snmp_parse_oid, but reverse ? :-)
You mean something like 'snprint_objid()' ?
Dave
Yea, thanks :-)
--
Oleg Ivanov
Zelax Telecom
---
This SF.Net email is sponsored by:
Right, in 5.1.1, the code is not enabled by default.
thanks,
Ying
--- Robert Story <[EMAIL PROTECTED]> wrote:
> On Tue, 8 Jun 2004 12:00:53 -0700 (PDT) Ying wrote:
> YH> It looks like net-snmp will always reuse the
> port
> YH> on windows because of the following code:
> YH> #ifdef SO_REUSEAD
Hi!
I would like to know how to generate templates with
mib2c for a MIB that mixes scalars and a table.
Because when I use "mib2c -c
../../local/mib2c.iterate.conf MIBNODE", only the
table can be accessed.
The MIB is given below.
Thank you by advance for your help !
Sihem
-prod(1)
| |
> I would like to know how to generate templates with
> mib2c for a MIB that mixes scalars and a table.
You'll need to use a tool such as 'emacs' or 'vi' or
something similar :-)
Generate a template for the scalar objects and the table
separately, and then merge the two files by hand.
It's pro
On Wed, 09 Jun 2004 10:35:25 +0100 Dave wrote:
DS> > My proposal:
DS> >
DS> > 1) new token for new mib ('extend'?)
DS> > 2) document new token in man page. Mark old option as deprecated
DS> > 3) optionally log warning at startup for old token
DS> > 4) in a future release, drop old token su
Hi All,
I am writing a subagent for net-snmp-5.1.1. Just getting into handling the
getnext request. I am not too sure how to handle this... I have a mib and I get
the struct tree for the oid that is asked for, is there a way to get the next
oid in the tree from that?
Is there some alogrithm th
Hi,
I am (ab)using the net-snmp core for the following construction:
Machine A Machine B
Machine n
(non-managable) (non-managable) (non-managable)
||
I'm still here. I'm just kinda stumped (and busy) at the moment.
>Majority support? Hah!
>There seems to be a general lack of interest in any aspect of the
development of this package at the moment :-(
>I'm going through another phase of wondering how long we'll be able
to continue to keep it g
It's hard-coded to 50 in acconfig.h
#define MAXDISKS 50 /*can't scan more than this number */
and only ever used in agent/mibgroup/ucd-snmp/disk.c.
One of my systems is going to have more than 50 disks.
This communication is intended for the use of the recipient to which it is
addressed, and
Hello coders/maintainers,
I am a newbie to this list and the net-snmp project. I work for Sun
Microsystems, and have been involved with Infiniband IPoIB project for
Solaris 5.10. I have a small patch to net-snmp-5.0.9 to support ipoib on
Solaris. What is the best method to get the patch added to
With Andy's latest patch ([970012]), the binary builds fine with the
Nullsoft installer.
I applied the patch locally and it compiled fine. When it's added to
CVS, we can be sure that 5.1.2.pre2 will compile without problems.
The only thing I need to do is update the build readme slightly.
Not
hi! I configured the file with the host option as u'r email.
./configure --with-cc=/LinuxPPC/CDK/bin/powerpc-linux-gcc\
--with-ar=/LinuxPPC/CDK/bin/powerpc-linux-ar \
--build=i686-pc-linux-gnu --host=powerpc \
--target=ppc-linux --with-endianness=big \
--w
Dave, Let me know if the attached patch is convincing.
I think it is important to use the "structure has member" configure
features sparingly. Here is a case where the best of intention was
later shown to require some minor changes. I think removing the
test for f_ffree and f_favail members from
> On Wed, 09 Jun 2004 20:40:14 -0400, Alex Burger <[EMAIL PROTECTED]> said:
Alex> I applied the patch locally and it compiled fine. When it's added to
Alex> CVS, we can be sure that 5.1.2.pre2 will compile without problems.
I'll publish a pre2 on Friday, if that sounds good.
--
Wes Hardake
> On Wed, 9 Jun 2004 10:41:24 -0600, Bruce Shaw <[EMAIL PROTECTED]> said:
Bruce> One of my systems is going to have more than 50 disks.
I actually thought we increased it a while ago
--
Wes Hardaker
Sparta
---
This SF.Net email is sp
> On Wed, 09 Jun 2004 16:46:43 -0700, Kanoj Sarcar <[EMAIL PROTECTED]> said:
Kanoj> I am a newbie to this list and the net-snmp project. I work for
Kanoj> Sun Microsystems, and have been involved with Infiniband IPoIB
Kanoj> project for Solaris 5.10. I have a small patch to
Kanoj> net-snmp-5.0
> On Wed, 09 Jun 2004 10:35:25 +0100, Dave Shield <[EMAIL PROTECTED]> said:
Dave> On balance, I'd still prefer to change the behaviour immediately,
Dave> but I can well understand the reasons to proceed more cautiously.
Dave> Would you be happy with deprecating this in 5.2 and dropping it in 5
> On Wed, 09 Jun 2004 18:21:29 +0200, André Küster <[EMAIL PROTECTED]> said:
Andr> There is only one question. Is it possible to create multiple
Andr> mib-tree instances? (I´d really like to use the build in
Andr> mib-browser and mib-tree)
I'm not really sure what you're looking for exactly,
> On Wed, 9 Jun 2004 08:39:07 -0700, Glenn MacGregor <[EMAIL PROTECTED]> said:
Glenn> I am writing a subagent for net-snmp-5.1.1. Just getting into
Glenn> handling the getnext request. I am not too sure how to handle
Glenn> this... I have a mib and I get the struct tree for the oid that
Glenn
> On Fri, 4 Jun 2004 18:27:54 +0530, "Nagaich, Nitin" <[EMAIL PROTECTED]> said:
Nitin> could anybody tell me more about traptoemail utility?
Nitin> how can i send an email from a generated trap?
it is a script, and the top of the script has a comment that describes
how to use it. In short,
> On Fri, 04 Jun 2004 09:43:54 +0100, Dave Shield <[EMAIL PROTECTED]> said:
Dave> You mean something like:
Dave> config_belongs_in( MIBLIB )
Dave> vs
Dave> config_belongs_in( AGENTLIB )
Dave> ?vs
Dave> config_belongs_in( AGENT )
Something like that, yeah.
Dave> and then use that to build th
33 matches
Mail list logo