Categories
DuxTel Systems (12)
Interface Cards and Adapters (13)
Mikrotik Systems-> (155)
Mimosa Wireless (5)
RouterBOARD (11)
Router Enclosures (13)
Power Supplies & PoE-> (29)
Antennas and Accessories-> (113)
Mikrotik RouterOS (6)
Assembled Kits (6)
Carrier Wireless (1)
Cable and Misc (14)
Hardware and Mounting (22)
Configuration Library (FREE!) (7)
Quick Find
  
search products
search articles
Articles
New Articles
Case Studies
Product Guides (3)
Mikrotik Configuration (17)
Technical (5)
Community News (8)
Q&A (28)
Product Advisory (6)
Policy and Information (7)
Information
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 (8.8.8.8) 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 8.8.8.8 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 8.8.8.8 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
more
0 items
Latest News
about 8 days ago
Now in stock @duxtel! :-)
more >>
about 02 months ago
#wirelesswire from @mikrotik_com is coming VERY soon! received our first test samples today!
more >>
about 02 months ago
RT @mikrotik_com: Time to upgrade, 6.39.3 is out in the bugfix channel! ⚙
more >>
about 02 months ago
RT @mikrotik_com: We have updated forum topic with more information about vulnerability and its effect,
more >>
about 03 months ago
congrats to Michael Shepherd of KBIT for taking out the DUX prize of MTCNA! :)
more >>
about 03 months ago
All set and ready for MilroTik Certified Training classes starting tomorrow!
more >>
Follow our tweets for all the latest news and updates!
twitter.com/duxtel
Reviews
more
DUXCELW: DuxCell 4G Cellular WiFi router
Thanks to Andrew A. for providing the following info for use ..
5 of 5 Stars!

Copyright © 2018 DuxTel Online Store