Trap Configuration

2005-12-08 Thread madhan raj
  Dear All,             I am using Net-SNMP 5.3 Pre-Release1 in my router. I have to configure traps in it. Can any one tell me how to configure traps? And also what I have to specify in my "snmpd.conf" -Thanks and Regards Madhan

Re: How to find the handle function according to request?

2005-12-08 Thread Wes Hardaker
> On Thu, 8 Dec 2005 23:31:08 +0800, Zax <[EMAIL PROTECTED]> said: Zax> I guess the agent may maintain a tree structure. Zax> there are oid and a handle function in the leaf node. Zax> The agent uses the oid to find the corresponding handle function Zax> to do something, isn't it? I would l

Re: Problem compiling on HP-UX 11.00

2005-12-08 Thread Wes Hardaker
> On Thu, 08 Dec 2005 17:48:22 +0100, Johannes Schmidt-Fischer <[EMAIL > PROTECTED]> said: Johannes> The script nsb-package sources the nsb-functions script. In Johannes> thas script a function nsb-make() is defined that runs the Johannes> actual make command. Unless NSB_MAKE is set by t

Re: Trap handling (or not)

2005-12-08 Thread Wes Hardaker
> On Thu, 08 Dec 2005 17:00:18 +, Dave Shield <[EMAIL PROTECTED]> said: Dave> I introduced a second directive because I didn't think Dave> that "disableAuthorization" was particularly meaningful Dave> to a typical network administrator - it's much more of Dave> a security-orientated descri

Re: Net-SNMP 5.2.2 released

2005-12-08 Thread Wes Hardaker
> On Fri, 09 Dec 2005 08:17:57 +1100, Andrew Hood <[EMAIL PROTECTED]> said: Andrew> Hmmm. Don't try to reply to announce. Maybe announce should Andrew> set Reply-To to coders. Reply-To's are considered evil by many... -- Wes Hardaker Sparta, Inc. --

Question about Trap information being sent

2005-12-08 Thread Richard Wellhouse
Hi!   I am currently working on getting net-snmp working with SLES and the trap is being sent to the management station, but net-snmp is changing the Enterprise OID to 1.3.6.1.4.1.8072.3.2.10.  We would expect it to forward the trap it recieved from the subagent and leave the Enterprise OID as 1.

Re: Net-SNMP 5.2.2 released

2005-12-08 Thread Andrew Hood
Hmmm. Don't try to reply to announce. Maybe announce should set Reply-To to coders. = Wes Hardaker wrote: >> Net-SNMP 5.2.2 has been made available on our download site >> ( http://www.Net-SNMP.org/download/ ). This release contains a number >> bug fixes and an entirely rewritte

A bug in com2sec6 and in rocommunity6/rwcommunity6

2005-12-08 Thread sasson_shuki
Title: A bug in com2sec6 and in rocommunity6/rwcommunity6 Hi all, I came across a bug while testing access view for IPv6. Basically the following line in snmpd.conf will not work right: com2sec6 public6_comm  3ffe:80c0:22c:cafe:211:43ff:fedb:7876 public6 The reason for that is that the strin

How to cross compile NET-SNMP

2005-12-08 Thread Hector Oron
Hello folks,  I've been trying to cross-compile net-snmp for ppc over i386. I have build a script with some of the options that we should select. I'm able to generate my binary file, but when i start snmpd agent it doesn't work as I expect. Target: MPC-855 (ppc), glibc-1.99, kernel-2.4.18 Ho

Re: Trap handling (or not)

2005-12-08 Thread Dave Shield
On Thu, 2005-12-08 at 17:17 +0100, Thomas Anders wrote: > Whatever we agree upon, I think we should stick to *one* > directive for this purpose. I'm not going to make a great fuss about this issue. I introduced a second directive because I didn't think that "disableAuthorization" was particularly

Re: Problem compiling on HP-UX 11.00

2005-12-08 Thread Johannes Schmidt-Fischer
> Wes Hardaker wrote: > >>>On Mon, 5 Dec 2005 08:01:10 -0500, Robert Story <[EMAIL PROTECTED]> said: >> >> >>Robert> On Fri, 02 Dec 2005 01:10:24 +0100 Johannes wrote: >>JSF> But I think that isn't your problem at the moment. I think you posted >>JSF> the complete make output and not only some

Re: Trap handling (or not)

