subagent giving error

2004-09-03 Thread Gururaja Rao
Hi,   I am new to net-snmp, and I am getting the following error, when I run the subagent.   I built the subagent using the net-snmp-config command I enabled the master agent to use agentx protocol for subagent communication Run the snmpd Then, when I ran the subagent

Re: Problems with snmpconf

2004-09-03 Thread Niels Baggesen
On Fri, Sep 03, 2004 at 01:49:53PM -0400, Gavino Siciliano wrote: > bash-2.03# snmpconf -g basic_setup > Not enough arguments for mkdir at /usr/local/bin/snmpconf line 186, near > ""$opts{'I'}")" It seems that the very old perl version that ships with Solaris has the mode as a required parameter

Sending both trap and inform from the net-snmp agent?

2004-09-03 Thread Rachel Wang
I saw the man page of snmpd that you can configure the agent to send snmp v2 traps using trap2sink and notification using informsink at the same time. This is a very useful feature. Is there anywhere else that documents more details of how to correlate the specific types of the trap or notification

Re: Add a useful utility into agent

2004-09-03 Thread Niels Baggesen
On Wed, Sep 01, 2004 at 12:13:01PM +0800, Jim Su wrote: >1. To continue the experiment suggested by Robert I did the following - > > > > [EMAIL PROTECTED] ~/jim/Src/net-snmp/agent$ gcc -g -O2 -Dlinux -o .libs/snmpd > snmpd.o ../../authutil/lic_uti

AgentX protocol really slow?

2004-09-03 Thread cnelson
I'm running net-snmp 5.1.1 and a sub-agent on a 50MHz Embedded Linux system and I'm finding it takes approximately 10x longer to get data in the subagent than to get data in the snmpd. Responses to requests for core date are replied to in 0-10ms. Responses to requests for data in the subagent

newbie to snmp ...

2004-09-03 Thread Marc DROULEZ
Hi ! I'm a great newbie to snmp (I didn't even know what it was 8 days ago), so forgive my questions ... I've understood how to get information from my DSL 3com router from my Linux Mandrake. I think I've understood the "community" set (public/private : is there no more security ? no passwords

Compile errors on Tru64 - addendum to my earlier post

2004-09-03 Thread Michael Sierchio
The specific place it fails is: making all in /user_disk2/mi/net-snmp-5.1.1/agent/mibgroup /bin/sh ../../libtool --mode=compile cc -I../../include -I../../include -I. -I ../.. -I. -I./../.. -I./../../snmplib -I./.. -I.. -I/usr/local/ssl/include -g -Dosf5 -c -o mibII/tcpTable.lo mibII/tcpTabl

Workin compile on Tru64

2004-09-03 Thread Michael Sierchio
Are there patches to make config/compile work on Tru64? The native toolchain barfs on some macro redefinitions. Is it necessary to use gcc? And, if so, the next question would of course be -- is there a binary package for net-snmp and/or gcc? Thanks in advance, apologies for the naivete (I've be

Problems with snmpconf

2004-09-03 Thread Gavino Siciliano
Hello ...I have just finished compiling net-snmp 5.1.2 which I download from sunfreeware on my solaris 2.8, what gcc3.4.1.I add the following options ./configure --with-mib-modules="host disman/event-mib ucd-snmp/diskio \ smux agentx mibII/mta_sendmail" --with-cc=gcc No errors...I ra

Secure access to agent

2004-09-03 Thread cnelson
I want to limit access to the net-snmp agent (snmpd) to only secure (encrypted) channels. In the simplest case, I can include rouser and rwuser in snmpd.conf and omit rocommunity and rwcommunity. Is that right? If i want to get a little more sophisitcated, I can omit v1 and v2c from my grou

MIB files needed for Dynix/ptx 4.4.x

2004-09-03 Thread Aaron
Does anyone know of where I could aquire the MIB files (either ASN or OID format) for Dynix/ptx 4.4.x? The man pages on the system cover the specific items that may be queried; however, they do not cover the location of the mib files. Any information pointing me in the right direction would b

Re: Problems in creating AgentX subagent

2004-09-03 Thread Thomas Anders
Carlos Cantu wrote: I'm running into the same problem on my system. My SuSE install comes with 4.2.5 preloaded and the libs are in /usr/lib. My 5.0.8 that I installed manually put the libs in /usr/local/lib. Mixing 4.x and 5.x on the same system is much less problematic than mixing 5.x and 5.y

After first failure evaluation snmpd stops sending traps

2004-09-03 Thread Allan Mcintosh
Hey, I have snmpd.conf set up with 5 proc , 5 procfix entries. 8 exec and 1 execfix entry. I monitored various daemon's IE: apache. The exec entries spawn shell scripts and C++ binaries. agentSecName internal rouser internal monitor -r 60 -o prNames -o prErrMessage "process table" prErrorFl

Re: Problems in creating AgentX subagent

2004-09-03 Thread Carlos Cantu
> So if you run into more problem you > can't solve on your own, you'd better remove the older Net-SNMP version. I'm running into the same problem on my system. My SuSE install comes with 4.2.5 preloaded and the libs are in /usr/lib. My 5.0.8 that I installed manually put the libs in /usr/local

Viewing SNMP v2 TRAP from SNMPTRAPD

2004-09-03 Thread Arun Kumar
Hi, I have sent an SNMP Trap with Trap No 119 (an enterprise trap type of 256 ). I sent a verison 1 and version 2 trap.The output of the trap daemon is shown below. I have run the snmptrapd with the foll arguments snmptrapd -P -F "%02.2h:%02.2j TRAP%w.%q from %A\n" Output shown for v2 Trap

Re: Problems in creating AgentX subagent

2004-09-03 Thread Thomas Anders
Rana wrote: ./example-demon: relocation error: /usr/lib/libnetsnmpagent.so.5 : undefined symbol : 'hosts_ctl' Do you by chance have *two* libnetsnmpagent.so.5 files on your system, an older in /usr/lib and a newer one in /somewhere/else? And "example-demon" is compiled against the one in /s

Re: Problems in creating AgentX subagent

2004-09-03 Thread Rana
Hi, I performed the operation export MIBDIRS=/usr/share/snmp/mibs Then I performed the following steps 1. I started the snmp demon using the command snmpd -c /root/snmpd.conf 2. I started the example-demon on a terminal ./example-demon It showed the message 'ex

loadable module initialization

2004-09-03 Thread Kalin Simeonov
Hi, all I have a question about the loadable module (shared object) support. I have to attach to some shared memory on initialization. If the memory does not exist I must not create it. In this case some kind of error shall be reported to the snmp daemon and the module shall not be loaded. The pr

Re: snmpset - where does the newly set value get stored

2004-09-03 Thread Ernest SO
I use "snmptranslate -IR -Td coldStart" to check OID. The result is   SNMPv2-MIB::coldStartcoldStart NOTIFICATION-TYPE  -- FROM   SNMPv2-MIB  DESCRIPTION   "A coldStart trap signifies that the SNMP entity,    supporting a notification originator application, is    re