Another problem with Installing new-snmp in QNX 6.x Operating System

2004-08-02 Thread rid_One
Danke... Now my snmpd and snmptrapd runs well. But my snmptrapd seems cant do "traphandle". in my snmptrapd.conf, I wrote: traphandle .1.3.6.1.4.1.2004.10 /bin/echo test then I restarted my snmptrapd. After that I sended my trap with snmptrap -v 2c -c "" .1.3.6.1.4.1.2004.10 but nothing happe

net-snmp 5.1.2rc1 locking up?

2004-08-02 Thread Bill Schwanitz
I discovered at the very least, a situation which causes the snmpd to run into a spin opening up /etc/mtab. I did a bit of discovery on the issue - I have tcpdump with full packet length + output from strace. I am not very familiar with gdb - if someone can give me the commands to use I would be ha

trailing .0 in traps

2004-08-02 Thread Zoltan Varga
Hi, I am looking for the reason why sysUptime and snmpTrapOID variables are appended with a .0 instance in trap (notification) messages. I have not found any good explanation for this in the SNMP related RFC's. I remember to have read somewhere that scalar objects must have a .0 as index but I

RE: agent hung up running "exec" process

2004-08-02 Thread atonns
Update: I tested this on 5.1.2.rc2 with the same result as 5.1.1 - truncated command output and a hanging of the agent on the one MIB (prtconf). Going backwards instead of forwards - the 3 MIBs listed below work without any problems in version 5.0.9. Same exact "configure" command line, only the

missing libs?

2004-08-02 Thread atonns
Title: missing libs? I'm attempting to compile net-snmp-5.1.2.rc2 on Solaris 9 4/04. I get this from configure: checking netinet/tcpip.h usability... no checking netinet/tcpip.h presence... yes configure: WARNING: netinet/tcpip.h: present but cannot be compiled configure: WARNING: netinet/tc

Generated templates

2004-08-02 Thread Gary Clark
Hello, I have generated the templates using the mib2c command. I initially chose to use the templates that contained tables which are contained in internal memory. When the agent dies...the tables die without any persistence. Having tried out the get and set routines which work like a charm on the

Re: Prob in integrating table module

