LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-27-2018, 10:05 AM   #1
picklehead
Member
 
Registered: Jun 2018
Posts: 61

Rep: Reputation: Disabled
Can't snmpwalk my Linux box


Hi,

I have a CentOS system and I just recently installed net-snmp and net-snmp-utils.

I set up a basic snmpd.conf file with basically the community string as "public" and restarted the service.

Locally I can run snmpwalk -v 1 localhost -c public system and get a nice blast of snmp data out put.

I can do the same with snmpwalk -v 2c -c public localhost system.

Now when I try these commands from another (monitoring system), i.e. to do an snmpwalk on my centOS box, I get:

Timeout: No response from 192.0.5.142 <---my CentOS box).

I can ping from that monitoring server to my CentOS box. I can ssh. If it's a port problem then I should have been able to get snmp data even when running the command locally on the CentOS box, right?

Incidentally I can successfully get snmpwalk data from other systems on the 192.0.5.X network when I execute the command on the monitoring/management box.

Thanks for any help.
 
Old 11-27-2018, 10:11 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,813

Rep: Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003
Quote:
Originally Posted by picklehead View Post
Hi,
I have a CentOS system and I just recently installed net-snmp and net-snmp-utils. I set up a basic snmpd.conf file with basically the community string as "public" and restarted the service. Locally I can run snmpwalk -v 1 localhost -c public system and get a nice blast of snmp data out put.

I can do the same with snmpwalk -v 2c -c public localhost system.

Now when I try these commands from another (monitoring system), i.e. to do an snmpwalk on my centOS box, I get:

Timeout: No response from 192.0.5.142 <---my CentOS box).

I can ping from that monitoring server to my CentOS box. I can ssh. If it's a port problem then I should have been able to get snmp data even when running the command locally on the CentOS box, right? Incidentally I can successfully get snmpwalk data from other systems on the 192.0.5.X network when I execute the command on the monitoring/management box.
Nope; doing it locally will work, even if there is a firewall/iptables rule blocking it from the network. Since you've ruled out a config problem with SNMP on that box, can walk it locally, and have ruled out network issues with that VLAN, check the firewall/iptables rules. Since it's a new installation (you don't say what version), it may have shoved rules out there automatically at build time.
 
Old 11-30-2018, 03:28 PM   #3
RickDeckard
Member
 
Registered: Jan 2014
Location: Canton, Georgia, USA
Distribution: Debian 12
Posts: 205

Rep: Reputation: Disabled
I recommend running TShark on one or both of the machines, see where your SNMP commands are going.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
My raspbian box have to ping other box first then other host can see my box jtingkir Linux - Networking 10 08-09-2013 07:53 AM
How can I trick snmpwalk into thinking my server has glibc 2.5? abefroman Linux - Server 1 01-23-2009 01:25 AM
snmpwalk st3reo Linux - Networking 3 11-19-2004 07:56 AM
snmpwalk error: OID not increasing toships Linux - Wireless Networking 2 03-20-2004 12:02 PM
snmpwalk in redhat 9.0 rawson_fang Linux - Software 0 08-07-2003 04:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:16 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
Open Source Consulting | Domain Registration