RE: Timeout: No Response from localhost.

2007-12-21 Thread Smith_Randy
Good news: I found the problem with the snmpd.conf file that was in question. There was a line at the bottom of the file, which I overlooked, as follows: #agentaddress 161 agentaddress 1161 I uncommented out the 'agentaddress 161' and commented out the 'agentaddress 1161' and now the snmpget

RE: Timeout: No Response from localhost.

2007-12-21 Thread Smith_Randy
Dave, Getting back to you on the packets that you requested When I run using the snmpd.conf file I generated (the one that works), I didn't see much in the way of packets. The first output below will show this. However, further below, you'll see the output of packets from using the snmpd.conf

Re: Timeout: No Response from localhost.

2007-12-21 Thread Dave Shield
On 21/12/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > FYI, the results of this startup are as follows: > > # . ./startup > 1513 > Simple Test > DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (176) 0:00:01.76 > When I run the 'startup' script using my coworker's snmpd.conf file, I > get

RE: Timeout: No Response from localhost.

2007-12-21 Thread Smith_Randy
P.S The result I posted in the previous email of running the 'startup' script were results using the snmpd.conf file that I generated. When I run the 'startup' script using my coworker's snmpd.conf file, I get the following results: # . ./startup 1523 Simple Test Timeout: No Response from localh

RE: Timeout: No Response from localhost.

2007-12-21 Thread Smith_Randy
Silly me! For the snmpd.conf file I generated it's not: rocommunity public .1.3.6.1.2.1.1 but rather: rocommunity whatever And the snmpget -c command works fine. But when I use the snmpd.conf file my coworkder generated (in original email) using community 'whatever' also, I get the timeout.

Re: Timeout: No Response from localhost.

2007-12-21 Thread Dave Shield
On 21/12/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > fyi, the conf file pasted earlier is one that a coworker devised on AIX > using the snnpconf. However, interestingly, when I use the following > snmpd.conf that I generated myself on Solaris, the 'snmpget -c ' > works fine. Using wh

RE: Timeout: No Response from localhost.

2007-12-21 Thread Smith_Randy
Thanks Ed/Dave fyi, the conf file pasted earlier is one that a coworker devised on AIX using the snnpconf. However, interestingly, when I use the following snmpd.conf that I generated myself on Solaris, the 'snmpget -c ' works fine. Also, following the 'good' snmpd.conf file, Dave you will see

Re: Timeout: No Response from localhost.

2007-12-21 Thread Dave Shield
On 21/12/2007, Kuczynski, Edward <[EMAIL PROTECTED]> wrote: > We ran into a problem having both readonly and r/w in the conf file for v2. > It wouldn't hurt to comment out the r/w and try again. Would you care to expand on the problem you were seeing? The usual issue with rw/ro clashes is when yo

RE: Timeout: No Response from localhost.

2007-12-21 Thread Kuczynski, Edward
We ran into a problem having both readonly and r/w in the conf file for v2. It wouldn't hurt to comment out the r/w and try again. Just a thought. Ed -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, December 21, 2007 1:01 PM

Re: Timeout: No Response from localhost.

2007-12-21 Thread Dave Shield
On 21/12/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I was wondering if someone could take a quick look at my conf file below > and see why when I do the following: > > /opt/emc/dist/local/usr/bin/snmpget -v 1 -c whatever localhost > SNMPv2-MIB::sysUpTime.0 > > I get the following error me

Timeout: No Response from localhost.

2007-12-21 Thread Smith_Randy
Hi, I was wondering if someone could take a quick look at my conf file below and see why when I do the following: /opt/emc/dist/local/usr/bin/snmpget -v 1 -c whatever localhost SNMPv2-MIB::sysUp Time.0 I get the following error message: Timeout: No Response from localhost. This is assuming of

RE: Snmptrapd 5.4.1 seems to ignore the -t flag

