Page 1 of 1

Remote monitoring of 4g RB SXT LTE6 routers

Posted: Mon Mar 15, 2021 2:31 pm
by maciej
Hi All

1. I would like to monitor multiple (in excess of 30 ) RB SXT LTE6 routers. They have O2 UK sim cards with private IP's.
2. i have a server that i can build with a domain address or static, public IP so it can be reachable from outside.
3. i would like the routers to report periodically to the server and maybe send their logs.

Do You have any options?

kind regards

Maciej

Re: Remote monitoring of 4g RB SXT LTE6 routers

Posted: Mon Mar 15, 2021 2:52 pm
by nikc
All achievable with the dude, i have lots of UK customers I do this with.

I'm guessing all the SXTE's are on CGNAT ?

Re: Remote monitoring of 4g RB SXT LTE6 routers

Posted: Mon Mar 15, 2021 3:58 pm
by bpwl
DUDE used here.(on hEX)
May need (SSTP) tunnel to bypass NAT and Firewalls.

Just an illustration on what it looks like ...

SNMP data + script with local quota counter stored in local file on SXT, file read with RouterOS command.
DUDE has SYSLOG server with filter rules
.
Klembord-1.jpg
Klembord-2.jpg

Re: Remote monitoring of 4g RB SXT LTE6 routers

Posted: Tue Mar 16, 2021 2:26 pm
by nikc
DUDE used here.(on hEX)
May need (SSTP) tunnel to bypass NAT and Firewalls.

Just an illustration on what it looks like ...

SNMP data + script with local quota counter stored in local file on SXT, file read with RouterOS command.
DUDE has SYSLOG server with filter rules
.
Klembord-1.jpg
Klembord-2.jpg
Any chance you could share the appearance settings you use the sxt's ? love the stats you've got there!

Re: Remote monitoring of 4g RB SXT LTE6 routers

Posted: Tue Mar 16, 2021 3:06 pm
by bpwl
Sure. I searched for interesting counters with SNMPwalk. (There could already be some more with recent RouterOS releases)
[Device.Name]
IP: [Device.AddressesCommaList]
[device_performance()][Device.ServicesDown]SINR: [round(oid("1.3.6.1.4.1.14988.1.1.16.1.1.7.1"))] RSRP: [round(oid("1.3.6.1.4.1.14988.1.1.16.1.1.4.1"))]
RSRQ: [round(oid_raw("1.3.6.1.4.1.14988.1.1.16.1.1.3.1"))] RSSI: [round(oid_raw("1.3.6.1.4.1.14988.1.1.16.1.1.2.1"))]
CellID: [round(oid_raw("1.3.6.1.4.1.14988.1.1.16.1.1.5.1"))]
Used MB: [ros_command(":put [/file get flash/counter.txt contents]")]

The counter comes from viewtopic.php?f=13&t=87565&hilit=ltelimiter#p705739 (but be aware of the little power-reset bug that is solved further in the thread)

Re: Remote monitoring of 4g RB SXT LTE6 routers

Posted: Tue Mar 16, 2021 3:16 pm
by bpwl
Just another example: one with 2 SIM's inserted, 2 providers
Klembord-1.jpg
. .
[Device.Name]
IP: [Device.AddressesCommaList]
[device_performance()][Device.ServicesDown]SINR: [round(oid("1.3.6.1.4.1.14988.1.1.16.1.1.7.1"))] RSRP: [round(oid("1.3.6.1.4.1.14988.1.1.16.1.1.4.1"))]
RSRQ: [round(oid_raw("1.3.6.1.4.1.14988.1.1.16.1.1.3.1"))] RSSI: [round(oid_raw("1.3.6.1.4.1.14988.1.1.16.1.1.2.1"))]
CellID: [round(oid_raw("1.3.6.1.4.1.14988.1.1.16.1.1.5.1"))]

SIM slot: [ros_command(":put [/system routerboard modem get sim-slot]")]
a SFR Used MB: [ros_command(":put [/file get flash/acounter.txt contents]")] b BGS Used MB: [ros_command(":put [/file get flash/bcounter.txt contents]")]

Re: Remote monitoring of 4g RB SXT LTE6 routers

