Another python problem in cygwin

2007-12-20 Thread Jack G Atkinson Jr
Okay, now that modules are loading... I can do a normal snmpget from the cygwin command prompt on a custom mib. It works great. However, if I try to do the same thing in python, it gives me an "error: get unknown object ID". Example from the prompt: snmpget -v2c -c public 192.168.15.1 adGenBrid

Re: Problem with make - net-snmp 5.4.1

2007-12-20 Thread Thomas Anders
[EMAIL PROTECTED] wrote: > ld.so.1: snmpget: fatal: libgcc_s.so.1: open failed: No such file or > directory > > I have seen your answer on google to a similar problem.. > > http://fixunix.com/snmp/171093-re-error-running-snmpget-script-crontab-s > olaris-10-a.html Now you know what copying the l

Re: Problem with python bindings and cygwin

2007-12-20 Thread Jay Atkinson
On Dec 20, 2007 2:55 PM, Jay Atkinson <[EMAIL PROTECTED]> wrote: > > On Dec 20, 2007 10:45 AM, Dave Shield <[EMAIL PROTECTED]> wrote: > > On 20/12/2007, Jack G Atkinson Jr <[EMAIL PROTECTED]> wrote: > > > parse-mibs: Scanning directory > > > /home/.snmp/mibs:/usr/local/share/snmp/mibs > > > parse

add data to table_data.conf code

2007-12-20 Thread Kuczynski, Edward
Hi, New to netsnmp, but have used other snmp toolkits. I have a simple 1 index read-only table which will get its data from reading a file(for now). I used mib2c table_data.conf Xtable to create the code. I see a comment to "initialize the contents of the table here", but am not sure how to do

Re: Problem with python bindings and cygwin

2007-12-20 Thread Jay Atkinson
On Dec 20, 2007 10:45 AM, Dave Shield <[EMAIL PROTECTED]> wrote: > On 20/12/2007, Jack G Atkinson Jr <[EMAIL PROTECTED]> wrote: > > parse-mibs: Scanning directory > > /home/.snmp/mibs:/usr/local/share/snmp/mibs > > parse-mibs: cannot open MIB directory > > /home/.snmp/mibs:/usr/local/snmp/mibs >

RE: Problem with python bindings and cygwin

2007-12-20 Thread Mike Ayers
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Jay Atkinson > Sent: Thursday, December 20, 2007 12:46 PM > That worked. Dollars get you donuts you're running the Win32 net-snmp from within cygwin. Mike ---

Re: Problem with python bindings and cygwin

2007-12-20 Thread Jay Atkinson
On Dec 20, 2007 9:32 AM, Dave Shield <[EMAIL PROTECTED]> wrote: > On 20/12/2007, Jack G Atkinson Jr <[EMAIL PROTECTED]> wrote: > > Here's the output. > > parse-mibs: Scanning directory > > /home/.snmp/mibs:/usr/local/share/snmp/mibs > > parse-mibs: cannot open MIB directory > > /home/.

Re: [Fwd: Re: Q: how to create a simple agent deals with scalars]

2007-12-20 Thread Xuan Pan
Sorry I didn't paste the object ID but I did in my test. (snmpget -v1 -c public localhost MY-MIB::serverPort) <-serverPort is the integer that I am querying snmpgetnext -v 1 -c public localhost ip snmpgetnext -v 1 -c public localhost .1.3.6.1.4 They too return noSuchName errors. I have done more

Re: Problem with make - net-snmp 5.4.1