2007-12-21 Thread Mike Ayers
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Thomas Elsgaard > Sent: Friday, December 21, 2007 1:46 AM > When i am starting snmptrapd with the -t flag like this: > > /usr/local/sbin/snmptrapd -t -m ALL -n -Ls 7 -p > /usr/local/sbin/snmptrapd.pid > > Then i am still get

Re: Problem in KeyChange.

2007-12-21 Thread Dave Shield
On 21/12/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I am using AdventNet SNMP API. This list is for discussion of the Net-SNMP toolkit. If you have a query about the AdventNet implementation, then you should contact them directly. We cannot provide support for other vendors' products.

Problem in KeyChange.

2007-12-21 Thread ravikumar1984
Hi All, I am using AdventNet SNMP API. I have implemented to AES256 which is explained in the Internet Draft http://tools.ietf.org/html/draft-blumenthal-aes-usm-04. Then I am successfully query the agent with user is configured with AES256, the privacy key is 32 octets length. But the probl

Re: Another python problem in cygwin

2007-12-21 Thread Dave Shield
On 21/12/2007, Jack G Atkinson Jr <[EMAIL PROTECTED]> wrote: >> It sounds suspiciously as if the python inferface can't find the MIB >> definitions. Where is this file installed? > > Do you mean the python file that has the OID? No - the MIB file that defines the object adGenBridgeName. Probably

RE: Can't snmp anything (timeout) snmpd -f -Le error message

2007-12-21 Thread Kuczynski, Edward
On issue I see is the bind failed, so do you already have something running on that socket? And the duplicate registration is another problem. I'd run ps -eaf |grep snmpd and kill -9 all of them and manually restart. Look at your snmpd.conf file for the public entry. Make sure you don't have th

Can't snmp anything (timeout) snmpd -f -Le error message

2007-12-21 Thread Bryant Valencia
I just installed NET-SNMP for the first time but can't seem to poll anything from my sun server. I've been reading the how-to from http://net-snmp.sourceforge.net/docs/README.solaris.html and http://chinaitpower.com/2005September/2005-09-13/208314.html but can't seem to find the reason why i'm

Re: Another python problem in cygwin

2007-12-21 Thread Jack G Atkinson Jr
Dave Shield wrote: > On 21/12/2007, Jack G Atkinson Jr <[EMAIL PROTECTED]> wrote: > >> What happens if you use >> >> var = >> Varbind('ADTRAN-GENERIC-BRIDGE-MIB::adGenBridgeName.23940101') >> >> What about a fully numeric OID? >> >> When I used the one you suggested, it does the same thing: u

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

2007-12-21 Thread Xuan Pan
Everything seems to work now. My extension agent also works. It didn't work yesterday because my init function name didn't comply with the init_FILENAME rule. Thank you so much. Cheers /Pan > On 21/12/2007, Xuan Pan <[EMAIL PROTECTED]> wrote: >> > OK. >> > Just to confirm - does >> >"snmpget

Re: Another python problem in cygwin

2007-12-21 Thread Dave Shield
On 21/12/2007, Jack G Atkinson Jr <[EMAIL PROTECTED]> wrote: > What happens if you use > > var = > Varbind('ADTRAN-GENERIC-BRIDGE-MIB::adGenBridgeName.23940101') > > What about a fully numeric OID? > > When I used the one you suggested, it does the same thing: unknown. > The numeric oid works,

Re: Another python problem in cygwin

2007-12-21 Thread Jack G Atkinson Jr
Dave Shield wrote: > On 21/12/2007, Jack G Atkinson Jr <[EMAIL PROTECTED]> wrote: > >> var = Varbind('adGenBridgeName.23940101') >> snmpget(var,Version=2,DestHost='192.168.15.1',Community='public') >> error: get: unknown object ID (adGenBridgeName.23940101) >> > > What happens if you use >

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

2007-12-21 Thread Dave Shield
On 21/12/2007, Xuan Pan <[EMAIL PROTECTED]> wrote: > > OK. > > Just to confirm - does > >"snmpgetnext -v 1 -c public localhost ip" > > > > still return a noSuchName error? > > This one seems to work. Good - that seems to be a change from earlier. What happens if you try to query your extensio

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