2005-12-08 Thread Thomas Anders
Dave Shield wrote: Thomas has suggested that perhaps this should be "acceptAllNotifications" instead. That's certainly a more technically accurate name, though I personally prefer the one I chose (naturally, since that's why I chose it!) Anyway - what do people think? "acceptAllTraps", "acc

How to find the handle function according to request?

2005-12-08 Thread Zax
I guess the agent may maintain a tree structure.   there are oid and a handle function in the leaf node.   The agent uses the oid to find the corresponding handle function to do something, isn't it? I would like to know how the agent works.   Thank you!  

Trap handling (or not)

2005-12-08 Thread Dave Shield
I've just committed a couple of changes to the CVS tree, relating to the new authorization checks for snmptrapd. Firstly, I've extended the initial 'snmpd' warning, so that a similar message is displayed if there are no access settings configured. Secondly, I've also added a warning whenever an i

Re: Problem compiling on HP-UX 11.00

2005-12-08 Thread Andrew Hood
Thomas Anders wrote: > Robert Story wrote: > >> On Fri, 02 Dec 2005 01:10:24 +0100 Johannes wrote: >> JSF> But I think that isn't your problem at the moment. I think you >> posted >> JSF> the complete make output and not only some lines from the start >> and the >> JSF> last lines. Could it be tha

Re: Problem in Trap

2005-12-08 Thread Dave Shield
On Thu, 2005-12-08 at 12:15 +, madhan raj wrote: > I am using Net-Snmp 5.3 pre-release1 in my router. > I have configured my "snmpd.conf" for traps also. Have you configured the "snmptrapd.conf" file to *accept* these traps? That's one of the most significant changes with the 5.3 r

Problem in Trap

2005-12-08 Thread madhan raj
  Hi All,             I am using Net-Snmp 5.3 pre-release1 in my router. I have configured my "snmpd.conf" for traps also. The problem is I am unable to receive the trap if an interface goes dowm/up. Kindly help me regarding this. The lines which I have included in my configuration file is as fo

Re: compile error

2005-12-08 Thread Dave Shield
On Thu, 2005-12-08 at 14:36 +0900, sunsson wrote: > When I compile(./make) the source after “./configure”, > I met this error. > But I don’t know this error. Try the following patch: --- interface_linux.c 15 Jun 2005 21:39:50 - 1.20.2.4 +++ interface_linux.c 8 Dec 2005 10:29:45 - @@

Re: Problem in Snmpd.conf

2005-12-08 Thread devsingh
Madan, I presume that you are using snmpv3. Please find following details which will clarify your question: - You need to put security related stuff in your snmpd.conf - "snmpd.conf" file is read by snmp Deamon (snmpd)when you run deamon (./snmpd ) - If you are not specifying any path while

Re : How Tables and SNMP Daemon interect?

2005-12-08 Thread devsingh
Ajay, Your Question : How Tables and SNMP Daemon interect? Note : Please provide following information so that I can help you better. - Have you created Tables with rows( which mib2c conf file?)?. - Are you able to apply SNMP operaions? - How are you configuring Table in order to provide

gethostbyname vs. getaddrinfo or gethostbyname_r

2005-12-08 Thread Vikas Aggarwal
While troubleshooting some annoying crash dumps in a multi-threaded application, I noticed that there are several files in snmplib/*.c which are using the gethostbyname() routines which are NOT thread safe. Do these gethostbyname() routines need to be converted to gethostbyname_r or getaddrinf

Re: compile error

2005-12-08 Thread Dave Shield
On Thu, 2005-12-08 at 14:36 +0900, sunsson wrote: > When I compile(./make) the source after “./configure”, > I met this error. Which version of the code are you using? What O/S and hardware are you trying this on? > Would I download the source again? I doubt that would help. Dave ---

compile error

2005-12-08 Thread sunsson
When I compile(./make) the source after “./configure”, I met this error. But I don’t know this error. Would I download the source again?   === In file included from if-mib/data_access/interface_linux.c:27: /usr/include/pci/pci.h:29

Re: Problem compiling on HP-UX 11.00

2005-12-08 Thread Johannes Schmidt-Fischer
Wes Hardaker wrote: >>On Mon, 5 Dec 2005 08:01:10 -0500, Robert Story <[EMAIL PROTECTED]> said: > > > Robert> On Fri, 02 Dec 2005 01:10:24 +0100 Johannes wrote: > JSF> But I think that isn't your problem at the moment. I think you posted > JSF> the complete make output and not only some lines