RE: Timeout: No Response from localhost.

This is a discussion on RE: Timeout: No Response from localhost. within the SNMP Users forums, part of the Networking and Network Related category; Silly me! For the snmpd.conf file I generated it's not: rocommunity public .1.3.6.1.2.1....


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-21-2007
Smith_Randy@emc.com
 
Posts: n/a
Default RE: Timeout: No Response from localhost.

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.

Dave, I have spent most of the day alternating these two conf file and
starting and restarting snmpd and the results are the same - the snmpget
times out using my coworkers snmpd.conf but works fine using mine. But
for the one I generated ( using 'rocommunity whatever' also), it works
fine.

In each case I am starting the agent on Solaris 9 using the following
startup script:

================================================== ======================
===============

stty erase

PATH=$PATH:/opt/emc/dist/local/usr/bin
PATH=$PATH:/opt/emc/dist/local/usr/sbin
PATH=$PATH:/usr/local/bin
export PATH
MIBDIRS=/opt/emc/dist/local/usr/share/snmp/mibs
export MIBDIRS
snmpd&
echo "Simple Test"
/opt/emc/dist/local/usr/bin/snmpget -v 1 -c whatever localhost
SNMPv2-MIB::sysUp
Time.0
mount lsca2055:/opt/SUNWspro /opt/SUNWspro
PATH=$PATH:/opt/SUNWspro/bin
export PATH

LD_LIBRARY_PATH=/opt/emc/dist/local/usr/lib
export LD_LIBRARY_PATH

================================================== ======================
================

FYI, the results of this startup are as follows:

# . ./startup
1513
Simple Test
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (176) 0:00:01.76
Now mounting
nfs mount: mount: /opt/SUNWspro: Device busy
#



-----Original Message-----
From: dave.shield@googlemail.com [mailto:dave.shield@googlemail.com] On
Behalf Of Dave Shield
Sent: Friday, December 21, 2007 4:16 PM
To: Smith, Randy
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Timeout: No Response from localhost.

On 21/12/2007, Smith_Randy@emc.com <Smith_Randy@emc.com> 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 which community? "public" or "private"?

Because I wouldn't expect the entry
rocommunity public .1.3.6.1.2.1.1
to work (since it's missing the network source field, which
should come before the OID)


> Also, following the 'good' snmpd.conf file, Dave you will
> see the output from the snmpd -f -Le -Dread_config -d' using the
> snmpd.conf file that my coworker generated.


Hmmm....
That output looks OK at first sight.

Do you see the packet dump output when you make the query?


Can you confirm that the two "snmpget" requests are
effectively identical (run from the same host, with exactly
the same parameters, apart from the community string)?
i.e.
/opt/emc/dist/local/usr/bin/snmpget -v 1 -c private
localhost SNMPv2-MIB::sysUpTime.0
(with the working config)
and
/opt/emc/dist/local/usr/bin/snmpget -v 1 -c whatever
localhost SNMPv2-MIB::sysUpTime.0
(with the broken config)


How are you starting the two agents?
What's the exact command you use in each case?

Dave


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:19 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0