2019-12-10 为啥Nagios通过SNMP查询10G端口
2019-12-11 本文已影响0人
AK蜗牛
通过Ngios监控微波链路的Capacity和Modulation,可以发现, Modulation 是9,而Capacity是4294967295 bit/s。
![](https://img.haomeiwen.com/i12133543/4e17c9ed28b82cd6.png)
实际上按照厂家的对应关系,Modulation qam128(9) 对应的是10G(9550M)。
这是因为,在SNMP MIB 使用的是object ifSpeed,而10G端口应该使用 ifHighSpeed。
ifSpeed是32 bit ojbect, 其值是ifSpeed.21 = 2^32-1 = 4294967295 bits = 4.3G
ifSpeed.17 = 1000000000
ifSpeed.18 = 1000000000
ifSpeed.21 = 4294967295
ifSpeed.23 = 4294967295
ifHighSpeed是64位的,因此支持10G (Juniper 路由器)
xx@ax> show snmp mib get ifHighSpeed.21
ifHighSpeed.21 = 10000
OID是1.3.6.1.2.1.31.1.1.1.15, 可通过下面命令查看:
xx@ax> show snmp mib walk 1.3.6.1.2.1.31.1.1.1.15