資源描述:
《華為SNMP配置.doc》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫(kù)。
1、簡(jiǎn)板1.首先,要設(shè)置使用的SNMP的版本[Quidway]snmp-agentsys-infoversion??all?使設(shè)備支持版本SNMPv1,SNMPv2c和SNMPv3?v1??支持SNMPv1?v2c?支持SNMPv2c?v3??支持SNMPv3[Quidway]snmp-agentsys-infoversionv1v2c2.對(duì)于v1v2c來(lái)說(shuō),只需要設(shè)定團(tuán)體字即可[Quidway]snmp-agentcommunity??read??該團(tuán)體名在指定視圖內(nèi)有只讀權(quán)限?write?該團(tuán)體名在指定視圖內(nèi)有讀寫權(quán)限[Qui
2、dway]snmp-agentcommunityreadpublic[Quidway]snmp-agentcommunitywriteprivate[Quidway]snmp-agenttrap??enable?????SNMP陷阱/通知使能命令組?life???????設(shè)置trap老化時(shí)間?queue-size?每個(gè)TRAP消息隊(duì)列長(zhǎng)度?source?????設(shè)置Trap報(bào)文源地址?[Quidway]snmp-agenttrapenable[Quidway]snmp-agenttarget-host??trap?指定該主機(jī)為
3、trap主機(jī)[Quidway]snmp-agenttarget-hosttrap??address?指定用于SNMP消息產(chǎn)生的傳輸?shù)刂穂Quidway]snmp-agenttarget-hosttrapaddressudp-domain192.168.1.1udp-port5000??params?指定用于SNMP消息產(chǎn)生的SNMP目標(biāo)主機(jī)信息[Quidway]snmp-agenttarget-hosttrapaddressudp-domain192.168.1.1udp-port5000params??securitynam
4、e?指定代表生成SNMP消息的主體名[Quidway]snmp-agenttarget-hosttrapaddressudp-domain192.168.1.1udp-port5000paramssecurityname??STRING<1-32>?指定安全名字符串[Quidway]snmp-agenttarget-hosttrapaddressudp-domain192.168.1.1udp-port5000paramssecuritynamepublic[Quidway]4.對(duì)于V3,需要的是MIB視圖和讀寫的組snmpv
5、3設(shè)置:[Quidway]snmp-agent??community??????為SNMPv1&SNMPv2c訪問(wèn)設(shè)置團(tuán)體名?group??????????設(shè)置基于用戶安全模型的組?local-engineid?設(shè)置本地SNMP實(shí)體的引擎ID?mib-view???????創(chuàng)建或者更新SNMPMIB視圖的信息?packet?????????設(shè)置SNMP報(bào)文參數(shù)?sys-info???????設(shè)置該設(shè)備節(jié)點(diǎn)的系統(tǒng)信息?target-host????設(shè)置接收SNMP通知/陷阱報(bào)文的目標(biāo)主機(jī)?trap???????????設(shè)置SNM
6、P陷阱/通知相關(guān)參數(shù)?usm-user???????設(shè)置SNMP實(shí)體訪問(wèn)用戶????????????[Quidway]snmp-agentsys-infoversion??all?使設(shè)備支持版本SNMPv1,SNMPv2c和SNMPv3?v1??支持SNMPv1?v2c?支持SNMPv2c?v3??支持SNMPv3[Quidway]snmp-agentsys-infoversionv3[Quidway]snmp-agentmib-view??excluded?排除MIB子樹(shù)?included?包括MIB子樹(shù)[Quidw
7、ay]snmp-agentmib-viewincluded??STRING<1-32>?視圖名字符串[Quidway]snmp-agentmib-viewincludedwnmview??STRING<1-255>?MIB對(duì)象子樹(shù)名稱[Quidway]snmp-agentmib-viewincludedwnmviewinternet[Quidway]snmp-agentgroupv3wnmgroup??acl????????????為該組指定訪問(wèn)控制列表?authentication?指明該組名具有認(rèn)證不加密的安全級(jí)別?not
8、ify-view????指定該組名對(duì)應(yīng)的通知視圖?privacy????????指明該組名具有認(rèn)證和加密的安全級(jí)別?read-view??????設(shè)置該組名對(duì)應(yīng)的只讀視圖?write-view?????指定該組名對(duì)應(yīng)的讀寫視圖????????????[Quidway]