当前位置:   article > 正文

华为配置交换机KPI信息上报分析器示例组网图形

华为配置交换机KPI信息上报分析器示例组网图形
 

配置交换机KPI信息上报分析器示例

组网图形

图1 KPI信息上报拓扑图

  • 组网需求
  • 操作步骤
  • 配置文件
组网需求

图1所示,某企业网络用一台华为公司iMaster NCE-CampusInsight作为分析器对交换机设备进行智能运维管理。iMaster NCE-CampusInsight与交换机之间已经实现路由可达。用户想要监控交换机设备状态和PoE供电信息。

操作步骤
  1. 配置SwitchA的接口和VLAN。

    1. <span style="color:#333333"><span style="background-color:#dddddd"><HUAWEI> <strong id="ZH-CN_TASK_0273187916__b88985419183312">system-view</strong>
    2. [HUAWEI] <strong id="ZH-CN_TASK_0273187916__b1826637465183312">sysname SwitchA</strong>
    3. [SwitchA] <strong id="ZH-CN_TASK_0273187916__b590222415183312">vlan batch 10</strong>
    4. [SwitchA] <strong id="ZH-CN_TASK_0273187916__b113399189183312">interface gigabitethernet 0/0/1</strong>
    5. [SwitchA-GigabitEthernet0/0/1] <strong id="ZH-CN_TASK_0273187916__b722083976183312">port link-type trunk</strong>
    6. [SwitchA-GigabitEthernet0/0/1] <strong id="ZH-CN_TASK_0273187916__b1980817477183312">port trunk allow-pass vlan 10</strong>
    7. [SwitchA-GigabitEthernet0/0/1] <strong id="ZH-CN_TASK_0273187916__b1484819341183312">quit</strong>
    8. [SwitchA] <strong id="ZH-CN_TASK_0273187916__b1197698681183312">interface Vlanif10</strong>
    9. [SwitchA-Vlanif10] <strong id="ZH-CN_TASK_0273187916__b1609692154183312">ip address 192.168.10.1 24</strong>
    10. [SwitchA-Vlanif10] <strong id="ZH-CN_TASK_0273187916__b1413016416183312">quit</strong></span></span>
  2. 配置SwitchA与iMaster NCE-CampusInsight对接。

    1. <span style="color:#333333"><span style="background-color:#dddddd">[SwitchA] <strong id="ZH-CN_TASK_0273187916__b0483103317148">snmp-agent</strong>
    2. [SwitchA] <strong id="ZH-CN_TASK_0273187916__b648393361414">snmp-agent sys-info version all</strong>
    3. [SwitchA] <strong id="ZH-CN_TASK_0273187916__b9483133311147">snmp-agent community write YsHsjx_202206 </strong>
    4. [SwitchA] <strong id="ZH-CN_TASK_0273187916__b19483133311411">snmp-agent community read YsHsjx_202206 </strong>
    5. [SwitchA] <strong>snmp-agent protocol source-status</strong> <strong>all-interface</strong>
    6. [SwitchA] <strong>snmp-agent protocol source-status</strong> <strong>ipv6</strong> <strong>all-interface</strong>
    7. [SwitchA] <strong id="ZH-CN_TASK_0273187916__b075612385217">smi-server</strong>
    8. [SwitchA-smi-server] <strong id="ZH-CN_TASK_0273187916__b114611410191519">source ip-address 192.168.10.1</strong>
    9. [SwitchA-smi-server] <strong id="ZH-CN_TASK_0273187916__b1548383321410">server ip-address 192.168.30.1 port 27371</strong> //该端口号必须与iMaster NCE-CampusInsight使用的端口号一致
    10. [SwitchA-smi-server] <strong id="ZH-CN_TASK_0273187916__b13483333181415">quit</strong></span></span>
  3. 配置iMaster NCE-CampusInsight。
    1. 登录iMaster NCE-CampusInsight。打开Internet Explorer浏览器,在地址栏输入iMaster NCE-CampusInsight的访问地址,输入用户名和密码登录iMaster NCE-CampusInsight。
    2. 单击“资源 > 网络设备”,单击右侧“增加设备”,配置“IP地址”和“站点-区域”,单击“确定”,添加设备成功。
    3. 几秒钟之后刷新该页面,SwitchA的“状态”为“在线”,表示SwitchA与iMaster NCE-CampusInsight之间通信正常。
  4. 配置SwitchA的设备信息和PoE信息定时上报iMaster NCE-CampusInsight。

    1. <span style="color:#333333"><span style="background-color:#dddddd">[SwitchA] <strong>smi-server</strong>
    2. [SwitchA-smi-server] <strong>collect-item device-data enable</strong>
    3. [SwitchA-smi-server] <strong>collect-item poe enable</strong></span></span>
配置文件

SwitchA的配置文件

  1. <span style="color:#333333"><span style="background-color:#dddddd">#
  2. sysname SwitchA
  3. #
  4. vlan batch 10
  5. #
  6. interface Vlanif10
  7. ip address 192.168.10.1 255.255.255.0
  8. #
  9. interface GigabitEthernet0/0/1
  10. port link-type trunk
  11. port trunk allow-pass vlan 10
  12. #
  13. snmp-agent
  14. snmp-agent local-engineid 800007DB03B44326CA2A50
  15. snmp-agent community write cipher %^%#-=lSXG\}7(Z1m6*Lg2R77[B,&")bNSE-!kJFF`A%j6OI.t{;u$)yb&$wAo$Q3*vuYcg(_S7$%AA:PsAS%^%#
  16. 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~%^%#
  17. snmp-agent sys-info version all
  18. snmp-agent protocol source-status all-interface
  19. snmp-agent protocol source-status ipv6 all-interface
  20. #
  21. smi-server
  22. source ip-address 192.168.10.1
  23. server ip-address 192.168.30.1 port 27371
  24. collect-item device-data enable
  25. collect-item poe enable
  26. #
  27. return</span></span>
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/78832?site
推荐阅读
相关标签
  

闽ICP备14008679号