mib2c problem on 5.2.1

2005-10-17 Thread John Hardin
I've been having some problems with mib2c generating the right code in the old ucd-style. I'm using NET-SNMP 5.2.1 on Linux. It's pretty easy to tweak the resulting code to fix the problems, but I thought I'm mention the problems in case I'm doing something obviously wrong. The two problems are

RE: passtest on 5.1.2.11

2005-10-17 Thread Stuart Marsden
Robert It was SELinux - Turned it off and all works If you have a config entry that would be good, otherwise I am happy to leave off for now 6 Thanks 1*10 Stuart -Original Message- From: Robert Story [mailto:[EMAIL PROTECTED] Sent: 17 October 2005 18:22 To: Stuart Marsden

Re: mib2c

2005-10-17 Thread Thomas Anders
Eugen wrote: When trying to run mib2c I received that error message than, following the instructions, I've installed the net-snmp-perlmods-5.2.1.2-1 directly from the binary downloaded on the same net-snmp web page (net-snmp-perlmods-5.2.1.2-1.i686.rpm since I didn't found the rpm source of this

RE: mib2c

2005-10-17 Thread Eugen
Hi Robert, Thanks for your answer. Actually what I did was the following: - I've downloaded the package net-snmp-5.2.1.2-1.src.rpm from net-snmp web page - I've installed the src rpm with "rpm -i net-snmp-5.2.1.2-1.src.rpm" - I've updated the net-snmp.spec file with expamles/notification module a

Re: passtest on 5.1.2.11

2005-10-17 Thread Robert Story
On Thu, 13 Oct 2005 14:42:43 +0100 Stuart wrote: SM> Running passtest on Centos or RHEL(net snmp-5.1.2.11) fails SM> SM> ucd-snmp/pass: pass-running: /bin/sh /etc/snmp/passtest -g SM> .1.3.6.1.4.1.2021.255.1 SM> read: Permission denied SM> SM> the permissions of the file are wide open an

Re: Get IP-addresses and names of hosts attached to Switchports

2005-10-17 Thread Robert Story
On Fri, 14 Oct 2005 12:14:39 +0200 Boris wrote: BF> output: BF> SNMPv2-SMI::mib-2.17.4.3.1.1.0.0.28.182.27.202 = Hex-STRING: 00 00 1C B6 BF> 1B DF Any part of that look familiar? '28.182.27.202' looks like an ip address to me - so your script could easily use command line apps to get the host nam

Re: Perl versus c agent

2005-10-17 Thread Robert Story
On Fri, 14 Oct 2005 18:20:33 -0400 Eugen wrote: E> I've recently installed the net-snmp (RedHat) and when trying to execute E> mib2c I receive the error: E> E> ERROR: You don't have the SNMP perl module installed. Please obtain E> this by getting the latest source release of the net-snmp toolkit

Re: make errors on OS X Tiger 10.4.2 for 5.2.1.2

2005-10-17 Thread Robert Story
On Mon, 26 Sep 2005 09:47:09 -0400 Rob wrote: RK> Any more info on this? RK> RK> From: Chris Florio <[EMAIL PROTECTED]> RK> Subject: Re: make errors on OS X Tiger 10.4.2 for 5.2.1.2 RK> Date: Fri, 2 Sep 2005 08:06:05 -0400 RK> RK> The only thing I would add is that the folks at opendarwin/ RK>

Re: ipAddrTable AIX doesn't have one?

2005-10-17 Thread Robert Story
On Fri, 23 Sep 2005 11:15:46 -0500 Alton wrote: AH> There have been several posts to the effect of ipAddrTable not working AH> properly on AIX. Is there any insite into this? The problem is that we haven't found anyone with an AIX box and the time and/or inclination to investigate and fix the pro

Re: MODE_SET_*

2005-10-17 Thread Roman Medina-Heigl Hernandez
Dave Shield wrote: >> Why don't we have one and >>only MODE_SET state (like in GET or GETNEXT)? > > Because changing settings is a lot more complex than > simply reporting them. Particularly ensuring that > either everything gets changed, or nothing does. > (The "as if simultaneously" behaviour)

Re: add a forever process in agent

2005-10-17 Thread Robert Story
On Mon, 26 Sep 2005 13:15:16 +0100 Dave wrote: DS> On Fri, 2005-09-23 at 10:59 -0400, Robert Story wrote: DS> > Looking at the code, it looks like it will run DS> > every 5 minutes from the last time it was run. Thus, DS> > each time the agent is busy when the timer expires, DS> > it will drif

Re: timeout exponentially backoff ?

2005-10-17 Thread Robert Story
On Mon, 26 Sep 2005 13:32:41 +0100 Dave wrote: DS> On Thu, 2005-09-22 at 21:17 +0800, Lee Melvin wrote: DS> > timeout WILL exponentially backoff in the future release of net-snmp? DS> DS> No. DS> Things changed the other way. DS> DS> The backoff code was removed in 1998 Anyone have a good enough

Re: option -i for monitor?

2005-10-17 Thread Loic Domaigne
Hi Dave, > > I have applied your patch, and I confirm: the inform is sent as > expected. > > Good. > I'll commit that patch to the CVS code. Ok, great! > > However, there's still an issue in the varbinds of the inform. > > > UCD-SNMP-MIB::prNames.2 = Wrong Type: NULL > > UCD-SNMP-MIB::prErr

Re: mib2c/perl "make test" errors

2005-10-17 Thread jbarney
Mib2c seems to be working now. At first, I was having problems with some of the snmp libraries because Fedora Core 3 had been installed with its own version of Net-SNMP on my machine. Apparently, there were conflicts between the installed 5.1.2-11 version and the 5.2.1.2 version that I had instal

Re: MODE_SET_*

2005-10-17 Thread Dave Shield
On Mon, 2005-10-17 at 16:07 +0200, Roman Medina-Heigl Hernandez wrote: > NetSNMP::agent's API shows 7 different SET states: [snip] > Where could I get an explanation for them? See the file AGENT.txt - in particular, section 8. The API that it describes is obsolete now, but the basic multi

Re: option -i for monitor?

2005-10-17 Thread Dave Shield
On Mon, 2005-10-17 at 14:03 +0200, Loic Domaigne wrote: > I have applied your patch, and I confirm: the inform is sent as expected. Good. I'll commit that patch to the CVS code. > However, there's still an issue in the varbinds of the inform. > UCD-SNMP-MIB::prNames.2 = Wrong Type: NULL > UCD-SN

unable to get or set variables from the tutrial examples

2005-10-17 Thread taner memet ali
Hi, i compiled the example codes int_scalar.c and set_data.c into my agent but am unable to get the values every get and set commands returns a packet error i.e. snmpget -v 1 -c public 127.0.0.1 netSnmpExampleInteger.0 error in packet Reason: (noSuchName) There is no such variable in this MIB Fai

MODE_SET_*

2005-10-17 Thread Roman Medina-Heigl Hernandez
Hello, I'm coding a small MIB with embedded perl and I need to proccess SET request. NetSNMP::agent's API shows 7 different SET states: MODE_SET_ACTION MODE_SET_BEGIN MODE_SET_COMMIT MODE_SET_FREE MODE_SET_RESERVE1

Re: snmptrap - community ???

2005-10-17 Thread Dave Shield
On Mon, 2005-10-17 at 05:13 -0700, [EMAIL PROTECTED] wrote: > For that what I > know is that both the agent and the NMS should have > some same community name shared... In principle - yes, that's correct. > But from which file can you change community name for > traps on NMS ?? that runs snmptra

Newbie MIB question.

2005-10-17 Thread Ben Z
Hi all; I've been sifting through old posts and Google searches since sometime last Wednesday trying to find an answer to my question. Maybe someone here can help me? I'm trying to setup a wireless test network. I would like to to be able to manage and query my network nodes via SNMP for the purp

Cross compiling net-snmp for powerpc XPC860 - errors

2005-10-17 Thread Hector Oron
I've not been able to cross-compile ./user/net-snmp/, also i've been trying to compile native with my mib (adding the mib to the agent) and it doesn't work very well. As i'm not an open book explaining myself (poor english, sorry), i paste my error logs: First, i try to cross-compile:  

snmptrap - community ???

2005-10-17 Thread [EMAIL PROTECTED]
Hello friends... = I want to just test how trap works...For that what I know is that both the agent and the NMS should have some same community name shared... for agent it is spacified in snmpd.conf..as "trapsink"... But from which file can you change community name for traps on NMS ??

Cross compiling net-snmp for powerpc XPC860 - errors

2005-10-17 Thread Hector Oron
I've not been able to cross-compile ./user/net-snmp/, also i've been trying to compile native with my mib (adding the mib to the agent) and it doesn't work very well. As i'm not an open book explaining myself (poor english, sorry), i paste my error logs: First, i try to cross-compile:   $ ./

Re: option -i for monitor?

2005-10-17 Thread Loic Domaigne
Hi Dave, > > > Please try the following patch: > > [SNIP] > > OK - I'm now reasonably confident that the patch should fix > your problem. It appears that I was (inadvertantly) relying > on newly-created buffers being automatically set to 0. > This works OK on Linux, but isn't universally

Re: option -i for monitor?

2005-10-17 Thread Dave Shield
> > It would also be useful to see a walk of the mteTriggerBooleanEvent > > and mteTriggerBooleanEventOwner objects. It looks suspiciously as > > if the events are set up OK, but the monitor isn't actually looking > > for them properly. > > DISMAN-EVENT-MIB::mteTriggerBooleanEventOwner."snmpd.co

Re: option -i for monitor?

2005-10-17 Thread Loic Domaigne
Moin, > > > snmpwalk mteNotificationEventTable > > > > before killing prg2: > > > > mteNotificationEventTable: Unknown Object Identifier > > (Sub-id not found: (top) -> mteNotificationEventTable) > > > My mistake - that should be "mteEventNotificationTable". > Sorry about that. I l

Re: Perl versus c agent

2005-10-17 Thread Dave Shield
On Fri, 2005-10-14 at 14:47 +, xuemei wrote: > What are the major features/differences between the C and Perl agent? What do you mean by "the perl agent"? The Net-SNMP agent is written in C, not perl. It's possible to *use* perl code within the agent (via an embedded perl interpreter), and it

Re: Does anyone know how the subagent send trap?

2005-10-17 Thread Dave Shield
On Sat, 2005-10-15 at 12:48 +0800, Ryan guo wrote: > hi,I am using the net-snmp 5.1.2,and i make a subagent using the > agentx,. i am puzzling with the trap, how can add trap action > into my subagent or register it's function into subagent, Please see the FAQ entries: How can I get the

Re: option -i for monitor?

2005-10-17 Thread Dave Shield
On Mon, 2005-10-17 at 10:18 +0200, Loic Domaigne wrote: > Enclosed the entries in the mteEventTable and > mteNotificationEventTable as you asked. > > What's the output from > > > > snmpwalk mteEventTable > > Before killing prg2: > > DISMAN-EVENT-MIB::mteEventComment."_snmpd".'_mteTrigge

RE: Help with exec and pass

2005-10-17 Thread Santanu Misra
Hello Dave, Thanks for your help, making me understand the man page a bit better now for net-snmp. Well my Perl script is ready and working fine with snmpwalk/ snmpgetnext/ snmpget. I am going to post the dummies how to on that. You are welcome to make your comments on that. Here is the draft. -

Re: option -i for monitor?

2005-10-17 Thread Loic Domaigne
Hi Dave, hope you had a nice week-end. Enclosed the entries in the mteEventTable and mteNotificationEventTable as you asked. Regards, Loïc. > > > What debug output does the agent display? > > > > disman:event:trigger:monitor: Running trigger (proc) > > disman:event:delta: Bool comparison: (