如何在各系統(tǒng)平臺配置SNMP.docx_第1頁
如何在各系統(tǒng)平臺配置SNMP.docx_第2頁
如何在各系統(tǒng)平臺配置SNMP.docx_第3頁
如何在各系統(tǒng)平臺配置SNMP.docx_第4頁
如何在各系統(tǒng)平臺配置SNMP.docx_第5頁
已閱讀5頁,還剩4頁未讀 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

在各系統(tǒng)平臺配置SNMP一、 Windows 20081. 打開服務(wù)器管理,選擇功能選項,單擊添加功能。2. 勾選SNMP服務(wù),單擊“下一步”,自動安裝3. 在“管理工具”- “服務(wù)“ ,雙擊SNMP Service,開始配置SNMP4. 在“安全“欄,選擇添加社區(qū)5. 設(shè)置“社區(qū)名稱” 和“團體權(quán)限”6. 添加主機7. 輸入IP地址8. 配置完成,點擊“確認”退出二、 紅旗Linux紅旗linux系統(tǒng),自帶net-snmp,默認操作系統(tǒng)已安裝net-snmp。# rpm -qa|grep net-snmp /檢查有無安裝net-snmpnet-snmp-libs-5.1.2-18.2net-snmp-devel-5.1.2-18.2net-snmp-perl-5.1.2-18.2net-snmp-5.1.2-18.2net-snmp-utils-5.1.2-18.21. 編輯net-snmp配置文件# vi /etc/snmp/snmpd.conf /添加以下綠色字體內(nèi)容# First, map the community name public into a security name# source community# 設(shè)置允許某個IP,通過public 進行訪問com2sec mynetwork 48 public# Second, map the security name into a group name:# groupName securityModel securityName2. 保存后,重啟NET-SNMP服務(wù)# Service snmpd stop /停止snmpd服務(wù)#Service snmpd start /啟動snmpd服務(wù)三、 HP-UXHP-UX默認已安裝SNMP。1. 編輯配置文件#ls l /etc/snmpd* /系統(tǒng)默認創(chuàng)建了配置文件的鏈接到/etc/目錄下Snmpd.conf - /etc/SnmpAgent.d/snmpd.conf#vi /etc/snmpd.conf /修改綠色字體部分如下:.get-community-name: public IP: 48#set-community-name: # enter community name#contact: # enter contact person for agent#location: # enter location of agent#max-trap-dest: # enter max no. of trap-dest entries to be maintained.#trap-dest: # enter trap destination2. 啟動SNMP服務(wù)#snmpdStart SNMP Master Network Management daemonSNMP Research SNMP Agent Resident Module Version Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 SNMP Research, Inc.Start SNMP HP-UNIX Network Management subAgentStart SNMP MIB-2 Network Management subAgentStart SNMP Trap Dest Network Management subAgentStart SNMP PCI FDDI Network Management subAgent四、AIXAIX5.3 默認已安裝SNMP1. 編輯配置文件# vi /etc/snmpd.conf /添加以下綠色字體部分community mynetwork 48 55 readwrite2. 更改SNMP版本,系統(tǒng)默認版本為v3,需要更改為v1# /usr/sbin/snmpv3_ssw -1Stop daemon: snmpmibdIn /etc/rc.tcpip file, comment out the line that contains: snmpmibdIn /etc/rc.tcpip file, remove the comment from the line that contains: dpid2Make the symbolic link from /usr/sbin/snmpd to /usr/sbin/snmpdv1Make the symbolic link from /usr/sbin/clsnmp to /usr/sbin/clsnmpneStart daemon: dpid23. 重啟SNMP服務(wù)# stopsrc -s snmpd0513-044 The snmpd Subsystem was requested to stop.# startsrc -s snmpd0513-059 The snmpd Subsystem has been started. Subsystem PID is 200736.五、RedHat Linux1. 安裝net-snmp軟件上傳軟件到系統(tǒng),如上傳到 /tmp 目錄#cd /tmp#tar zxvf net-snmp-5.5.tar.gz /解壓軟件,自動解壓生成 /tmp/net-snmp-5.5目錄#cd /tmp/net-snmp/net-snmp-5.5#./configure -prefix /opt/net-snmp /根據(jù)系統(tǒng)環(huán)境及某些自定義工程腳步生產(chǎn)Makefile, -prefix 指定安裝目錄,需創(chuàng)建.* Default SNMP Version: Starting with Net-SNMP 5.0, you can choose the default version ofthe SNMP protocol to use when no version is given explicitly on thecommand line, or via an snmp.conf file. In the past this was set toSNMPv1, but you can use this to switch to SNMPv3 if desired. SNMPv3will provide a more secure management environment (and thus youreencouraged to switch to SNMPv3), but may break existing scripts thatrely on the old behaviour. (Though such scripts will probably need tobe changed to use the -c community flag anyway, as the SNMPv1command line usage has changed as well.). At this prompt you can select 1, 2 (for SNMPv2c), or 3 asthe default version for the command tools (snmpget, .) to use. Thiscan always be overridden at runtime using the -v flag to the tools, orby using the defVersion token in your snmp.conf file. Providing the -with-default-snmp-version=x parameter to ./configurewill avoid this prompt.Default version of SNMP to use (3): 2 /設(shè)置默認版本v2* System Contact Information: Describes who should be contacted about the host the agent isrunning on. This information is available in the MIB-II tree. Thiscan also be over-ridden using the syscontact syntax in the agentsconfiguration files. Providing the -with-sys-contact=contact parameter to ./configurewill avoid this prompt.System Contact Information (root): /輸入郵箱地址* System Location: Describes the location of the system. This information isavailable in the MIB-II tree. this can also be over-ridden using thesyslocation syntax in the agents configuration files. Providing the -with-sys-location=location parameter to ./configurewill avoid this prompt.System Location (Unknown): Guangzhou /設(shè)置設(shè)備地址* Logfile location: Enter the default location for the snmpd agent to dumpinformation & errors to. If not defined (enter the keyword noneat the prompt below) the agent will use stdout and stderr instead.(Note: This value can be over-ridden using command line options.) Providing the -with-logfile=path parameter to ./configurewill avoid this prompt.Location to write logfile (/var/log/snmpd.log): /回車,設(shè)置默認日志文件* snmpd persistent storage location: Enter a directory for the SNMP library to store persistentdata in the form of a configuration file. This default location isdifferent than the old default location (which was for ucd-snmp). Ifyou stay with the new path, Ill ask you in a second if you wish tocopy your files over to the new location (once only). If you picksome other path than the default, youll have to copy them yourself.There is nothing wrong with picking the old path (/var/ucd-snmp) ifyoud rather. Providing the -with-persistent-directory=path parameter to./configure will avoid this prompt.Location to write persistent information (/var/net-snmp): /回車,設(shè)置數(shù)據(jù)存儲目錄,.- Net-SNMP configuration summary:- SNMP Versions Supported: 1 2c 3 Building for: linux Net-SNMP Version: 5.5 Network transport support: Callback Unix Alias TCP UDP SNMPv3 Security Modules: usm Agent MIB code: default_modules = snmpv3mibs mibII ucd_snmp notification notification-log-mib target agent_mibs agentx disman/event disman/schedule utilities host MYSQL Trap Logging: unavailable Embedded Perl support: enabled SNMP Perl modules: building - embeddable SNMP Python modules: disabled Authentication support: MD5 SHA1 Encryption support: DES AES- /編譯完成#make /編譯軟件 #make install /安裝軟件 3. 編輯配置文件# snmpconf /創(chuàng)建配置文件I can create the following types of configuration files for you.Select the file type you wish to create:(you can create more than one as you run this program) 1: snmpd.conf 2: snmptrapd.conf 3: snmp.confOther options: quitSelect File: 1 /選擇配置文件類型The configuration information which can be put into snmpd.conf is dividedinto sections. Select a configuration section for snmpd.confthat you wish to create: 1: Agent Operating Mode 2: Trap Destinations 3: Extending the Agent 4: Access Control Setup 5: System Information Setup 6: Monitor Various Aspects of the Running HostOther options: finishedSelect section: 4 /選擇配置訪問控制Section: Access Control SetupDescription: This section defines who is allowed to talk to your running snmp agent.Select from: 1: a SNMPv3 read-write user 2: a SNMPv3 read-only user 3: a SNMPv1/SNMPv2c read-only access community name 4: a SNMPv1/SNMPv2c read-write access community nameOther

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論