RE: smallest scale installation

2004-09-23 Thread Jim Su
Hi Robert: RS> If you are using 5.1.x, there is a new configure option, RS> --with-install-prefix=PATH that will do what you want. I have need to downgrade my snmp to ucd-4.2.5 see if I can avoid the crash on IF table in 5.1.1 and 5.1.2. What is the procedure to (or specify the configure

Re: Problem building net-snmp in the HPUX platform

2004-09-23 Thread Prakash
Hello Robert, i) I configured and built on the same system. ii) endfsent has been defined in fstab.h iii) This header file exists in my system so during configure the following flag gets set #define HAVE_FSTAB_H 1 iv) This function is called only twice in the source code find .

RE: snmpd crashed by snmpwalk

2004-09-23 Thread Jim Su
Title: RE: snmpd crashed by snmpwalk Thanks John:      I have few plan to avoid this problem.    1. Comment out the code of "case IFPHYSADDRESS" as described in the bug report. But I don't know if there is any place "put 64 bit info into a 32 bit field".     2

snmptrapd - traphandle match OID

2004-09-23 Thread jason
Hi, Just looking for the correct syntax to use the below mentioned feature, matching on the subtree rather than a single trap Changelog: 2004-08-17 05:04 dts12 * apps/snmptrapd_handlers.c: Allow "traphandle" directives to match a subtree rather than just a single trap. (Suggested by B

Re: Problem building net-snmp in the HPUX platform

2004-09-23 Thread Users
On Thu, 23 Sep 2004 21:39:41 +0530 Prakash wrote: P> ld: (Warning) Unsatisfied symbol "if_nametoindex" Hmmm... this code is protected by and ifdef which would have to be set by configure. Did you run configure on one machine, and move the code to another? Or build on one machine, and run the code

Re: configure make problems

2004-09-23 Thread Carlos Cantu
> Carlos Cantu wrote: > >>$ agent/snmpd -Dmib_init -I -hr_other,hr_disk -H 2>&1 | grep hr_ > > > > Is mib_init a keyword I need in the options? > No, it's a debug token, of course. But is it correct to say that the two tokens 'mib_init' and '-I' and the module names with a minus '-' in front ne

Installing SNMP

2004-09-23 Thread Reis, Rui M.
  Hi all, I’m a newby to SNMP and i am triyng to install the environment in order to develop an SNMP agent in Linux. I’m having som e problems o install SNMP (netsnmp) libraries. All the packages I try to install (netsnmp, perl, etc) I always have a “missing…”  message. Is there anywhe

Problem building net-snmp in the HPUX platform

2004-09-23 Thread Prakash
Hello all,   I am working on hpux 11.22 platform .When compiling net-snmp 5.1.2 I get the following warning.   gcc -g -O2 -Dhpux11 -o .libs/snmpd snmpd.o -Wl,+nodefaultrpath -Wl,-E -Wl,-B -Wl,deferred  -L/opt/openssl/lib ./.libs/libnetsnmpagent.sl ./.libs/libnetsnmpmibs.sl helpers/.libs/lib

RE: Snmptrapd help

2004-09-23 Thread "Fernández Piñas, David"
You are editing the wrong snmptrapd.conf file. I think this file is used for persistence purposes. Delete the traphandle directive from the /var/net-snmp/snmptrapd.conf file and put it at the snmptrapd.conf file located at /etc or /usr/local/share/snmp directory. > -Original Message-

Snmptrapd help

2004-09-23 Thread prashanth raghavan
Hi, I wrote a code that would be launched when the network entity encountered a linkDown trap. And after modifying the snmptrapd.conf by adding the traphandle directive, the code worked. But since I had to use the trap daemon for some other codes, I removed the traphandle directive. yesterday, I a

snmpd only

2004-09-23 Thread Baumgart Alexander
Hello, how can i compile a snmpd only, i tried -disable-apllication -manuals -scripts -mibs , but i install includes, libs too. --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Min

SNMP return OID

2004-09-23 Thread Will Chen
Hi,   I have one question regarding to the SNMP return OID.  I have one SNMP OID as 12.83.73.80.85.65.45.49.45.84.77.67.49  Which would mean SIPUA-1-TMC1 after translation.    My question is this translation work is usually at the SNMP agent side or at the SNMP manager side if a huma

Re: [Openswan Users] kernel 2.4.26 + Openswan 2.1.4 + net-snmp-5.1 = Kernel Oops

2004-09-23 Thread Users
On Thu, 23 Sep 2004 15:12:34 +0200 (MET DST) Paul wrote: PW> > On Sun, 2004-08-01 at 06:27, Martin Bene wrote: PW> >> Martin Bene wrote: PW> >> PW> >> ... PW> >> if (ioctl(fd, 0x8947, &ifr) >= 0) { PW> >> new_ioctl_nums = 1; PW> >> } else if (ioctl(fd, SIOCDEVPRIVATE, &ifr) >= 0) { PW> >>

Re: win32 5.2.pre1 snmpwalk times out

2004-09-23 Thread slif
Alex, I think the problem could use some illumination. Hi, net-snmp-users! Some of the developers are busy preparing a 5.2.pre2 release. One area that is getting attention is registering the Agent and Trap Handler as Windows Services. This will help using these programs

Re: [Openswan Users] kernel 2.4.26 + Openswan 2.1.4 + net-snmp-5.1 = Kernel Oops

2004-09-23 Thread Paul Wouters
On Thu, 23 Sep 2004, Ted Kaczmarek wrote: This bug has been assigned and is pending investigation: http://bugs.xelerance.com/bug_view_page.php?bug_id=144 I hope Michael can find the time to look at it soon. Paul Date: Thu, 23 Sep 2004 09:06:23 -0400 From: Ted Kaczmarek <[EMAIL PROTECTED]> To: [

Re: snmpv3 user corruption ?

2004-09-23 Thread Wes Hardaker
> On Mon, 20 Sep 2004 15:55:57 -0700 (PDT), Latha Krishnamurthi <[EMAIL > PROTECTED]> said: Latha> I have declared 2 users in the snmpd.conf file as rwuser. I Latha> have given the create user directive for the first user. I have Latha> enabled both authentication and encrypton. Started t

RE: Interface state on Solaris 8 for bgeX interfaces

2004-09-23 Thread atonns
Title: RE: Interface state on Solaris 8 for bgeX interfaces For comparison, I do not have this problem with net-snmp 5.0.9 on Solaris 9: prodws2$ ifconfig -a lo0: flags=1000849 mtu 8232 index 1     inet 127.0.0.1 netmask ff00 bge0: flags=1000843 mtu 1500 index 2     inet 192.168.

Re: Registering a handler for the extTable in the UCD-Avis MIB object, of UCD-SNMP-MIB

2004-09-23 Thread Wes Hardaker
> On Mon, 20 Sep 2004 09:36:09 +0200, Anton Persson <[EMAIL PROTECTED]> said: Anton> So I am wondering, and please forgive me for my ignorance, I'm very new Anton> to this, is it possible to register a handler extTable from a Anton> dynamically linked library? (Like Aptilo's MIB handler..)

Re: snmp_dispatcher dying on malformed packet

2004-09-23 Thread Wes Hardaker
> On Thu, 23 Sep 2004 17:03:55 +1000, "Leigh Sharpe" <[EMAIL PROTECTED]> said: Leigh> I'm using the NET::SNMP Perl module to query about 150 targets. We are not the authors of the Net::SNMP perl module. You have contacted the wrong place (we are, however, the authors of the "SNMP" perl modul

Re: SNMP Trap Decode

2004-09-23 Thread Wes Hardaker
> On Fri, 17 Sep 2004 11:28:00 -0500, "Will Chen" <[EMAIL PROTECTED]> said: Will> When I am coding with incoming SNMP traps from SNMP agent which Will> uses net-snmp SNMP package, I met a problem. What I want to do Will> is printing out all the bindings for incoming SNMP traps, just Will> lik

Re: snmpd crashed by snmpwalk

2004-09-23 Thread Users
On Wed, 22 Sep 2004 11:19:05 +0800 Jim wrote: JS> I encountered one snmpd crashed due to the snmpwalk timeout at the JS> "IF-MIB::ifNumber.0 ". All the values before IF-MIB were returned. But JS> there is time out on IF-MIB. If you are having problems with an application crashing, it i

Re: [Openswan Users] kernel 2.4.26 + Openswan 2.1.4 + net-snmp-5.1 = Kernel Oops

2004-09-23 Thread Ted Kaczmarek
On Sun, 2004-08-01 at 06:27, Martin Bene wrote: > Martin Bene wrote: > > Looked at this some more; Not restricted to Openswan 2.1.4, also happens > with 2.2.0dr2 and with current strongswan release. > > Problem occurs when snmpd tries to figure out transmission speed for the > interfaces: > >

RE: snmpd crashed by snmpwalk

2004-09-23 Thread John Blake
Title: RE: snmpd crashed by snmpwalk  The actual issue is this;  http://sourceforge.net/tracker/?group_id=12694&atid=112694&func=detail&aid=556830  that's the bug Id for it.  I'm not sure if it happens in Lunix or not.  I am just a newbie at snmp and I don't know enough to mess with changing

Re: not able to execute the executable for subagent!!

2004-09-23 Thread Tina Agarwal
Thanx Dave, this was the problem of wrong line in snmpd.conf file. I corrected it and the problem disappeared. :) Regards! Tina - Original Message - From: "Dave Shield" <[EMAIL PROTECTED]> To: "Tina Agarwal" <[EMAIL PROTECTED]> Cc: "net-snmp-users" <[EMAIL PROTECTED]> Sen

