我安装了两个VM,我希望从一个VM到另一个VM请求一个snmpwalk system
。对于每个VM,我有两个不同的I,但是当我编写请求snmpwalk 192.168.1.32 -v 2c -c public system
时,我会收到一个No Response from 192.168.1.32
我的snmpd
安装在192.168.1.32上。
平在两台主机之间工作得很好。
有什么问题吗?
发布于 2019-06-20 13:59:44
首先使用文本编辑器打开snmpd.conf文件(用于ex )。(纳米)
nano /etc/snmp/snmpd.conf
在开始时,取消注释agentAddress udp:161,udp6:*1:161和注释agentAddress udp:127.0.0.1:161允许外部主机检查“代理”机器。
# 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
重新启动snmpd服务
service snmpd restart
在您的管理计算机上尝试作为基本命令:
snmpwalk xxx.xxx.x.xx -v 2c -c public system
其中xxx.xxx.x.xx -是代理IP (目标机器),2c -是snmp协议版本,公共是一个社区字符串;
https://unix.stackexchange.com/questions/525981
复制相似问题