Re: Unknown Object Identifier - HOST MIBS

2005-11-29 Thread Dave Shield
On Mon, 2005-11-28 at 17:42 -0800, Tam Vo wrote: > > Everytime I tried accessing information in the HOST-RESOURCES-MIB, > both locally and remote, I got a Unknown Object Identifier error. For > example, when I try to perform > > snmpget -v 1 -c public localhost hrSystemDate > I would

Re: snmp trap handler issue (net-snmp-5.3.pre4)

2005-11-29 Thread Thomas Anders
Holger Jahn wrote: At last, I tried the ultimate version 5.3.pre4, just to find that there is no memory leak any more - but also no trap handling. I'd suggest to try the just released 5.2.2 which will work out of the box for you. As for 5.3.pre4 (and later), please note the following NEWS s

Re: No traps in v5.2.2.rc6?

2005-11-29 Thread Thomas Anders
[EMAIL PROTECTED] wrote: This is a preliminary report -- I'm still trying to prove I'm not doing something wrong -- but I can't get any traps out of v5.2.2 rc6. I've rebuilt my whole system against v5.5.2 headers and libraries and my configuration definitely calls for authorization traps and my

Re: No traps in v5.2.2.rc6?

2005-11-29 Thread cnelson
> ... > Does/did "make test" run successfully for you? Test #28 > (testing/tests/T058agentauthtrap) verifies that "authentication > failure traps are sent by snmpd". > > If you can come up with a similar simple, self-contained test that > *fails* for you, please let us know. I'm cross-building

Bug Database - [ 727199 ] snmpd locks when execfix tries to start an app in the backgr

2005-11-29 Thread Mark Harper
I have the same problem with procfix using NetSnmp 5.1.3.1. The Net SNMP agent hangs until the defunct process stops. This makes procfix unusable when trying to restart processes however procfix does seem to work when restarting services. --- T

Re: No traps in v5.2.2.rc6?

2005-11-29 Thread Dave Shield
On Tue, 2005-11-29 at 08:09 -0500, [EMAIL PROTECTED] wrote: > I'm cross-building for an embedded environment so "make test" > is hard to do, at best. I suspect it may have something to do with this embedded environment. I've just tried running the 5.2.2.rc6 code (built from a default "./configure

Problem with snmptrap

2005-11-29 Thread Andrei Pisau
Hi net-snmp users! I use SNMP v3 for sending enterprise traps to localhost. I have checked the documentation: http://net-snmp.sourceforge.net/tutorial/tutorial-5/commands/snmptrap-v3.html and also the man pages, but still I don't understand something. If I want to walk on my MIB using snmpv3 I pu

Re: Unknown Object Identifier - HOST MIBS

2005-11-29 Thread Tam Vo
Thank you for the suggestion.  I tried         snmpget -Dparse-mibs -v 1 -c public localhost hrSystemDate and it found all of the MIBS, including HOST-RESOURCES-MIB.txt  (Module 25) and HOST-RESOURCES-TYPES.txt (Module 26) under /usr/local/share/snmp/mibs.  I also noticed that it imports a lot

Re: Problem with snmptrap

2005-11-29 Thread Wes Hardaker
> On Tue, 29 Nov 2005 16:49:33 +0200, Andrei Pisau <[EMAIL PROTECTED]> said: Andrei> snmptrap -Ddumph_send,dumpv_send,usm -e 0xbd224466-v 3 -u root -a MD5 Andrei> -A authpass -l authPriv -x DES -X privpass localhost 42 coldStart.0 1) that engineid is not a legal one... Not that it should ma

Re: truncating unsigned value to 32 bits

2005-11-29 Thread Wes Hardaker
> On Mon, 28 Nov 2005 14:33:27 -0800 (PST), Stuart Kendrick <[EMAIL > PROTECTED]> said: Stuart> "truncating unsigned value to 32 bits" Stuart> when i grab this one particular variable, i see the above Stuart> warning. Stuart> what does it mean? It means someone broke the counter64 pa