Interface state on Solaris 8 for bgeX interfaces

2004-09-23 Thread Moser Tim (KTSO 5)
Dear all, We are currently running net-snmp 5.1.2 on solaris boxes. We are having some problems with the interface state ( to be more specific with the bgeX interfaces ). The bgeX interfaces report the admin state as UP but the oper state as DOWN. Please look @ the walk-output. The first system

Re: snmpset ip_forward

2004-09-23 Thread Dave Shield
> I am having a problem with setting ip-forwarding with SNMP. That's probably because write support for this object hasn't been implemented on your particular architecture. > When I try to set the object, I get this error: > snmpset -c 10.1.1.10 .1.3.6.1.2.1.4.1.0 i 1 > Error in pa

Re: Newbie : New MIB

2004-09-23 Thread Dave Shield
> 1. Defined a new MIB with a simple scalar variable. > (Extended netSnmpPlaypen) > 2. Used mib2c to generate .c and .h files > 3. Moved those files into agent/mibgroup directory > 4. Ran the configure script with the object variable > ./configure --with-mib-modules="myModuleObject" > 5. Build th

Re: problem with SNMP

2004-09-23 Thread Dave Shield
> So first i run the "snmpd"...then i run "snmpget" > with proper options...but, im getting "Timeout: No Response".. That will be access control problems. > and i listened that we should Configure SNMP by > runinng "snmpconf"... but i could not understand how to > configure it That's proba

