Community discussions

MikroTik App
 
maciej
just joined
Topic Author
Posts: 9
Joined: Fri Sep 27, 2013 4:03 am

Remote monitoring of 4g RB SXT LTE6 routers

Mon Mar 15, 2021 2:31 pm

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
 
nikc
Member Candidate
Member Candidate
Posts: 205
Joined: Wed Jul 13, 2016 6:05 pm

Re: Remote monitoring of 4g RB SXT LTE6 routers

Mon Mar 15, 2021 2:52 pm

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 ?
 
User avatar
bpwl
Forum Guru
Forum Guru
Posts: 2473
Joined: Mon Apr 08, 2019 1:16 am

Re: Remote monitoring of 4g RB SXT LTE6 routers

Mon Mar 15, 2021 3:58 pm

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
You do not have the required permissions to view the files attached to this post.
 
nikc
Member Candidate
Member Candidate
Posts: 205
Joined: Wed Jul 13, 2016 6:05 pm

Re: Remote monitoring of 4g RB SXT LTE6 routers

Tue Mar 16, 2021 2:26 pm

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!
 
User avatar
bpwl
Forum Guru
Forum Guru
Posts: 2473
Joined: Mon Apr 08, 2019 1:16 am

Re: Remote monitoring of 4g RB SXT LTE6 routers

Tue Mar 16, 2021 3:06 pm

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)
 
User avatar
bpwl
Forum Guru
Forum Guru
Posts: 2473
Joined: Mon Apr 08, 2019 1:16 am

Re: Remote monitoring of 4g RB SXT LTE6 routers

Tue Mar 16, 2021 3:16 pm

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]")]
You do not have the required permissions to view the files attached to this post.
 
nikc
Member Candidate
Member Candidate
Posts: 205
Joined: Wed Jul 13, 2016 6:05 pm

Re: Remote monitoring of 4g RB SXT LTE6 routers

Tue Mar 16, 2021 7:19 pm

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 ?
 
User avatar
bpwl
Forum Guru
Forum Guru
Posts: 2473
Joined: Mon Apr 08, 2019 1:16 am

Re: Remote monitoring of 4g RB SXT LTE6 routers

Tue Mar 16, 2021 8:30 pm

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))
 
User avatar
SiB
Forum Guru
Forum Guru
Posts: 1889
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: Remote monitoring of 4g RB SXT LTE6 routers

Fri Mar 19, 2021 6:01 pm

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.
 
SirAdams
just joined
Posts: 11
Joined: Sat Oct 11, 2014 1:16 pm
Contact:

Re: Remote monitoring of 4g RB SXT LTE6 routers

Mon Jul 19, 2021 1:04 pm

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"),"
"), "")
)

Who is online

Users browsing this forum: SmithSK and 0 guests