数通设备监测使用说明

1、PING监测,是指通过PING IP的方式来检测设备是否在线和响应时间,比如交换机、打印机、路由器等设备
2、SNMP监测,可以通过snmp协议来监测交换机的端口(每次添加一个端口)进出口流量信息
获取所有端口入流量(byte)信息

[root@VM-0-14-centos ~]# snmpwalk -v 2c -c public [交换机IP] 1.3.6.1.2.1.2.2.1.10
IF-MIB::ifInOctets.1 = Counter32: 0
IF-MIB::ifInOctets.2 = Counter32: 0
IF-MIB::ifInOctets.3 = Counter32: 0
IF-MIB::ifInOctets.4 = Counter32: 0
IF-MIB::ifInOctets.6 = Counter32: 0
IF-MIB::ifInOctets.7 = Counter32: 0
IF-MIB::ifInOctets.8 = Counter32: 0
IF-MIB::ifInOctets.9 = Counter32: 0
IF-MIB::ifInOctets.10 = Counter32: 0
IF-MIB::ifInOctets.11 = Counter32: 0
IF-MIB::ifInOctets.12 = Counter32: 1926573344
IF-MIB::ifInOctets.13 = Counter32: 0
IF-MIB::ifInOctets.14 = Counter32: 0
IF-MIB::ifInOctets.15 = Counter32: 0
IF-MIB::ifInOctets.16 = Counter32: 267822969
IF-MIB::ifInOctets.17 = Counter32: 0
IF-MIB::ifInOctets.18 = Counter32: 0
	
获取第12个端口入流量(byte),1.3.6.1.2.1.2.2.1.10.12为入口流量的OID

[root@VM-0-14-centos ~]# snmpwalk -v 2c -c public [交换机IP] 1.3.6.1.2.1.2.2.1.10.12
IF-MIB::ifInOctets.12 = Counter32: 1926573344
	
获取第12个端口出流量(byte),把最后.10改成.16,即为出口流量的OID

[root@VM-0-14-centos ~]# snmpwalk -v 2c -c public [交换机IP] 1.3.6.1.2.1.2.2.1.16.12
IF-MIB::ifOutOctets.12 = Counter32: 1926573344
	
SNMP监测【添加】页面信息如下图所示,把12接口的出口流量的OID和入口流量的OID输入即可

如果需要指定SNMP服务端口(默认161)的话,在[交换机IP]后加端口即可,如:10.0.19.242:1161
获取交换机端口列表及描述

[root@VM-0-14-centos ~]# snmpwalk -v 2c -c public [交换机IP] 1.3.6.1.2.1.2.2.1.2
	
3、其他说明:v3.3.8版本有个小bug,每个交换机监测多个接口时可能出现误报下线的情况,监测一个接口是正常的,请下载补丁包修复,包里有替换文件说明
在发布下个版本时候,我们会把此bug修复合并进去