[問題] snmp 執行後snmpwalk 一直 Timeout

看板FreeBSD作者 ( )時間20年前 (2005/09/27 10:48), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
最下面我有附上安裝後提示大大可以參考 這二天在安裝這個東西 不過我一直有疑惑的是 到底他的設定檔是要再 /etc/snmp /usr/local/etc/snmp /var/snmp 到底是哪一個 我有直接使用 snmpconf 這一個工具去生成 snmp.conf 檔 不過往往啟動正常 不過接下來就有問題 訊息如下: root [/var/net-snmp] # /usr/local/etc/rc.d/snmpd.sh restart snmpd not running? (check /var/run/snmpd.pid). Starting snmpd. root [/var/net-snmp] # snmpwalk -c public -v 1 localhost Timeout: No Response from localhost root [/var/net-snmp] # 當然我也有試過 用 -t 將時間延長 不過都沒有用 我已經 -t 120也是沒有用 還是一樣 Timeout: No Response from localhost 所以我想問問前輩 有沒有什麼指點的方法 若是需要的話 我在貼出我的 snmpd.conf **************************************************************************** * 安 裝 後 說 明 * **************************************************************************** **** This port installs snmp daemon, header files and libraries but don't invokes snmpd by default. If you want to invoke snmpd and/or snmptrapd at startup, put these lines into /etc/rc.conf. snmpd_enable="YES" snmpd_flags="-a -p /var/run/snmpd.pid" snmptrapd_enable="YES" snmptrapd_flags="-a -p /var/run/snmptrapd.pid" **** You may specify the following make variables: NET_SNMP_SYS_CONTACT="kuriyama@FreeBSD.org" NET_SNMP_SYS_LOCATION="Tokyo, Japan" DEFAULT_SNMP_VERSION=3 NET_SNMP_MIB_MODULES="host smux mibII/mta_sendmail ucd-snmp/diskio" NET_SNMP_LOGFILE=/var/log/snmpd.log NET_SNMP_PERSISTENTDIR=/var/net-snmp to define default values (or overwriting defaults). At least setting first two variables, you will not be prompted during configuration process. You may also set BATCH="yes" to avoid interactive configuration. ===> Compressing manual pages for net-snmp-5.2.1.2 ===> Running ldconfig /sbin/ldconfig -m /usr/local/lib ===> Registering installation for net-snmp-5.2.1.2 ===> SECURITY REPORT: This port has installed the following files which may act as network servers and may therefore pose a remote security risk to the system. /usr/local/lib/libnetsnmp.so.7 /usr/local/lib/libnetsnmpmibs.so.7 This port has installed the following startup scripts which may cause these network services to be started at boot time. /usr/local/etc/rc.d/snmptrapd.sh /usr/local/etc/rc.d/snmpd.sh If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://net-snmp.sourceforge.net/ 467.173u 162.271s 11:34.03 90.6% 1134+1816k 2350+318io 1080pf+0w -- 分享讓你我都可以享受到資源 http://holyhigh.org/ 讓我們一同喜愛這貼圖空間 喜歡他的話 別忘了推薦給大家... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.104.64.8
文章代碼(AID): #13EBCOAZ (FreeBSD)
文章代碼(AID): #13EBCOAZ (FreeBSD)