1

I have two VMs installed and I want to request a snmpwalk system from one VM to another. I have two different IPs for each VM but when I write my request snmpwalk 192.168.1.32 -v 2c -c public systemI receive a No Response from 192.168.1.32

I have my snmpd installed on 192.168.1.32.

Ping works perfectly between the two hosts.

What is the problem?

  • Can you ping from one to the other? Ssh from one to the other? – roaima Jun 20 '19 at 8:09
  • yes, ping works perfectly – Dmitrii Trubetskoy Jun 20 '19 at 8:10
  • Is snmp on the target configured to respond with version 2c to the "public" authenticator? – roaima Jun 20 '19 at 8:12
  • Sorry I don't know. Can you please guide me how can I do that? Thank you. – Dmitrii Trubetskoy Jun 20 '19 at 8:18
  • Start by looking at the snmpd.conf on your server – roaima Jun 20 '19 at 12:18
1

First open snmpd.conf file with text editor (for ex. nano)

nano /etc/snmp/snmpd.conf

At the very beginning uncomment agentAddress udp:161,udp6:[::1]:161 and comment agentAddress udp:127.0.0.1:161 allowing the "agent" machine to be checked by external hosts

#  Listen for connections from the local system only
#agentAddress  udp:127.0.0.1:161
#  Listen for connections on all interfaces (both IPv4 *and* IPv6)
agentAddress udp:161,udp6:[::1]:161

Restart snmpd service

service snmpd restart

Try as a basic command on your manager machine:

snmpwalk xxx.xxx.x.xx -v 2c -c public system 

where xxx.xxx.x.xx - is IP of agent (target machine), 2c - is a snmp protocol version, public is a community string;

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.