




已閱讀5頁,還剩4頁未讀, 繼續(xù)免費閱讀
版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
在各系統(tǒng)平臺配置SNMP一、 Windows 20081. 打開服務器管理,選擇功能選項,單擊添加功能。2. 勾選SNMP服務,單擊“下一步”,自動安裝3. 在“管理工具”- “服務“ ,雙擊SNMP Service,開始配置SNMP4. 在“安全“欄,選擇添加社區(qū)5. 設置“社區(qū)名稱” 和“團體權限”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 /添加以下綠色字體內容# First, map the community name public into a security name# source community# 設置允許某個IP,通過public 進行訪問com2sec mynetwork 48 public# Second, map the security name into a group name:# groupName securityModel securityName2. 保存后,重啟NET-SNMP服務# Service snmpd stop /停止snmpd服務#Service snmpd start /啟動snmpd服務三、 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服務#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服務# 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 /根據系統(tǒng)環(huá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 /設置默認版本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 /設置設備地址* 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): /回車,設置默認日志文件* 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): /回車,設置數據存儲目錄,.- 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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025屆山東省新泰第一中學北校化學高一下期末學業(yè)質量監(jiān)測試題含解析
- 2025屆浙江省浙南聯盟化學高一下期末教學質量檢測試題含解析
- 民工衣服庫存管理辦法
- 晚會捐贈收入管理辦法
- 冬季水管防護管理辦法
- 現代語文教育數字化資源整合平臺建設研究
- 國債承銷工作管理辦法
- 口服制劑溶出曲線比對-洞察及研究
- 噴施KH2PO4對小麥灌漿期高溫脅迫抑制作用的研究
- 多元種植模式下玉米大豆協(xié)同增產技術研究
- 2025-2030中國多動癥治療行業(yè)市場發(fā)展趨勢與前景展望戰(zhàn)略研究報告
- 企業(yè)安全文化建設中急救培訓的重要性及策略探討
- 2024年遼寧沈陽水務集團有限公司招聘筆試真題
- 濰坊交通發(fā)展集團有限公司招聘筆試題庫2025
- 胸痛中心質控管理
- 2025時政試題及答案(100題)
- 第七章城市軌道交通屏蔽門設備接口68課件
- 國家開放大學漢語言文學本科《中國現代文學專題》期末紙質考試第三大題分析題庫2025春期版
- 成都大學附屬中學英語新初一分班試卷含答案
- 新22J01 工程做法圖集
- 創(chuàng)新創(chuàng)業(yè)大賽項目商業(yè)計劃書模板
評論
0/150
提交評論