Re: not able to execute the executable for subagent!!

2004-09-23 Thread Dave Shield
> Its working but now it says > error: Failed to connect to agentx master subagent: Unknown host That's because it can't connet to the master agent. The master agent probably isn't listening for AgentX connections. > I added "master example-demon" in my file "/usr/local/share/snmp/snmpd.conf".

Re: Interprating MIBS

2004-09-23 Thread Dave Shield
> Thanks Ted. I'm after and application which can browse and set. > The mbrowse is good for examination, but can it also set mib values? Although I haven't actually tried this particular application, the screen shots displayed on the MBrowse web page include four buttons marked "Get", "Walk", "Set

Re: configure make problems

2004-09-23 Thread Thomas Anders
Carlos Cantu wrote: $ agent/snmpd -Dmib_init -I -hr_other,hr_disk -H 2>&1 | grep hr_ Is mib_init a keyword I need in the options? No, it's a debug token, of course. +Thomas -- Thomas Anders (thomas.anders at blue-cable.de) --- This SF.Net email i

Re: how can i at ucdstart and ucdstop?

2004-09-23 Thread Dave Shield
> i am using net-snmp5.1.2 What do you want to do at ucdstart and ucdstop ? Your request is a little unclear. Dave --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for y

Re: subagent code based on example.c

2004-09-23 Thread Tina Agarwal
Thanx for the reply Dave. I made a file on the basis of example.c and .h and compiled it directly into the master agent. Its working fine. But when I try to make a subagent out of it using "net-snmp-config --compile-subagent myfile myfile.c" then after making executable, when I try to run it, it

Re: Complex views in VACM

2004-09-23 Thread Dave Shield
> How can I create complex views of the MIB. Have multiple "view" lines that use the same viewname. These will be combined to form a single view. > How do I say, "public can see everything except the VACM tables and > the snmpd reset bit" and "private can set everything except the VACM > tables

Re: ATM-MIB - ucdsnmp 4.2.6 problem

2004-09-23 Thread Dave Shield
> When I tried to make > > Snmpget -v 2c/1 -c public localhost > I get no such name error. What are the exact commands you give? In particular, the bit? > When I try the walk command I get: > > atmMIB.1.8.0 = 1 > atmMIB.1.13.0 = 1 (Instead of getting the full strings) So the agent do

Re: SNMP Trap Decode

2004-09-23 Thread Dave Shield
> I downloaded the source code. Would you kindly point me which source > files can lead me to decoding? Note that the packet decoding is handled in the main SNMP library (mostly in 'snmplib/snmp_api.c') and this is quite a complicated process - not helped by the gradual accumulation of the code

Re: configure make problems

2004-09-23 Thread Dave Shield
> Strange. If I change the configure to: >configure --with-mib-modules="host/hr_device host/hr_disk >host/hr_network host/hr_system" --with-libwrap > > (only dropping the 'host/hr_storage' option, the errors go away). > There must be some dependency between the storage table

Re: configure make problems

2004-09-23 Thread Dave Shield
> > $ agent/snmpd -Dmib_init -H 2>&1 | grep hr_ > > > $ agent/snmpd -Dmib_init -I -hr_other,hr_disk -H 2>&1 | grep hr_ > > Is mib_init a keyword I need in the options? No - that's just a debugging token that Robert included so he (and you) could see what was happening. Any option starting with

Re: subagent code based on example.c

2004-09-23 Thread Dave Shield
> Can't I make a subagent with a C source file made on the basis of > example.c and H file made on the basis of example.h. Yes. > Is it necessary to make a C module using mib2c utility for making a > subagent?? No. All that mib2c does is spit out code (or code templates). If you generate simila

snmp_dispatcher dying on malformed packet

2004-09-23 Thread Leigh Sharpe
Hi All,  I'm using the NET::SNMP Perl module to query about 150 targets.  I'm using a non-blocking call and doing three GET-REQUESTS per target.  About every 24 hours or so, the script fails to return from snmp_dispatcher() routine. Running tethereal at the same time, I see that the last SNM