Re: disable TCP from NetBSD

2009-03-23 Thread Alexander Bubnov
Thanks you for replay, Nikos! Most probably you are right that I am not in right direction... I just would like to write a simple implementation of TCP layer of TCP/IP stack. For this purpose I need IP layer to get IP PDU (packets) with help of raw socket. Now, I cannot use socket interface as the

IP replacement of forwarded v2c traps

2009-03-23 Thread longw...@terra.es
Hello List, Doing some tests with forwarding snmp traps from an intermediate node to a receiver node, the SNMPv2c traps that enter get their source address replaced by the intermediate node's IP address instead of the originators address. Snmpv1 traps are forwarded with the OK (unchanged) sour

Re: disable TCP from NetBSD

2009-03-23 Thread Nikos Balkanas
Hi, You can still work with raw sockets, therefore rewriting your IP packets - useful and advanced network programming, without bypassing your kernel. If you do (bypass it) there is a whole lot of userspace applications that depend on it, and I am afraid you may end up with a useless system. G

Re: disable TCP from NetBSD

2009-03-23 Thread Alexander Bubnov
Hi, I though the kernel does not pass any TCP fragment to an application using raw sockets in any cases... So, I thought I cannot use raw socket in case I point IPPROTO_TCP for socket call. Very interesting situation how the kernel controls such cases... Ok, I will try to write a simple example.

generating subagent for tables

2009-03-23 Thread Vinod Nanjaiah
Hi, I have written a MIB file for tables based on the sample given in NET-SNMP-EXAMPLES-MIB.txt. My subagent will interact with external data source (Database) for get/set operations. Which is the best Config file to use in this case (mib2c.mfd.conf, mib2c.iterate.conf, etc)? Using mfd generate

net-snmp 5.4.2.1: Error in make :gcc: /usr/local/fnmt/lib/libsocks.so: No such file or directory

2009-03-23 Thread Chetan Mahadev
Hi , I am trying to install net-snmp 5.4.2.1 on RHEL 5.0 # more /etc/redhat-release Red Hat Enterprise Linux Server release 5 (Tikanga) ./configure is successful. but ./make fails with the following errors. Can you let me know what are the dependencies?? Pls help /bin/sh ../libtool --mod

Re: net-snmp 5.4.2.1: Error in make :gcc: /usr/local/fnmt/lib/libsocks.so: No such file or directory

2009-03-23 Thread Thomas Anders
Chetan Mahadev wrote: > gcc -g -O2 -Ulinux -Dlinux=linux -I/usr/include/rpm -D_REENTRANT > -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DSOCKS -fno-strict-aliasing -pipe > -Wdeclaration-after-statement -I/usr/local/include > -I/usr/local/fnmt/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > -I/usr/includ

Re: net-snmp 5.4.2.1: Error in make :gcc: /usr/local/fnmt/lib/libsocks.so: No such file or directory

2009-03-23 Thread Chetan Mahadev
Hi Thomas, >What configure options are you using? I am using ./configure --with-perl-modules --enable-embedded-perl --enable-shared >It looks like you're using a custom Perl installation in /usr/local/fnmt. Why? What's the output of "perl -V"? >Incidentally, the dependency to libsocks.so comes fr

snmp script extend cache

2009-03-23 Thread stas.stelle.mailli...@gmail.com
Hi, I want to use a cache for my script extensions in snmp. My setup looks like this: /etc/snmp/snmpd.conf rouser admin override NET-SNMP-AGENT-MIB::nsCacheDefaultTimeout.0 integer 300 override NET-SNMP-AGENT-MIB::nsCacheEnabled.0 integer 1 extend check_dummy /var/checks/check_dummy override NET-S

problem with NetSNMP::OID

2009-03-23 Thread jens.wienstroer
Hello all, I'm currently modifying our application to use the embedded Perl module with net-snmp v5.4.2.1 and stumbled upon a problem with NetSNMP::OID. The problem is very easy to reproduce by adding just two lines to the code snippet taken from the NetSNMP::TrapReceiver documentation: #!/usr

passwordless authentication

2009-03-23 Thread stas.stelle.mailli...@gmail.com
Hi, is it possible to use passwordless authentication with snmpd? Like SSL or some kind of public-private keys? regards, stas -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 wi

How to compile net-snmp with external libs

