赞
踩
如图1所示,某企业网络用一台华为公司iMaster NCE-CampusInsight作为分析器对交换机设备进行智能运维管理。iMaster NCE-CampusInsight与交换机之间已经实现路由可达。用户想要监控交换机设备状态和PoE供电信息。
- <span style="color:#333333"><span style="background-color:#dddddd"><HUAWEI> <strong id="ZH-CN_TASK_0273187916__b88985419183312">system-view</strong>
- [HUAWEI] <strong id="ZH-CN_TASK_0273187916__b1826637465183312">sysname SwitchA</strong>
- [SwitchA] <strong id="ZH-CN_TASK_0273187916__b590222415183312">vlan batch 10</strong>
- [SwitchA] <strong id="ZH-CN_TASK_0273187916__b113399189183312">interface gigabitethernet 0/0/1</strong>
- [SwitchA-GigabitEthernet0/0/1] <strong id="ZH-CN_TASK_0273187916__b722083976183312">port link-type trunk</strong>
- [SwitchA-GigabitEthernet0/0/1] <strong id="ZH-CN_TASK_0273187916__b1980817477183312">port trunk allow-pass vlan 10</strong>
- [SwitchA-GigabitEthernet0/0/1] <strong id="ZH-CN_TASK_0273187916__b1484819341183312">quit</strong>
- [SwitchA] <strong id="ZH-CN_TASK_0273187916__b1197698681183312">interface Vlanif10</strong>
- [SwitchA-Vlanif10] <strong id="ZH-CN_TASK_0273187916__b1609692154183312">ip address 192.168.10.1 24</strong>
- [SwitchA-Vlanif10] <strong id="ZH-CN_TASK_0273187916__b1413016416183312">quit</strong></span></span>
- <span style="color:#333333"><span style="background-color:#dddddd">[SwitchA] <strong id="ZH-CN_TASK_0273187916__b0483103317148">snmp-agent</strong>
- [SwitchA] <strong id="ZH-CN_TASK_0273187916__b648393361414">snmp-agent sys-info version all</strong>
- [SwitchA] <strong id="ZH-CN_TASK_0273187916__b9483133311147">snmp-agent community write YsHsjx_202206 </strong>
- [SwitchA] <strong id="ZH-CN_TASK_0273187916__b19483133311411">snmp-agent community read YsHsjx_202206 </strong>
- [SwitchA] <strong>snmp-agent protocol source-status</strong> <strong>all-interface</strong>
- [SwitchA] <strong>snmp-agent protocol source-status</strong> <strong>ipv6</strong> <strong>all-interface</strong>
- [SwitchA] <strong id="ZH-CN_TASK_0273187916__b075612385217">smi-server</strong>
- [SwitchA-smi-server] <strong id="ZH-CN_TASK_0273187916__b114611410191519">source ip-address 192.168.10.1</strong>
- [SwitchA-smi-server] <strong id="ZH-CN_TASK_0273187916__b1548383321410">server ip-address 192.168.30.1 port 27371</strong> //该端口号必须与iMaster NCE-CampusInsight使用的端口号一致
- [SwitchA-smi-server] <strong id="ZH-CN_TASK_0273187916__b13483333181415">quit</strong></span></span>
- <span style="color:#333333"><span style="background-color:#dddddd">[SwitchA] <strong>smi-server</strong>
- [SwitchA-smi-server] <strong>collect-item device-data enable</strong>
- [SwitchA-smi-server] <strong>collect-item poe enable</strong></span></span>
SwitchA的配置文件
<span style="color:#333333"><span style="background-color:#dddddd"># sysname SwitchA # vlan batch 10 # interface Vlanif10 ip address 192.168.10.1 255.255.255.0 # interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 10 # snmp-agent snmp-agent local-engineid 800007DB03B44326CA2A50 snmp-agent community write cipher %^%#-=lSXG\}7(Z1m6*Lg2R77[B,&")bNSE-!kJFF`A%j6OI.t{;u$)yb&$wAo$Q3*vuYcg(_S7$%AA:PsAS%^%# snmp-agent community read cipher %^%#mhRe3(8!hK7X%;G+z#KR}n5SQ/1+>$h-#J4)Is4#f|Qi"39sx+(mer<F=V$-Nt*.Mec2dIl!:":#g]T~%^%# snmp-agent sys-info version all snmp-agent protocol source-status all-interface snmp-agent protocol source-status ipv6 all-interface # smi-server source ip-address 192.168.10.1 server ip-address 192.168.30.1 port 27371 collect-item device-data enable collect-item poe enable # return</span></span>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。