配置交换机KPI信息上报分析器示例
组网需求
如图15-7所示,某企业网络用一台华为公司iMaster NCE-CampusInsight作为分析器对交换机设备进行智能运维管理。iMaster NCE-CampusInsight与交换机之间已经实现路由可达。用户想要实现的运维项目包括交换机设备状态,音频和视频流量监控。其中,摄像头和IP话机通过SwitchA接入。
操作步骤
- 配置SwitchA的接口和VLAN。
<Quidway> system-view [Quidway] sysname SwitchA [SwitchA] vlan batch 10 [SwitchA] interface gigabitethernet 1/0/1 [SwitchA-GigabitEthernet1/0/1] port link-type trunk [SwitchA-GigabitEthernet1/0/1] port trunk allow-pass vlan 10 [SwitchA-GigabitEthernet1/0/1] quit [SwitchA] interface Vlanif10 [SwitchA-Vlanif10] ip address 192.168.10.1 24 [SwitchA-Vlanif10] quit
- 配置SwitchB的接口和VLAN。
<Quidway> system-view [Quidway] sysname SwitchB [SwitchB] vlan batch 20 [SwitchB] interface gigabitethernet 1/0/1 [SwitchB-GigabitEthernet1/0/1] port link-type trunk [SwitchB-GigabitEthernet1/0/1] port trunk allow-pass vlan 20 [SwitchB-GigabitEthernet1/0/1] quit [SwitchB] interface Vlanif20 [SwitchB-Vlanif20] ip address 192.168.20.1 24 [SwitchB-Vlanif20] quit
- 配置SwitchA与iMaster NCE-CampusInsight对接。
[SwitchA] snmp-agent [SwitchA] snmp-agent sys-info version all [SwitchA] snmp-agent community write Root@123 [SwitchA] snmp-agent community read Root@123 [SwitchA] netconf [SwitchA-netconf] source ip 192.168.10.1 [SwitchA-netconf] smi-server [SwitchA-netconf-smi-server] server ip-address 192.168.30.1 port 27371 //该端口号必须与iMaster NCE-CampusInsight使用的端口号一致 [SwitchA-netconf-smi-server] quit [SwitchA-netconf] quit
- 配置SwitchB与iMaster NCE-CampusInsight对接。
[SwitchB] snmp-agent [SwitchB] snmp-agent sys-info version all [SwitchB] snmp-agent community write Root@123 [SwitchB] snmp-agent community read Root@123 [SwitchB] netconf [SwitchB-netconf] source ip 192.168.20.1 [SwitchB-netconf] smi-server [SwitchB-netconf-smi-server] server ip-address 192.168.30.1 port 27371 [SwitchB-netconf-smi-server] quit [SwitchB-netconf] quit
- 配置iMaster NCE-CampusInsight。
- 配置SwitchA收到的音频和视频流量定时上报iMaster NCE-CampusInsight。
[SwitchA] emdi [SwitchA-emdi] quit [SwitchA] sea [SwitchA-sea] rtp monitor-type audio video [SwitchA-sea] quit [SwitchA] netconf [SwitchA-netconf] smi-server [SwitchA-netconf-smi-server] collect-item media-quality enable
- 配置SwitchB的设备信息和POE信息定时上报iMaster NCE-CampusInsight。
[SwitchB] netconf [SwitchB-netconf] smi-server [SwitchB-netconf-smi-server] collect-item device-data enable [SwitchB-netconf-smi-server] collect-item poe enable
配置文件
- SwitchA的配置文件
# 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 # emdi # netconf source ip 192.168.10.1 smi-server server ip-address 192.168.30.1 port 27371 collect-item media-quality enable # sea rtp-media monitor-type audio video # return
- SwitchB的配置文件
# sysname SwitchB # vlan batch 20 # interface Vlanif20 ip address 192.168.20.1 255.255.255.0 # interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 20 # 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 # netconf source ip 192.168.20.1 smi-server server ip-address 192.168.30.1 port 27371 collect-item device-data enable collect-item poe enable # return