net-snmp for windows

來源:互聯網
上載者:User
 

net-snmp for windows

本來windows自己帶的那個也很好用的,但是安裝教程在“添加或刪除程式”裡添加的時候,拷貝檔案總是出錯,無法完成安裝。在*nix很流行的net-snmp其實有Windows版本的,是系統內建的snmp一個不錯的替代方案。其安裝配置過程如下:

1. 安裝從這裡下載
,我們將要把net-snmp安裝到I:/usr,安裝過程只要修改一下安裝路徑就行,其他地方一路斷行符號。2. 配置在I:/usr/etc/snmp目錄下建立一個檔案snmpd.conf,其內容如下com2sec notConfigUser default publicgroup notConfigGroup v1 notConfigUsergroup notConfigGroup v2c notConfigUserview systemview included .1.3.6.1.2.1.1view systemview included .1.3.6.1.2.1.25.1.1access notConfigGroup “” any noauth exact all none noneview all included .1 80view mib2 included .iso.org.dod.internet.mgmt.mib-2 fcview all included .1注意:這個目錄下有一個snmp.conf,不要搞混了3.配置windows服務啟動一個命令視窗,將工作目錄改到I:/usr下,執行一下I:/usr>bin/snmpd -vNET-SNMP version:  5.5Web:               http://www.net-snmp.org/Email:             net-snmp-coders@lists.sourceforge.net主檔案正常,下一步將它安裝為windows服務,執行I:/usr>registeragent.batRegistering snmpd as a service using the following additional options:.-Lf “I:/usr/log/snmpd.log”..For information on running snmpd.exe and snmptrapd.exe as a Windowsservice, see ‘How to Register the Net-SNMP Agent and Trap Daemon asWindows services’ in README.win32..請按任意鍵繼續. . .I:/usr>服務註冊成功,下面啟動net-snmpI:/usr>net start “net-snmp agent”Net-SNMP Agent 服務已經啟動成功。I:/usr>我們可以在windows的工作管理員中看到snmpd.exe這個進程。4.測試檢查一下我們的成果,在命令列視窗執行snmpwalk -v 1 -c public -m ALL 127.0.0.1其中public相當串連密鑰了,要和snmd.conf中的com2sec notConfigUser default public一致。如果一切順利,你將會看到很多資料在滾。下一步就可以cacti這樣的監控程式去抓資料畫圖了。5.參考資料http://blog.chinaunix.net/u/249/showart_1415021.htmlhttp://blog.csdn.net/podded/archive/2007/12/19/1953929.aspx

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.