DuxTel Systems (13)
Interface Cards and Adapters (15)
Mikrotik Systems-> (155)
Mimosa Wireless (5)
RouterBOARD (10)
Router Enclosures (13)
Power Supplies & PoE-> (29)
Antennas and Accessories-> (117)
Mikrotik RouterOS (6)
Assembled Kits (6)
Carrier Wireless (1)
Cable and Misc (14)
Hardware and Mounting (23)
Configuration Library (FREE!) (7)
Quick Find
search products
search articles
New Articles
Case Studies
Product Guides (2)
Mikrotik Configuration (17)
Technical (5)
Community News (8)
Q&A (28)
Product Advisory (6)
Policy and Information (7)
Shipping & Returns
Privacy Notice
Conditions of Use
Contact Us
Check PPP link, reset when down by Richard Wiltshire

We recently had an event with a DuxCel unit where one of our business units let the pre-paid data run out and it was nearly 3 weeks until it was topped up.

Because it had been left so long, even when the data was activated again, there was no cellular connection until the PPP interface was disabled/enabled.

Therefore I created the attached netwatch script (attached) – thought it may be of some use/interest to you.

Functionality is as follows:

1.     Netwatch will ping Google DNS server ( every 15 mins

2.     If there is a ping reply (within 1000ms), then “Cellular up” is logged – no further action.

3.     If there is no ping reply, Netwatch will invoke a script, the script will then:

a.     Log “Cellular down”

b.    Disable/re-enable the Cellurar4G interface (with 10s delay)

c.     Disable the Netwatch for 15 mins – to allow plenty of time for the Cellular connection to re-establish.

4.     After 15 minutes the Netwatch is enabled, and starts to ping every 15 minutes.

5.     If there is a ping reply (within 1000ms), then “Cellular up” is logged – no further action.

6.     If there is no ping reply, Step 3 repeats. 

I had to do it this was because Netwatch only functions on a change of state, so if the SIM data ran out and can’t be pinged, it would only cycle the Cellular4G interface once. It would not repeat, which is not what we need to re-establish the Cellular connectivity once the data is topped up (after a long period of time).

Download the script here!

Shared by Richard Wiltshire of RCW Consultants

Comments, suggestions, feedback is welcome!  Contact Richard!


Date Added:
Current Comments: 0
Write Review
Tell a friend
Tell a friend about this article:  
Shopping Cart
0 items
Latest News
about 8 days ago
So called SLINGSHOT exploit reported by Kaspersky Labs this week is actually a very old known issue already patched…
more >>
about 9 days ago
DuxTel News: MikroTik User Meeting & Training Melbourne, Cool new products! -
more >>
about 10 days ago
MEET US AT THE MUM! MikroTik User Meeting is coming up in Melbourne on 18th May - meet the DuxTel Team together wit…
more >>
about 11 days ago
The DuxLink-ULTRA is back! Now with two options based on the brand new UltraDish from @rfelements and RB911G-5HacD…
more >>
about 13 days ago
ready for MTCWE starting tomorrow in Sydney! :)
more >>
about 15 days ago
Congratulations go to Ian Gallagher for taking out the DUX prize for MTCNA class! :)
more >>
Follow our tweets for all the latest news and updates!
RBCA450G: RB450G kit with indoor case - assembled
This little box has a feature set that never stops giving wi ..
5 of 5 Stars!

Copyright © 2018 DuxTel Online Store