Posted: Tue Mar 16, 2021 7:19 pm
by nikc
Sensational stuff - thanks for sharing ... i have lots of these out in the wild and never got round to putting the SNR etc into the dude, looks great.

Off topic, but on the multi sim do you auto failover on outage between SIMS ?

Re: Remote monitoring of 4g RB SXT LTE6 routers

Posted: Tue Mar 16, 2021 8:30 pm
by bpwl
Well to be honest ... it's complicated. The script can do it, (extended LTELIMITER script) but the statement is currently disabled. For the SXT with both SIM's there is only that remote connection available, and all management is done remotely.. I do not want to fail-over to the other SIM when that network is not operational. The over-quota in this case still gives reduced speed, so there is still connection. The script warns instead for over-quota. (the actual swap statement is commented out in the LTELIMITER script for selecting the SIM and APN). I want to indicate what I prefer, but the script must be smart enough to switch back if that gives no connection. So switching SIM cards today is still by manually triggering the switch-script. (Script is needed as both SIM card and APN must be changed to reconnect.).

In the previous example the SXT's are load balanced. So there it is different. The LTE is set down at the quota limit, and the balancer ignores that line. The LTE reopens when the quota is reset at the end of the metered period. (The LTELIMITER script) If all 3 are over quota they should reopen, just to have connection. But I have a satellite connection as fallback for the balancer.

The hEX with DUDE are local to those remote networks. (The hEX also make the SSTP tunnels as client to an internet reachable Mikrotik SSTP server (as TURN server for management nodes with DUDE client and WinBOX))

Re: Remote monitoring of 4g RB SXT LTE6 routers

Posted: Fri Mar 19, 2021 6:01 pm
by SiB
Hi All,
For scripting to change SIM Slots and do additional stuff like change imei etc.. I help with many of that scripts.
Basic one what I publish is here: viewtopic.php?f=13&t=159520&p=816964#p816964

This should be created a new LTE topic at forum and I can try help you with your version.

Re: Remote monitoring of 4g RB SXT LTE6 routers

Posted: Mon Jul 19, 2021 1:04 pm
by SirAdams
My Function working with RouterBOARD wAP R-2nD.

PS. My Function "LTE":
concatenate(
if( oid_column("1.3.6.1.4.1.14988.1.1.16.1.1.7") <> 0, concatenate ("SINR: ", oid_column("1.3.6.1.4.1.14988.1.1.16.1.1.7")," "), ""),
if( oid_column("1.3.6.1.4.1.14988.1.1.16.1.1.4") <> 0, concatenate ("RSRP: ", oid_column("1.3.6.1.4.1.14988.1.1.16.1.1.4")," "), ""),
if( oid_column("1.3.6.1.4.1.14988.1.1.16.1.1.3") <> 0, concatenate ("RSRQ: ", oid_column("1.3.6.1.4.1.14988.1.1.16.1.1.3")," "), ""),
if( oid_column("1.3.6.1.4.1.14988.1.1.16.1.1.2") <> 0, concatenate ("
RSSI: ", oid_column("1.3.6.1.4.1.14988.1.1.16.1.1.2")," "), ""),
if( oid_column("1.3.6.1.4.1.14988.1.1.16.1.1.5") > 0, concatenate ("
", "CellID: ", oid_column("1.3.6.1.4.1.14988.1.1.16.1.1.5"),"
"), "")
)

Re: Remote monitoring of 4g RB SXT LTE6 routers

Posted: Wed Sep 13, 2023 5:35 pm
by maciej
Amazing.

thank You for the reply to all.
sorry i reply so late.
i have now aprox 150 sites to monitor for drop offs and bandwidth issues accross London.

i will get dude up and running on my 1016 tile router and check what i can do
i am poor at scripting but we will see.

one way data stream is enough to get info from routers to dude

thank You

kind regards

Maciej

Re: Remote monitoring of 4g RB SXT LTE6 routers

Posted: Wed Sep 13, 2023 5:39 pm
by Amm0
I wrote up how to setup a probe to find needed OIDs here if that helps:
viewtopic.php?t=192103&hilit=dude+probe