2007-12-21 Thread Xuan Pan
> OK. > Just to confirm - does >"snmpgetnext -v 1 -c public localhost ip" > > still return a noSuchName error? > This one seems to work. It returns IP-MIB::ipForwarding.0 = INTEGER: notForwarding(2) and snmpget -v 1 -c public localhost ipForwarding.0 also works (but not the object ipForwardi

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

2007-12-21 Thread Dave Shield
On 21/12/2007, Xuan Pan <[EMAIL PROTECTED]> wrote: > You are right on the point that it did have a vendor supplied agent from > SUSE. I tried to uninstall it by rpm -e net-snmp. But it some other > libraries were dependent on net-snmp. So I tried to remove it without > considering the dependency by

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

2007-12-21 Thread Xuan Pan
You are right on the point that it did have a vendor supplied agent from SUSE. I tried to uninstall it by rpm -e net-snmp. But it some other libraries were dependent on net-snmp. So I tried to remove it without considering the dependency by rpm -e --nodeps net-snmp. That command succeeded. I am not

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

2007-12-21 Thread Dave Shield
On 21/12/2007, Xuan Pan <[EMAIL PROTECTED]> wrote: > To start up the daemon I use: > /usr/local/sbin/snmpd -d -Le Can you please try using /usr/local/sbin/snmpd -f -Le instead. Shut down the agent, then restart it using this command. What output do you see? > I think the snmpd.conf file us

Snmptrapd 5.4.1 seems to ignore the -t flag

2007-12-21 Thread Thomas Elsgaard
Hello net-snmp users When i am starting snmptrapd with the -t flag like this: /usr/local/sbin/snmptrapd -t -m ALL -n -Ls 7 -p /usr/local/sbin/snmptrapd.pid Then i am still getting the traps into syslog-ng How can that be? ///Thomas ---

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

2007-12-21 Thread Xuan Pan
To start up the daemon I use: /usr/local/sbin/snmpd -d -Le I think the snmpd.conf file used by the daemon should be located in /usr/local/share/snmp/snmpd.conf which contains the following information: rocommunity public rwcommunity private sysservice 79 One thing I found out this morning that I

RE: Bad operator (♥): At line 1 i n /opt/emc/dist/local/usr/share/sn mp/mibs

2007-12-21 Thread Smith_Randy
Ok, thank you again. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Wednesday, December 19, 2007 4:03 AM To: Smith, Randy Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Bad operator (♥): At line 1 in /opt/emc/dist/local/usr/

RE: Problem with make - net-snmp 5.4.1

2007-12-21 Thread dave.goodman
Thomas, this shows (hope this means something) more snmp-test-56-*/* :: snmp-test-56-1284/invoked :: snmpd -d -r -U -p /tmp/snmp-test-56-1284/snmpd.pid -Lf /tmp/snmp-test-56-1284/snmpd.log -C -c /tmp/snmp-test-56-1284/snmpd.conf udp:localhost:8767 snmpget -On -d -c

Re: Another python problem in cygwin

2007-12-21 Thread Dave Shield
On 21/12/2007, Jack G Atkinson Jr <[EMAIL PROTECTED]> wrote: > var = Varbind('adGenBridgeName.23940101') > snmpget(var,Version=2,DestHost='192.168.15.1',Community='public') > error: get: unknown object ID (adGenBridgeName.23940101) What happens if you use var = Varbind('ADTRAN-GENERIC-BRIDGE-M

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

2007-12-21 Thread Dave Shield
On 20/12/2007, Xuan Pan <[EMAIL PROTECTED]> wrote: > snmpgetnext -v 1 -c public localhost ip > snmpgetnext -v 1 -c public localhost .1.3.6.1.4 > They too return noSuchName errors. Then this is almost certainly an access control problem. The agent that you are running is probably picking up a vendo