LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-12-2008, 10:05 AM   #1
exceed1
Member
 
Registered: Mar 2008
Location: oslo
Distribution: debian,redhat
Posts: 199

Rep: Reputation: 31
Getting timeout when running snmpwalk against localhost


Hi

I have installed the net-snmp and net-snmp-utils via yum. When i run the following command:
snmpwalk -v 2c -c public localhost .
or
snmpwalk -v 1 -c public localhost .
..i get the message:
"Timeout: No Response from localhost"

The snmpd daemon is running, so it dont understand why this isnt working. I have looked at this url:
http://www.net-snmp.org/FAQ.html#Req...ng_back___Why_
where this is listed:
"There are three basic possibilities:
- the agent has crashed
- it is hanging
- it is temporarily overloaded"

But i have restarted the agent to see if that could be what was wrong, it doesnt seem to be hanging and it not overloaded in any way from what i can see..its only going to be used for testing purposes.

Does someone know why im getting a timeout when using snmpwalk here? I get the same error when using snmpget. Help is appericiated.
 
Old 06-12-2008, 02:15 PM   #2
mtimbro
Member
 
Registered: Feb 2008
Location: Montreal, Canada
Distribution: RedHat 3/4, Ubuntu 7.10
Posts: 86

Rep: Reputation: 15
Have a look at your /etc/selinux/config file...Is it enabled ?

If so, do:

>setenforce 0

And change 'enforcing' to 'disabled' in the file.

Also, it could be iptables...Turn it off by doing:

>/etc/init.d/iptables stop

Try your walk now, see if it works.
 
Old 06-13-2008, 05:22 AM   #3
exceed1
Member
 
Registered: Mar 2008
Location: oslo
Distribution: debian,redhat
Posts: 199

Original Poster
Rep: Reputation: 31
Is what enabled ? ..What do you mean.

Here is the contents of the config file in /etc/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted

# SETLOCALDEFS= Check local definition changes
SETLOCALDEFS=0
 
Old 06-13-2008, 08:40 AM   #4
exceed1
Member
 
Registered: Mar 2008
Location: oslo
Distribution: debian,redhat
Posts: 199

Original Poster
Rep: Reputation: 31
problem solved, there was a config error in the snmpd config.
 
Old 02-18-2010, 09:41 AM   #5
sahilmakkar1983
LQ Newbie
 
Registered: Feb 2010
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by exceed1 View Post
problem solved, there was a config error in the snmpd config.

What was mis configured. I am getting same problem.
 
Old 02-01-2013, 05:14 PM   #6
dcloes
LQ Newbie
 
Registered: Feb 2013
Posts: 1

Rep: Reputation: Disabled
Lightbulb

Quote:
Originally Posted by sahilmakkar1983 View Post
What was mis configured. I am getting same problem.
I was having this issue and registered so I could post what my problem/fix was.... was a real...Duh!

in the snmpd.conf file, the previous admin, for security had added a subnet to the rocommunity line, so it looked like this:

rocommunity public 10.20.35.58/24

To fix it, I can either remove the subnet, or add a second line that reads

rocommunity public localhost

Both worked for my issue.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
snmpwalk Timeout: No Response from host thedonkdonk Linux - Software 1 11-27-2007 03:49 PM
snmpwalk to remote address gives timeout manish_2479 Linux - Networking 3 06-16-2007 02:37 AM
sendmail - deferred: localhost connection timeout yukinK Linux - Newbie 2 05-18-2007 12:56 PM
snmpwalk ok from localhost; fails from other hosts deadeyes Ubuntu 2 03-16-2007 02:09 AM
snmpwalk timeout issue rinky4linux Linux - Networking 1 09-14-2006 06:29 AM


All times are GMT -5. The time now is 02:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration