@shjanken
2014-06-03T01:45:16.000000Z
字数 545
阅读 730
1.net-snmp安装完毕后,启动服务正常。使用 netstat 命令查看结果如下:
udp 0 0 0.0.0.0:161 0.0.0.0:* 28434/snmpd
2.之后安装net-snmp-utils 使用 snmpbulk -v 2c -c public localhost host测试取得本机的信息。返回正常
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (242075787) 28 days, 0:25:57.87HOST-RESOURCES-MIB::hrSystemUptime.0 = No more variables left in this MIB View (It is past the end of the MIB tree)
3.之后修改了配置文件/etc/snmp/snmpd.conf 在其中添加了:
com2sec notConfigUser 192.168.122.0/24 public
4.之后登陆一台远程主机。使用命令snmpbulkget -v 2c -c public xxx.xxx.xxx.xx host 命令连接主机想要获取数据。但是返回
Timeout: No Response from xxx.xxx.xxx.xxx
请问老师为什么不能获取远程主机的系统信息?
