已閱讀5頁,還剩4頁未讀, 繼續(xù)免費(fèi)閱讀
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
在各系統(tǒng)平臺配置SNMP一、 Windows 20081. 打開服務(wù)器管理,選擇功能選項(xiàng),單擊添加功能。2. 勾選SNMP服務(wù),單擊“下一步”,自動安裝3. 在“管理工具”- “服務(wù)“ ,雙擊SNMP Service,開始配置SNMP4. 在“安全“欄,選擇添加社區(qū)5. 設(shè)置“社區(qū)名稱” 和“團(tuán)體權(quán)限”6. 添加主機(jī)7. 輸入IP地址8. 配置完成,點(diǎn)擊“確認(rèn)”退出二、 紅旗Linux紅旗linux系統(tǒng),自帶net-snmp,默認(rèn)操作系統(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 進(jìn)行訪問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默認(rèn)已安裝SNMP。1. 編輯配置文件#ls l /etc/snmpd* /系統(tǒng)默認(rèn)創(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 默認(rèn)已安裝SNMP1. 編輯配置文件# vi /etc/snmpd.conf /添加以下綠色字體部分community mynetwork 48 55 readwrite2. 更改SNMP版本,系統(tǒng)默認(rèn)版本為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è)置默認(rèn)版本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è)置默認(rèn)日志文件* 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)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年宣威市復(fù)興街道辦事處公開招聘公益性崗位工作人員(3人)模擬筆試試題及答案解析
- 2026云南昆明市石林彝族自治縣兵役登記暨征兵參考考試題庫及答案解析
- 2025年甘肅省平?jīng)鍪兄写罂萍技脊W(xué)校招聘21人模擬筆試試題及答案解析
- 深度解析(2026)《GBT 25944-2010鋁土礦 批中不均勻性的實(shí)驗(yàn)測定》(2026年)深度解析
- 2026廣東省惠州市龍門縣教育局赴高校招聘急需緊缺學(xué)科教師招聘60人(江西師范大學(xué)場)備考筆試題庫及答案解析
- 2025貴州水投水庫運(yùn)營管理黔東南有限公司第二次招聘參考筆試題庫附答案解析
- 四川鍋爐高級技工學(xué)校2025年下半年面向社會公開考核招聘中職教育專業(yè)技術(shù)人才(16人)參考筆試題庫附答案解析
- 2025上海黃浦科創(chuàng)集團(tuán)招聘7人備考考試試題及答案解析
- 深度解析(2026)《GBT 25702-2010復(fù)擺顎式破碎機(jī) 顎板磨耗》(2026年)深度解析
- 2025山東濟(jì)南市平陰豐源炭素有限責(zé)任公司招聘29人備考筆試試題及答案解析
- 公司便民雨傘管理制度
- 醫(yī)院購買電腦管理制度
- 編制竣工圖合同范本
- 新22J01 工程做法圖集
- 預(yù)防高空拋物2
- 廣西欽州市2024-2025學(xué)年高一上學(xué)期期末教學(xué)質(zhì)量監(jiān)測數(shù)學(xué)試題(解析版)
- 智慧樹知到《藝術(shù)與審美(北京大學(xué))》期末考試附答案
- 渠道拓展與渠道管理
- 防腐敗和激勵反腐敗制度
- 2024-2025學(xué)年上海市長寧區(qū)初三一模語文試卷(含答案)
- 北京市西城區(qū)2022-2023學(xué)年六年級上學(xué)期數(shù)學(xué)期末試卷(含答案)
評論
0/150
提交評論