Community discussions

MikroTik App
 
User avatar
TomasKuba
just joined
Topic Author
Posts: 1
Joined: Fri Apr 13, 2018 3:13 am
Location: CZ

SwOS and SNMP - weird value of ifHighSpeed for disconnected ports

Fri Feb 05, 2021 10:46 am

Hi,
I have two CRS326 on SwOS 2.12 monitored by Zabbix 5.2 over SNMPv2. After many triggers "Interface PortXXX(): Ethernet has changed to lower speed than it was before" I traced the issue. I've found that the SwOS returned the value 1073923103000000 (i.e. over 1 petabits per second) as ifHighSpeed (OID 1.3.6.1.2.1.31.1.1.1.15) in case the interface is disconnected, thus triggering an alert every time the port is up and its speed "falls down" to 1Gbps or 100Mbps.

This is an output from SNMP interface scan (Paessler SNMP Tester):

1:Port1: (001) Port1 Traffic,Connected,1 GBit/s,Ethernet,Port1, 64 Bit
2:Port2: (002) Port2 Traffic,Connected,1 GBit/s,Ethernet,Port2, 64 Bit
3:Port3: (003) Port3 Traffic,Not Connected,1073923 GBit/s,Ethernet,Port3, 64 Bit
4:Port4: (004) Port4 Traffic,Not Connected,1073923 GBit/s,Ethernet,Port4, 64 Bit
5:Port5: (005) Port5 Traffic,Not Connected,1073923 GBit/s,Ethernet,Port5, 64 Bit
6:Port6: (006) Port6 Traffic,Not Connected,1073923 GBit/s,Ethernet,Port6, 64 Bit
7:Port7: (007) Port7 Traffic,Not Connected,1073923 GBit/s,Ethernet,Port7, 64 Bit
8:Port8: (008) Port8 Traffic,Not Connected,1073923 GBit/s,Ethernet,Port8, 64 Bit
9:Port9: (009) Port9 Traffic,Not Connected,1073923 GBit/s,Ethernet,Port9, 64 Bit
10:Port10: (010) Port10 Traffic,Not Connected,1073923 GBit/s,Ethernet,Port10, 64 Bit
11:Port11: (011) Port11 Traffic,Not Connected,1073923 GBit/s,Ethernet,Port11, 64 Bit
12:Port12: (012) Port12 Traffic,Not Connected,1073923 GBit/s,Ethernet,Port12, 64 Bit
13:Port13: (013) Port13 Traffic,Not Connected,1073923 GBit/s,Ethernet,Port13, 64 Bit
14:Port14: (014) Port14 Traffic,Not Connected,1073923 GBit/s,Ethernet,Port14, 64 Bit
15:Port15: (015) Port15 Traffic,Connected,1 GBit/s,Ethernet,Port15, 64 Bit
16:Port16: (016) Port16 Traffic,Not Connected,1073923 GBit/s,Ethernet,Port16, 64 Bit
17:Port17: (017) Port17 Traffic,Connected,1 GBit/s,Ethernet,Port17, 64 Bit
18:Port18: (018) Port18 Traffic,Not Connected,1073923 GBit/s,Ethernet,Port18, 64 Bit
19:Port19: (019) Port19 Traffic,Not Connected,1073923 GBit/s,Ethernet,Port19, 64 Bit
20:Port20: (020) Port20 Traffic,Connected,1 GBit/s,Ethernet,Port20, 64 Bit
21:Port21: (021) Port21 Traffic,Connected,1 GBit/s,Ethernet,Port21, 64 Bit
22:Port22: (022) Port22 Traffic,Not Connected,1073923 GBit/s,Ethernet,Port22, 64 Bit
23:Port23: (023) Port23 Traffic,Not Connected,1073923 GBit/s,Ethernet,Port23, 64 Bit
24:Port24: (024) Port24 Traffic,Not Connected,1073923 GBit/s,Ethernet,Port24, 64 Bit
25:SFP1: (025) SFP1 Traffic,Connected,10 GBit/s,Ethernet,SFP1, 64 Bit
26:SFP2: (026) SFP2 Traffic,Connected,10 GBit/s,Ethernet,SFP2, 64 Bit

Port1 (connected):
----------------------- New Test -----------------------
Paessler SNMP Tester - 20.2.4 Computername: XXXXXXXX Interface: (XXXXXXXX)
05.02.2021 9:59:52 (21 ms) : Device: 192.168.XX.XX
05.02.2021 9:59:52 (32 ms) : SNMP v1
05.02.2021 9:59:52 (38 ms) : Custom OID 1.3.6.1.2.1.31.1.1.1.15.1
05.02.2021 9:59:53 (73 ms) : SNMP Datatype: ASN_UNSIGNED
05.02.2021 9:59:53 (81 ms) : -------
05.02.2021 9:59:53 (89 ms) : Value: 1000
05.02.2021 9:59:53 (98 ms) : Done

Port3 (disconnected):
----------------------- New Test -----------------------
Paessler SNMP Tester - 20.2.4 Computername: XXXXXXXX Interface: (XXXXXXXX)
05.02.2021 9:59:57 (20 ms) : Device: 192.168.XX.XX
05.02.2021 9:59:57 (31 ms) : SNMP v1
05.02.2021 9:59:57 (37 ms) : Custom OID 1.3.6.1.2.1.31.1.1.1.15.3
05.02.2021 9:59:57 (69 ms) : SNMP Datatype: ASN_UNSIGNED
05.02.2021 9:59:57 (75 ms) : -------
05.02.2021 9:59:57 (83 ms) : Value: 1073923103
05.02.2021 9:59:57 (89 ms) : Done

The workaround could be to change the trigger prototype to check not only the last interface status but also it's previous value (or change). The periods of both ifHighSpeed and ifStatus must be the same for this to work. But I'm not happy to query the switch that much each minute ...

I believe the ifHighSpeed should be zero (maybe empty value?) for unplugged ports. Mikrotik, could you fix it please?

Thanks,
Tomas

Who is online

Users browsing this forum: No registered users and 1 guest