2007-12-20 Thread Thomas Anders
[EMAIL PROTECTED] schrieb: > This is how it is failing... > > 56: testing uptime using HOST-RESOURCES... Killed > FAIL Please have a look into /tmp/snmp-test-56-*/* for the actual error. +Thomas -- Thomas Anders (thomas.anders at blue-cable.de)

Re: [Fwd: Re: Q: how to create a simple agent deals with scalars]

2007-12-20 Thread Dave Shield
On 20/12/2007, Xuan Pan <[EMAIL PROTECTED]> wrote: > ran snmpget -v1 -c public localhost ... That will definitely fail, since you haven't supplied an object to retrieve. What does snmpgetnext -v 1 -c public localhost ip return? What about snmpgetnext -v 1 -c public localhost .1.3.6.1.4

[Fwd: Re: Q: how to create a simple agent deals with scalars]

2007-12-20 Thread Xuan Pan
After reading the FAQs, I know I am not supposed to use the same community string for both rwcommunity and rocommunity. But it doesn't help me to get rid of the noSuchName error. Another strange thing is, the return value from snmpget localhost netSnmpExampleInteger.0 (from scalar_int.c sample) i

Re: Problem with python bindings and cygwin

2007-12-20 Thread Dave Shield
On 20/12/2007, Jack G Atkinson Jr <[EMAIL PROTECTED]> wrote: > parse-mibs: Scanning directory > /home/.snmp/mibs:/usr/local/share/snmp/mibs > parse-mibs: cannot open MIB directory > /home/.snmp/mibs:/usr/local/snmp/mibs Could you please try applying the attached patch, re-run configure, and reco

Re: Problem with python bindings and cygwin

2007-12-20 Thread Thomas Anders
Jack G Atkinson Jr schrieb: > Here's the output. > parse-mibs: Scanning directory /home/.snmp/mibs:/usr/local/share/snmp/mibs > parse-mibs: cannot open MIB directory /home/.snmp/mibs:/usr/local/snmp/mibs Can you try ";" as the delimiter? (Caveat: I'm not using Windows.) +Thomas -- Thomas And

Re: Problem with python bindings and cygwin

2007-12-20 Thread Dave Shield
On 20/12/2007, Jack G Atkinson Jr <[EMAIL PROTECTED]> wrote: > Here's the output. > parse-mibs: Scanning directory > /home/.snmp/mibs:/usr/local/share/snmp/mibs > parse-mibs: cannot open MIB directory > /home/.snmp/mibs:/usr/local/snmp/mibs Hmmm that looks suspiciously as if it

Re: Problem with python bindings and cygwin

2007-12-20 Thread Jack G Atkinson Jr
Jack G Atkinson Jr wrote: > Dave Shield wrote: >> On 20/12/2007, Jack G Atkinson Jr <[EMAIL PROTECTED]> wrote: >> >>> However, on another machine where I freshly installed >>> cygwin, python, and netsnmp(compiled & installed), I get an error >>> message about not being able to find MIBs. >

Re: Problem with python bindings and cygwin

2007-12-20 Thread Jack G Atkinson Jr
Dave Shield wrote: > On 20/12/2007, Jack G Atkinson Jr <[EMAIL PROTECTED]> wrote: > >> However, on another machine where I freshly installed >> cygwin, python, and netsnmp(compiled & installed), I get an error >> message about not being able to find MIBs. >> >> Cannot find module (IP-MIB):

Re: [snmp agnet] Cannot find module (IP-MIB)

2007-12-20 Thread Dave Shield
On 20/12/2007, Tako Chang <[EMAIL PROTECTED]> wrote: > Do you mean that I should put mib files into /usr/local/share/snmp/mibs/ > at my target system and the snmpd will reference them when start up? Yes. Assuming that is where the library is configured to look. Dave -

Re: [snmp agnet] Cannot find module (IP-MIB)

2007-12-20 Thread Tako Chang
> > > > Cannot find module (IP-MIB): At line 0 in (none) > > Cannot find module (IF-MIB): At line 0 in (none) > > That looks as if the MIB files have not been properly installed. > How did you install your recompiled agent? >a (top level) "make install" should install the MIB files > automatic

Re: Q: how to create a simple agent deals with scalars

2007-12-20 Thread Xuan Pan
Thanks for your answers. I only have rocommunity public and rwcommunity public in my snmpd.conf file. There are no other access control settings. Could this be a problem? My initScalar(void) is simply a copy of the example code, init_scalar_int which has a static variable and an oid instance defi

Re: Q: how to create a simple agent deals with scalars

2007-12-20 Thread Dave Shield
On 20/12/2007, Xuan Pan <[EMAIL PROTECTED]> wrote: > I wrote an extension agent that deals with a single integer object defined > in my MIB file by referencing the sample of scalar_int.c > (http://www.net-snmp.org/dev/agent/scalar__int_8c-example.html) > > The problem is I keep getting the error, "

SNMPD not responding sometimes even though it is up and running

2007-12-20 Thread Sekhar Reddy Ravi-G20226
> Hi All, > > Sometimes SNMPD is not responding to snmp requests even though it is > up and running, SNMPD is queuing all the requests without processing > as netsnmp_processing_set and agent_delegated_list are not getting > unset. However SNMPD is able to send traps originated by subagent. >

Q: how to create a simple agent deals with scalars

2007-12-20 Thread Xuan Pan
Hi, I wrote an extension agent that deals with a single integer object defined in my MIB file by referencing the sample of scalar_int.c (http://www.net-snmp.org/dev/agent/scalar__int_8c-example.html) The problem is I keep getting the error, "(noSuchName) There is no such variable name in the MIB"

Test mail

2007-12-20 Thread Sekhar Reddy Ravi-G20226
- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/m

Re: Re :Re: Urgent: Unable to generate code for notification object having table objects in var bind

2007-12-20 Thread Dave Shield
On 20 Dec 2007 06:21:08 -, vishal_nitr <[EMAIL PROTECTED]> wrote: > Hi Dave, > Sorry to say but I didn't get what exactly you are trying to say. > Can you explain more on it. You say that you want to send a trap containing table objects. This typically means that when something happens r

Re: Problem with python bindings and cygwin

2007-12-20 Thread Dave Shield
On 20/12/2007, Jack G Atkinson Jr <[EMAIL PROTECTED]> wrote: > However, on another machine where I freshly installed > cygwin, python, and netsnmp(compiled & installed), I get an error > message about not being able to find MIBs. > > Cannot find module (IP-MIB): At line 0 in (none)... > > I v

netsnmp_assert 1==_locks

2007-12-20 Thread Andrew Ragusa
Hey guys Does anyone know why I keep getting this message? netsnmp_assert 1==_locks[major][minor] failed callback.c:126 _callback_lock() _callback_lock already locket in snmp_call_callbacks It is a threaded application and I am using the single session C api calls. All snmp sessions are in