snmp agent已经运行(通过mibbrowser可以访问),但是使用snmpget工具无法访问。
snmpget工具使用net-snmp代码在linux编译。
错误信息:
xwan@geesun-xubuntu:~/net-snmp-5.4.1/apps$ ./snmpget -v2c -c public ip 10.104.41.161 .1.3.6.1.2.1.1.5.0
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
//.......很多类似信息,省略
Cannot find module (SNMPv2-TM): At line 0 in (none)
Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none)
getaddrinfo: ip No address associated with hostname
snmpget: Unknown host (ip) (Connection timed out)