Re: How to configure agent to listen on a new IPAddress without restarting it.?

2005-11-29 Thread Wes Hardaker
> On Mon, 28 Nov 2005 23:08:48 +0800, "Pamidipati Suresh-G20238" <[EMAIL > PROTECTED]> said: Pamidipati> WIll SIGHUP not reconfigure the agent to listen on new IPAddress Pamidipati> mentioned..? That's correct, unfortunately... It'd be nice if it did but no one has done the work to mak

Re: Heartbeating from Manager to sub-agent

2005-11-29 Thread Wes Hardaker
> On Mon, 28 Nov 2005 17:25:27 +0530, "Patil, Suresh (Suresh)" <[EMAIL > PROTECTED]> said: Suresh> I have a SNMP Manager and a SNMP agent. The SNMP Manager is Suresh> under my control and the SNMP Agent are being provided by some Suresh> third party without the source code. I want to esta

Re: how to use a single session for communicating with multiple devices

2005-11-29 Thread Wes Hardaker
> On Mon, 28 Nov 2005 10:26:44 +0700, "Luu Vo" <[EMAIL PROTECTED]> said: Luu> I would like to implement an SNMP manager that uses a single snmp Luu> session for sending SNMP requests to various devices. Does Luu> net-snmp provide support for this? Can I put the device IP (as a Luu> sockaddr_in

Re: How to pass ipv6 address as one of the indices in OID to snmp agent

2005-11-29 Thread Wes Hardaker
> On Sat, 26 Nov 2005 15:57:52 +0530, "Rajalakshmi M.R" <[EMAIL PROTECTED]> > said: Rajalakshmi> I have to pass ipv6 address as one of the indices in OID Rajalakshmi> for snmp_get. Rajalakshmi> For ex, Rajalakshmi> snmpget x.y.z.ff02::10.m Rajalakshmi> - Rajalakshmi> ipv6 addres

Re: Question about how to get snmp trap data

2005-11-29 Thread Wes Hardaker
> On Sat, 26 Nov 2005 11:03:51 +0800, Âé Ñ©òÔ <[EMAIL PROTECTED]> said: mprogrammer> I am implementing a deamon which want to get snmp trap mprogrammer> messages and save them to database, I've learned mprogrammer> "snmptrapd" program, but I don't konw how to get the trap mprogrammer> messages

Re: Unknown Object Identifier - HOST MIBS

2005-11-29 Thread Robert Story
On Tue, 29 Nov 2005 08:13:11 -0800 Tam wrote: TV> The next thing I tried was TV> snmpget -Dparse-mibs -v 1 -c public localhost TV> HOST-RESOURCES-MIB::hrSystemDate TV> TV> Then the error TV> Error in packet TV> Reason: (nosuchname) There is no such variable in this MIB. T

Re: ActiveAlarmTable implementation in Net-SNMP

2005-11-29 Thread Wes Hardaker
> On Fri, 25 Nov 2005 09:26:33 -0800 (PST), Pichi Reddy <[EMAIL PROTECTED]> > said: Pichi> I am using Net-SNMP 5.1.2 for SNMP agent and subagents. Pichi> I need to provide support for alarmTable for all the notifications SNMP Pichi> agent sends on behalf of our subagents to trap destinat

Re: send_enterprise_trap_vars and sender Enterprise OID

2005-11-29 Thread Wes Hardaker
> On Thu, 17 Nov 2005 17:19:03 +0100, "Gonin, Sebastien" <[EMAIL > PROTECTED]> said: Sebastien> - Is it normal to get Enterprise field value set as Sebastien> 1.3.6.1.4.1.8072.3.2.10 instead of enterprises.11.2.29.2 (as I would Sebastien> like it to be) ? see the ./configure --help outpu

Re: table.c helper return code

2005-11-29 Thread Robert Story
On Tue, 29 Nov 2005 00:26:52 +0800 Kurapati wrote: KMG> What error should the subagent return in a GETNEXT response on a table KMG> with no rows in it? Should it be GENERR, or NO_OBJECT, or KMG> NO_SUCHINSTANE? We are using table.c helper functions in the SubAgent. It should return no error, but

Re: How to configure agent to listen on a new IPAddress without restarting it.?

2005-11-29 Thread Robert Story
On Tue, 29 Nov 2005 09:56:46 -0800 Wes wrote: WH> > On Mon, 28 Nov 2005 23:08:48 +0800, "Pamidipati Suresh-G20238" WH> > <[EMAIL PROTECTED]> said: WH> WH> Pamidipati> WIll SIGHUP not reconfigure the agent to listen on new WH> Pamidipati> IPAddress mentioned..? WH> WH> That's correct, unf

Re: Simulate un-supported mibs

2005-11-29 Thread Wes Hardaker
> On Fri, 25 Nov 2005 00:46:04 +0200, Zeev Halevi <[EMAIL PROTECTED]> said: Zeev> I want to simulate an agent which is basically a Docsis cable Zeev> modem with DS1 and DS3 functionality. It is needed for Zeev> stress-testing of an NMS that we are developing, and I was Zeev> hoping to use Net

Re: Heartbeating from Manager to sub-agent

2005-11-29 Thread Robert Story
On Mon, 28 Nov 2005 17:25:27 +0530 Suresh (Suresh) wrote: PS> I have a SNMP Manager and a SNMP agent. The SNMP Manager is under my PS> control and the SNMP Agent are being provided by some third party without PS> the source code. I want to establish a heart beat session between these two PS> e

Re: diff between 5.2 and 5.3 trains

2005-11-29 Thread Wes Hardaker
> On Mon, 21 Nov 2005 08:39:46 -0800 (PST), Stuart Kendrick <[EMAIL > PROTECTED]> said: Stuart> what's the difference between the 5.2 and the 5.3 trains? Stuart> y'all seem to be working on both of them simultaneously, which Stuart> puzzles me ... i have a linear kind of mind-set, which t

Re: netsnmp crash in netsnmp_table_array_ext_data_helper_handler

2005-11-29 Thread Robert Story
First off, please don't cross post to both lists. Pick on or the other. On Fri, 25 Nov 2005 15:03:34 +0530 Gouri wrote: GS> I am getting a crash in GS> GS> While running snmpgetnext -v 2c -t 240 -n "" -c public 192.168.4.246 GS> ifIndex.256 ifNumber.0 What release are you using? What OS? Is th

Re: Using Japanese double byte character set with snmptrapd

2005-11-29 Thread Wes Hardaker
> On Thu, 17 Nov 2005 20:40:51 +0530, "Yadav, Amit" <[EMAIL PROTECTED]> > said: Amit> Is there a way to get the output of Japanese characters from snmptrapd Amit> as a HEX dump?? If your system is set up for proper locale support then in theory I thought it should work (but I haven't dou

Re: perl bulkwalk returns incomplete data

2005-11-29 Thread Wes Hardaker
Eleni> The packets returned from Cisco do have the correct data, I Eleni> checked with tcpdump (see attached in my previous message). The Eleni> parsing from the net-snmp seems buggy as it receives complete Eleni> SNMP packets and returns incomplete varbinds in perl. Could you try 5.3.pre4 or bet

Re: truncating unsigned value to 32 bits

2005-11-29 Thread Stuart Kendrick
yup, that fixes it! --sk On Tue, 29 Nov 2005, Wes Hardaker wrote: > > On Mon, 28 Nov 2005 14:33:27 -0800 (PST), Stuart Kendrick <[EMAIL > > PROTECTED]> said: > > Stuart> "truncating unsigned value to 32 bits" > > Stuart> when i grab this one particular variable, i see the above > Stua

Re: mib2c - license question

2005-11-29 Thread Wes Hardaker
> On Tue, 15 Nov 2005 18:14:05 +0100 (CET), Barbara Kuriata <[EMAIL > PROTECTED]> said: Barbara> I have a question about copyright of the code generated by Barbara> the mib2c tool. I know that the existing net-snmp code is Barbara> protected by the BSD like license (like it is explained

Re: question about snmp trap receiver implementation

2005-11-29 Thread Robert Story
On Fri, 25 Nov 2005 10:10:36 + Dave wrote: DS> > maybe my question leads a mistake : to tell the truth, I don't DS> > want to parse snmp trap message from raw socket, I just want to DS> > use net-snmp to get a structure variable and the structure is DS> > filled the trap information. [...]

Re: Reproducing Man Pages in our manual

2005-11-29 Thread Wes Hardaker
> On Fri, 11 Nov 2005 16:25:40 -0800, "Pete Roebber" <[EMAIL PROTECTED]> > said: Pete> We would like to include this and several other man pages in their Pete> entirety, including a link to the relevant page on your site so the Pete> reader can have immediate access to the material and al

Re: command line options vs. snmp.conf

2005-11-29 Thread Wes Hardaker
> On Thu, 10 Nov 2005 09:17:05 +, Dave Shield <[EMAIL PROTECTED]> said: >> The output formatting options that I specify on the command line do >> not appear to override the options found in my ~/.snmp/snmp.conf >> file. if I remove oidOutputFormat from my snmp.conf file and >> specif

Re: Strange Counter behaviour

2005-11-29 Thread Robert Story
On Thu, 17 Nov 2005 11:11:07 + Tiago wrote: TFP> I'm having a very strange behaviour on some SNMP counters in some of our TFP> Switches (mostly Cisco Catalyst, 5505, etc), [...] TFP> TFP> Somehow the ifOutOctets counter seams to have been overwritten with the TFP> ifInOctets value. TFP> TFP>

Re: Problem with snmptrap

2005-11-29 Thread Wes Hardaker
> On Tue, 29 Nov 2005 09:39:37 -0800, Wes Hardaker <[EMAIL PROTECTED]> said: Andrei> snmptrap -Ddumph_send,dumpv_send,usm -e 0xbd224466-v 3 -u root -a MD5 Andrei> -A authpass -l authPriv -x DES -X privpass localhost 42 coldStart.0 Wes> 1) that engineid is not a legal one... Not that it shou

Re: SNMPGETNEXT on the last column of last row is not jumping to the next table

2005-11-29 Thread Robert Story
On Wed, 16 Nov 2005 00:09:03 +0800 Kurapati wrote: KMG> We recently migrated to NET-SNMP-5.2.1.2 from NET-SNMP-5.1.1. We are KMG> runnnig snmpd in the agentx mode. In our implementations, we are using KMG> the helpers as defined in table.c. Our implementation of the tables is KMG> as per the examp

Re: Usage of SNMP-TARGET_MIB

2005-11-29 Thread Robert Story
On Tue, 15 Nov 2005 14:52:44 +0200 Robert wrote: RI> net-snmp, version 5.2.1.2, on linux, built with support of RI> SNMP-TARGET-MIB works fine, enables to configure RI> multiple target destinations and keeps them in the configured RI> persistent file, strings per entry. RI> RI> Here I see two gene

Re: Unknown Object Identifier - HOST MIBS

2005-11-29 Thread Tam Vo
On Tue, 29 Nov 2005 08:13:11 -0800 Tam wrote: TV> The next thing I tried was TV>         snmpget -Dparse-mibs -v 1 -c public localhost TV> HOST-RESOURCES-MIB::hrSystemDate TV> TV> Then the error TV>         Error in packet TV>         Reason: (nosuchname) There is no such variable in this M

Re: snmp trap handler issue (net-snmp-5.3.pre4)

2005-11-29 Thread Holger (Woosh)
First of all, Thomas, thank you very much for pointing me towards version 5.2.2! I'd suggest to try the just released 5.2.2 which will work out of the box for you. Downloaded, compiled, tested, installed, all good - except the memory leak, which is still quite viable. Next attempt: As for 5

Re: snmp trap handler issue (net-snmp-5.3.pre4)

2005-11-29 Thread Thomas Anders
Holger (Woosh) wrote: First of all, Thomas, thank you very much for pointing me towards version 5.2.2! I'd suggest to try the just released 5.2.2 which will work out of the box for you. Downloaded, compiled, tested, installed, all good - except the memory leak, which is still quite viable.

RE: netsnmp crash in netsnmp_table_array_ext_data_helper_handler

2005-11-29 Thread Gouri Singaraju
Hi, First sorry for the copying to both the mail lists. I am running this on linux. The if implementation is our own both interfaces and ifIndex. I am using net-snmp-5.1 code and snmpd is linked to the correspondingly generated netsnmp libraries. But the compile machine shows the following even

Re: snmp trap handler issue (net-snmp-5.3.pre4)

2005-11-29 Thread Holger (Woosh)
Very good things! Downloaded, compiled, tested, installed, all good - except the memory leak, which is still quite viable. Do you have a minimal test case to reproduce this? For version <= 5.2.2: Simply install SNMPTT (www.snmptt.org) and add traphandle default /yourpath/sbin/snmptthandler

Re: net-snmp 5.2.1.2 compile issue on cygwin

2005-11-29 Thread Alex Burger
Paul Oppenheim wrote: (Not sure if I should be posting this to the coders list instead of the users list) Linking fails when compiling net-snmp-5.2.1.2 out-of-source on cygwin. gcc-3.3.3 gnu-make-3.8.0 specifically, when issuing the command: Do you get the same error with 5.2.2? Alex ---

RE: netsnmp crash in netsnmp_table_array_ext_data_helper_handler

2005-11-29 Thread Gouri Singaraju
Hi, The table_helper_handler is getting called twice and it reaches this code /* * if the agent request info has a state reference, then this is a * later pass of a set request and we can skip all the lookup stuff. * * xxx-rks: this might break for handlers which only handl

how to enable agent to return high capacity interface counters on Linux?

2005-11-29 Thread Jim Su
Hi Greeting: I would like to enable the feature on agent to return the interface extension table (IFXTable) for Linux. I read the configure file it said "tunnel Linux TUNNEL-MIB support (ifTable extension)". Is this the mib module I should include? I added --with-mib-modules

RE: SNMPGETNEXT on the last column of last row is not jumping to the next table

2005-11-29 Thread Kurapati M-G19456
On Wed, 16 Nov 2005 00:09:03 +0800 Kurapati wrote: KMG> We recently migrated to NET-SNMP-5.2.1.2 from NET-SNMP-5.1.1. We KMG> are runnnig snmpd in the agentx mode. In our implementations, we KMG> are using the helpers as defined in table.c. Our implementation of KMG> the tables is as per the e

Re: Usage of SNMP-TARGET_MIB

2005-11-29 Thread Robert Iakobashvili
Thank you, Robert Story, for your response. Do you mean, that in application X-Agent sub-agent usage of trap sending API will automatically handle (in master) all vaid entries from the SNMP-TARGET-MIB? Does it work for SNMPv3 traps as well? Thank you in advance, -- Sincerely, -

RE: how to enable agent to return high capacity interface counters on Linux?

2005-11-29 Thread Jim Su
Hi Greeting: After the search in the mail history I found the following answer and tried. But it doesn't work. My net-snmp version is 5.1.2. Could it be this version doesn't have this support? Or I missed something other than the configure option? (http://sourceforge.net/mailar

RE: table.c helper return code

2005-11-29 Thread Kurapati M-G19456
Rob, We were retuning GEN_ERR. After making the necessary changes as per your mail, I could see that GETNEXT is working properly. Thank you for your timely help!! Thanks Mahesh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Story Sent: Tuesda