[关闭]
@shjanken 2014-06-03T01:45:16.000000Z 字数 545 阅读 730

net-sump_issue

1.net-snmp安装完毕后,启动服务正常。使用 netstat 命令查看结果如下:

  1. 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测试取得本机的信息。返回正常

  1. HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (242075787) 28 days, 0:25:57.87
  2. HOST-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 在其中添加了:

  1. com2sec notConfigUser 192.168.122.0/24 public

4.之后登陆一台远程主机。使用命令snmpbulkget -v 2c -c public xxx.xxx.xxx.xx host 命令连接主机想要获取数据。但是返回

  1. Timeout: No Response from xxx.xxx.xxx.xxx

请问老师为什么不能获取远程主机的系统信息?

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注