2004-08-02 Thread Wes Hardaker
> On Mon, 02 Aug 2004 03:35:49 -0600, [EMAIL PROTECTED] said: haris> oid company_variables_oid[] = { company}; haris> struct variable4 company_variables[] = { haris> {LOGFULLPERCENT, ASN_INTEGER, RONLY, var_company, 1, {1 }}, haris> ... haris> ... haris> {DISKFULLPERCENT , ASN_INTEGER, RONLY,

Re: snmpbulkget fragments

2004-08-02 Thread Wes Hardaker
> On Mon, 2 Aug 2004 10:35:31 +0200, Jeffrey Koetsier <[EMAIL PROTECTED]> said: Jeffrey> Some switches in the network I am working in drop fragmented Jeffrey> pacakges. If I do a snmpbulkget to an host behind such a Jeffrey> switch, I get no respones: The -Cn and -Cr switches should fix your

Re: Process name

2004-08-02 Thread Wes Hardaker
> On Mon, 2 Aug 2004 12:19:18 +0800, Kelvin Wu <[EMAIL PROTECTED]> said: Kelvin> same program but different paraments, how can i monitor these Kelvin> processes? snmp/snmpd.conf only allows me to monitor test.pl. Currently, no... Future versions of Net-SNMP may support better process regexp

Re: octet string maximum size

2004-08-02 Thread Wes Hardaker
> On Mon, 2 Aug 2004 13:59:40 +0300, Mike Mohamet <[EMAIL PROTECTED]> said: Mike> I would like to know what is the maximum size of a string that Mike> snmpget command can retreive. I read in the literature that the Mike> limitation for snmpget command is the 64k size of a UDP packet, Mike> but

Re: EngineID

2004-08-02 Thread Wes Hardaker
> On Mon, 02 Aug 2004 14:26:22 +0200, Narinder Soni <[EMAIL PROTECTED]> said: Narinder> Ya, I am also trying to find out the same i.e. why my Narinder> app. doesn't pick up these tokens automatically. May be - Narinder> while mixing up the code of snmpget and snmptrapd I have Narinder> eaten u

Re: 5.1.2.pre2 notes (fwd)

2004-08-02 Thread Stuart Kendrick
hi dave, ok, here is a packet trace with the script asking twice for .1.3.6.1.4.1.9.5.1.4.1.1.6.1.1: Source Destination Protocol Info 140.107.74.123 [...].50.5 SNMP GET iso.3.6.1.4.1.9.5.1.4.1.1.6.1.1 140.107.50.5 [...].74.123 SNMP RESPONSE iso.3.6.1.4.1.9.5.1.4.1.1.6.1.1 140.107.74.12

snmp_open_ex()

2004-08-02 Thread Narinder Soni
what is the difference between using snmp_open() and snmp_open_ex() functions? Will it be fine if I use snmp_sess_open() instead of snmp_open_ex() for the traphandler(in snmptrapd.c)? Thanks Soni --- This SF.Net email is sponsored by OSTG. Hav

Re: how to best pass a usmUser to snmptrapd?

2004-08-02 Thread Dave Shield
> I thought it was going to be a quick task, and thus explaining how to > do it would take longer than doing it so I started in on it. However, > in the process I found that I'm not sure agentx has ever supported > contexts properly so I had to fix that first. Yup - I'd also had a go at this tas

Re: What does that mean "past the end of the MIB tree"?

2004-08-02 Thread Dave Shield
> Do you know what's the meaning of "No more variables left in this MIB View" > Could it be the "access control" prohibiting the access to my private mib > tree? Or the registration and binding of my mib tree is actually failed? Those are the two most likely causes. It basically means: "there'

Re: EngineID

2004-08-02 Thread Narinder Soni
Ya, I am also trying to find out the same i.e. why my app. doesn't pick up these tokens automatically. May be - while mixing up the code of snmpget and snmptrapd I have eaten up something(I did this 2 years back) or I have called the initialization routines in different order or this is happening b

Re: EngineID

2004-08-02 Thread Dave Shield
> I am sorry but still I didn't find > init_agent("snmptrapd") in snmptrapd.c of ucd-snmp-0.4.2.5 OK. Both Wes and I will have been looking at the v5 code. The v4 line is rather old now, and is no longer being developed. > init_snmp("snmptrapd") is there. > And I am also calling this function.

What does that mean "past the end of the MIB tree"?

2004-08-02 Thread Jim Su
Hi Greeting: Do you know what's the meaning of "No more variables left in this MIB View (It is past the end of the MIB tree)" while I tried to getnext of my top of my mib? I followed the steps listed in the "checklist for adding a MIB module to the UCD-SNMP agent". I found the above error.

Re: EngineID

2004-08-02 Thread Narinder Soni
I am sorry but still I didn't find init_agent("snmptrapd") in snmptrapd.c of ucd-snmp-0.4.2.5 rather init_snmp("snmptrapd") is there. And I am also calling this function. Does this routine also do same as init_agent?? or should I explicitly use init_agent instead od init_snmp or BOTH? Thanks So

Unable to get passtest script working with v 5.1.1 from Debian

2004-08-02 Thread Peter Ross
Hi, I've been trying to use the pass command to implement a script for creating my own MIB blocks. To begin with I'm just trying to get the supplied passtest script from 5.1.1 to work, and it doesn't. Here is a log of my session escher:~# /etc/init.d/snmpd restart Restarting network management

Re: EngineID

2004-08-02 Thread Dave Shield
> Why should I call init_agent() from > my management application i.e. the code which will either receive > traps or make snmpget/set commands only. Because "init_agent" is the bit that handles some of the persistent configuration information. You don't need that for

octet string maximum size

2004-08-02 Thread Mike Mohamet
Hi all I am using ucd-snmp 4.2.6 and I am trying to develop my own MIB file. I would like to know what is the maximum size of a string that snmpget command can retreive. I read in the literature that the limitation for snmpget command is the 64k size of a UDP packet, but soon I realized that I

Re: EngineID

2004-08-02 Thread Narinder Soni
I didn't get your point completely. Why should I call init_agent() from my management application i.e. the code which will either receive traps or make snmpget/set commands only. Also, I didn't find init_agent being called from the code of tools snmptrapd.c and snmpget.c I saw the following routine

Prob in integrating table module

2004-08-02 Thread haris_here
Hello, I've been implementing a module for the net-snmp agent. I'm successful in integrating the module with the agent. All the objects in the MIB were scalar variables. Recently, I added a new object which corresponds to a table. This table object is given below. 'company' corresponds to th

Re: net-snmp question

2004-08-02 Thread Dave Shield
> The equipment has an SNMP agent running on it. However, I need some tools > in order to request or set information from the SNMP agent. > > This way, I was wondering if I can install the Net-SNMP software and use its > tools to request or set information from the SNMP agent. Is this possible?

Re: first step in snmpd programming

2004-08-02 Thread Dave Shield
> To experiment the very first few step I hard coded every return > values for each case under switch(vp->magic). My table is a table > of 5 entries. It didn't give me anything when I issued "get" or > "getnext" commands > Could you kind show me what should I do to cross over the very first

Re: 5.1.2.pre2 notes (fwd)

2004-08-02 Thread Dave Shield
> here is a snippet from the ethereal > trace, taken running my script as designed: > > Source Destination Protocol Info > 140.107.74.123 140.107.50.5 SNMP GET ccitt.1 > 140.107.50.5 140.107.74.123 SNMP RESPONSE ccitt.1 > 140.107.74.123 140.107.50.5 SNMP GET ccitt

snmpbulkget fragments

2004-08-02 Thread Jeffrey Koetsier
Title: snmpbulkget fragments Hi all, Is it possible to 'not' fragment the replies to an snmpbulkget request? Some switches in the network I am working in drop fragmented pacakges. If I do a snmpbulkget to an host behind such a switch, I get no respones: $> snmpbulkget -v2c -c ho