2009-03-23 Thread Jeffrey Cao
I'm building net-snmp agent. I've already compiled my private MIBs to C stub source code. Configure with --with-mib-modules="MYMIBS" I'll build in my private modules. I saw the following files are changed when after configure: mib_module_includes.h: #include "mymibs.h" mib_module_inits.h: if (sh

hrProcessorLoad

2009-03-23 Thread Neilson, Art
We are running Net-SNMP 5.1.2 on a Redhat 4 update 6 system and are trying to monitor cpu usage using the SNMPv2-SMI Host Resources MIB. The hrProcessorLoad table appears to be broken, we get crazy values returned from queries. Googling around on the net shows that the hrProcessorLoad table is br

RE: can NetSNMP.pm tell me the 'called IP'?

2009-03-23 Thread Mike Ayers
> From: Fulko Hew [mailto:fulko@gmail.com] > Sent: Saturday, March 21, 2009 6:43 AM > if I have multiple IP addresses on my box, I'd like to (need > to) discriminate between > one request sent to 1.2.3.4 and a different request sent to 5.6.7.8 The simple, effective solution is to ru

Re: can NetSNMP.pm tell me the 'called IP'?

2009-03-23 Thread Fulko Hew
On Mon, Mar 23, 2009 at 1:31 PM, Mike Ayers wrote: > > From: Fulko Hew [mailto:fulko@gmail.com] > > Sent: Saturday, March 21, 2009 6:43 AM > > > if I have multiple IP addresses on my box, I'd like to (need > > to) discriminate between > > one request sent to 1.2.3.4 and a different request se

RE: can NetSNMP.pm tell me the 'called IP'?

2009-03-23 Thread Mike Ayers
> From: Fulko Hew [mailto:fulko@gmail.com] > Sent: Monday, March 23, 2009 11:23 AM >> On Mon, Mar 23, 2009 at 1:31 PM, Mike Ayers >> wrote: >> >> >> > From: Fulko Hew [mailto:fulko@gmail.com] >> > Sent: Saturday, March 21, 2009 6:43 AM >> >> > if I have multiple IP add

Re: can NetSNMP.pm tell me the 'called IP'?

2009-03-23 Thread Fulko Hew
On Mon, Mar 23, 2009 at 2:58 PM, Mike Ayers wrote: > > From: Fulko Hew [mailto:fulko@gmail.com] > > Sent: Monday, March 23, 2009 11:23 AM > > >> On Mon, Mar 23, 2009 at 1:31 PM, Mike Ayers > >> wrote: > >> > >> > >> > From: Fulko Hew [mailto:fulko@gmail.com] > >> > Sent: Saturd

RE: can NetSNMP.pm tell me the 'called IP'?

2009-03-23 Thread Mike Ayers
Please don't crosspost. > From: Fulko Hew [mailto:fulko@gmail.com] > Sent: Monday, March 23, 2009 12:13 PM > I am making a 'network simulator', where a simple application > (in Perl) will cause Net-SNMP to 'forget' > all of the variables it would normally answer to, and replace >

Re: can NetSNMP.pm tell me the 'called IP'?

2009-03-23 Thread Fulko Hew
On Mon, Mar 23, 2009 at 3:44 PM, Mike Ayers wrote: > >Please don't crosspost. I decided to crosspost because I felt that this thread now belonged on the "coder's" list rather than the "user's" list. Sorry if I offended you. > From: Fulko Hew [mailto:fulko@gmail.com] > > Sent: Mond

RE: passwordless authentication

2009-03-23 Thread Mike Ayers
> From: stas.stelle.mailli...@gmail.com > [mailto:stas.stelle.mailli...@googlemail.com] > Sent: Monday, March 23, 2009 5:51 AM > is it possible to use passwordless authentication with snmpd? > Like SSL or some kind of public-private keys? SNMPv3 passwords are actually private keys, whic

glibmm issue

2009-03-23 Thread Maciek Kolbusz
Hi List, I had that annoying issue when I was trying to compile my SNMP app. After adding some glibmm headers I was unable to compile the code and given the following errors: --- 8< --- /usr/include/glibmm-2.4/glibmm/spawn.h:107: error: expected identifier before numeric constant /usr/include/gli

To enable security feature with net-snmp

2009-03-23 Thread sanjaykumar
Hi All,     I am configuring the net-snmp-5. 4.2.1. I am trying to enable authentication and privacy. For that I found  a MACRO: "NETSNMP_USE_INTERNAL_MD5". What does mean : Does it necessary to define the above macro to support the AUTH feature ? or net-snmp support the auth featur